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:
committed by
nephele nephele
parent
2c34eec7ce
commit
43f178372c
@@ -52,6 +52,7 @@ LaunchButton::LaunchButton(const char* name, const char* label,
|
|||||||
{
|
{
|
||||||
if (sClickSpeed == 0 || get_click_speed(&sClickSpeed) != B_OK)
|
if (sClickSpeed == 0 || get_click_speed(&sClickSpeed) != B_OK)
|
||||||
sClickSpeed = 500000;
|
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, 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);
|
AddLine(BPoint(r.right - 1.0, r.bottom), BPoint(r.left + 1.0, r.bottom), col4);
|
||||||
EndLineArray();
|
EndLineArray();
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -47,7 +47,7 @@ PadView::PadView(const char* name)
|
|||||||
fIconSize(DEFAULT_ICON_SIZE)
|
fIconSize(DEFAULT_ICON_SIZE)
|
||||||
{
|
{
|
||||||
SetViewColor(B_TRANSPARENT_32_BIT);
|
SetViewColor(B_TRANSPARENT_32_BIT);
|
||||||
SetLowColor(ui_color(B_PANEL_BACKGROUND_COLOR));
|
SetLowUIColor(B_PANEL_BACKGROUND_COLOR);
|
||||||
get_click_speed(&sActivationDelay);
|
get_click_speed(&sActivationDelay);
|
||||||
|
|
||||||
fButtonLayout->SetInsets(2, 7, 2, 2);
|
fButtonLayout->SetInsets(2, 7, 2, 2);
|
||||||
|
|||||||
Reference in New Issue
Block a user