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:
@@ -149,6 +149,13 @@ PackageCheckBox::~PackageCheckBox()
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
void
|
||||||
|
PackageCheckBox::AttachedToWindow()
|
||||||
|
{
|
||||||
|
SetViewUIColor(B_DOCUMENT_BACKGROUND_COLOR);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
void
|
void
|
||||||
PackageCheckBox::Draw(BRect update)
|
PackageCheckBox::Draw(BRect update)
|
||||||
{
|
{
|
||||||
@@ -303,6 +310,7 @@ PackagesView::Draw(BRect updateRect)
|
|||||||
{
|
{
|
||||||
if (CountChildren() > 0)
|
if (CountChildren() > 0)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
rgb_color highColor = HighColor();
|
rgb_color highColor = HighColor();
|
||||||
be_control_look->DrawLabel(this,
|
be_control_look->DrawLabel(this,
|
||||||
B_TRANSLATE("No optional packages available."),
|
B_TRANSLATE("No optional packages available."),
|
||||||
|
|||||||
@@ -84,6 +84,7 @@ public:
|
|||||||
PackageCheckBox(Package* item);
|
PackageCheckBox(Package* item);
|
||||||
virtual ~PackageCheckBox();
|
virtual ~PackageCheckBox();
|
||||||
|
|
||||||
|
virtual void AttachedToWindow();
|
||||||
virtual void Draw(BRect updateRect);
|
virtual void Draw(BRect updateRect);
|
||||||
virtual void MouseMoved(BPoint point, uint32 transit,
|
virtual void MouseMoved(BPoint point, uint32 transit,
|
||||||
const BMessage* dragMessage);
|
const BMessage* dragMessage);
|
||||||
|
|||||||
Reference in New Issue
Block a user