LaunchBox: Live update panel color

Change-Id: Iba1bdcbbf9031c66b6b73f4c347d414566da13cf
Reviewed-on: https://review.haiku-os.org/c/haiku/+/9885
Reviewed-by: waddlesplash <[email protected]>
Tested-by: Commit checker robot <[email protected]>
This commit is contained in:
Pascal Abresch
2025-11-17 17:19:57 +00:00
committed by nephele nephele
parent 2c34eec7ce
commit 43f178372c
2 changed files with 3 additions and 2 deletions
+2 -1
View File
@@ -52,6 +52,7 @@ LaunchButton::LaunchButton(const char* name, const char* label,
{
if (sClickSpeed == 0 || get_click_speed(&sClickSpeed) != B_OK)
sClickSpeed = 500000;
SetLowUIColor(B_PANEL_BACKGROUND_COLOR);
}
@@ -448,4 +449,4 @@ LaunchButton::_DrawFrame(BRect r, rgb_color col1, rgb_color col2,
AddLine(BPoint(r.right, r.top + 1.0), BPoint(r.right, r.bottom), col4);
AddLine(BPoint(r.right - 1.0, r.bottom), BPoint(r.left + 1.0, r.bottom), col4);
EndLineArray();
}
}
+1 -1
View File
@@ -47,7 +47,7 @@ PadView::PadView(const char* name)
fIconSize(DEFAULT_ICON_SIZE)
{
SetViewColor(B_TRANSPARENT_32_BIT);
SetLowColor(ui_color(B_PANEL_BACKGROUND_COLOR));
SetLowUIColor(B_PANEL_BACKGROUND_COLOR);
get_click_speed(&sActivationDelay);
fButtonLayout->SetInsets(2, 7, 2, 2);