Installer: draw background in optional package list

Fixes #20239

Change-Id: I37c3e70f88d9463f9646da3cb6cd663167ecd546
Reviewed-on: https://review.haiku-os.org/c/haiku/+/11492
Haiku-Format: Haiku-format Bot <[email protected]>
Tested-by: Commit checker robot <[email protected]>
Reviewed-by: waddlesplash <[email protected]>
(cherry picked from commit 50e89f9299e4b04e2514173c271f4f567ae46976)
Reviewed-on: https://review.haiku-os.org/c/haiku/+/11511
This commit is contained in:
Humdinger
2026-08-10 18:24:14 +00:00
committed by waddlesplash
parent a964c2cdaf
commit dba385556b
2 changed files with 9 additions and 0 deletions
+8
View File
@@ -149,6 +149,13 @@ PackageCheckBox::~PackageCheckBox()
}
void
PackageCheckBox::AttachedToWindow()
{
SetViewUIColor(B_DOCUMENT_BACKGROUND_COLOR);
}
void
PackageCheckBox::Draw(BRect update)
{
@@ -303,6 +310,7 @@ PackagesView::Draw(BRect updateRect)
{
if (CountChildren() > 0)
return;
rgb_color highColor = HighColor();
be_control_look->DrawLabel(this,
B_TRANSLATE("No optional packages available."),
+1
View File
@@ -84,6 +84,7 @@ public:
PackageCheckBox(Package* item);
virtual ~PackageCheckBox();
virtual void AttachedToWindow();
virtual void Draw(BRect updateRect);
virtual void MouseMoved(BPoint point, uint32 transit,
const BMessage* dragMessage);