DiskProbe: Fix view colors not being live
The background color under the icon in the main window and the attribute icon editor didn't change live. Change-Id: I5618f66c3d2f91c5d18b6ee9870a87b02bbe3a38 Reviewed-on: https://review.haiku-os.org/c/haiku/+/5960 Tested-by: Commit checker robot <[email protected]> Reviewed-by: Adrien Destugues <[email protected]>
This commit is contained in:
@@ -251,10 +251,7 @@ IconView::~IconView()
|
|||||||
void
|
void
|
||||||
IconView::AttachedToWindow()
|
IconView::AttachedToWindow()
|
||||||
{
|
{
|
||||||
if (Parent() != NULL)
|
SetViewUIColor(B_PANEL_BACKGROUND_COLOR);
|
||||||
SetViewColor(Parent()->ViewColor());
|
|
||||||
else
|
|
||||||
SetViewUIColor(B_PANEL_BACKGROUND_COLOR);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -901,10 +901,7 @@ ImageView::~ImageView()
|
|||||||
void
|
void
|
||||||
ImageView::AttachedToWindow()
|
ImageView::AttachedToWindow()
|
||||||
{
|
{
|
||||||
if (Parent() != NULL)
|
SetViewUIColor(B_PANEL_BACKGROUND_COLOR);
|
||||||
SetViewColor(Parent()->ViewColor());
|
|
||||||
else
|
|
||||||
SetViewUIColor(B_PANEL_BACKGROUND_COLOR);
|
|
||||||
|
|
||||||
fEditor.StartWatching(this);
|
fEditor.StartWatching(this);
|
||||||
if (fScaleSlider != NULL)
|
if (fScaleSlider != NULL)
|
||||||
|
|||||||
Reference in New Issue
Block a user