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:
Humdinger
2022-12-23 16:54:51 +00:00
committed by waddlesplash
parent 61f5f30ce3
commit 58d81e5a28
2 changed files with 2 additions and 8 deletions
+1 -4
View File
@@ -251,10 +251,7 @@ IconView::~IconView()
void
IconView::AttachedToWindow()
{
if (Parent() != NULL)
SetViewColor(Parent()->ViewColor());
else
SetViewUIColor(B_PANEL_BACKGROUND_COLOR);
SetViewUIColor(B_PANEL_BACKGROUND_COLOR);
}
+1 -4
View File
@@ -901,10 +901,7 @@ ImageView::~ImageView()
void
ImageView::AttachedToWindow()
{
if (Parent() != NULL)
SetViewColor(Parent()->ViewColor());
else
SetViewUIColor(B_PANEL_BACKGROUND_COLOR);
SetViewUIColor(B_PANEL_BACKGROUND_COLOR);
fEditor.StartWatching(this);
if (fScaleSlider != NULL)