WebPositive: Use B_LIST_*_COLOR for Downloads window

Change-Id: Iabb6566e4d3cba5c53d84c26c413a996a56c80d1
Reviewed-on: https://review.haiku-os.org/c/haiku/+/8476
Haiku-Format: Haiku-format Bot <no-reply+haikuformatbot@haiku-os.org>
Reviewed-by: waddlesplash <waddlesplash@gmail.com>
Tested-by: Commit checker robot <no-reply+buildbot@haiku-os.org>
This commit is contained in:
Niklas Poslovski 2024-10-19 09:49:09 +02:00 committed by waddlesplash
parent 09b0f82c10
commit b78edf5814
2 changed files with 8 additions and 5 deletions

View File

@ -219,7 +219,7 @@ DownloadProgressView::Init(BMessage* archive)
fProcessStartTime = fLastSpeedReferenceTime
= fEstimatedFinishReferenceTime = system_time();
SetViewColor(245, 245, 245);
SetViewUIColor(B_LIST_BACKGROUND_COLOR);
SetFlags(Flags() | B_FULL_UPDATE_ON_RESIZE | B_WILL_DRAW);
if (archive) {
@ -346,11 +346,14 @@ DownloadProgressView::AllAttached()
{
fStatusBar->SetLowColor(ViewColor());
fInfoView->SetLowColor(ViewColor());
fInfoView->SetHighColor(0, 0, 0, 255);
fInfoView->SetHighUIColor(B_LIST_ITEM_TEXT_COLOR);
SetViewColor(B_TRANSPARENT_COLOR);
SetLowColor(245, 245, 245);
SetHighColor(tint_color(LowColor(), B_DARKEN_1_TINT));
SetLowUIColor(B_LIST_BACKGROUND_COLOR);
if (LowColor().IsLight())
SetHighColor(tint_color(LowColor(), B_DARKEN_1_TINT));
else
SetHighColor(tint_color(LowColor(), B_LIGHTEN_1_TINT));
}

View File

@ -54,7 +54,7 @@ public:
BGroupView(B_VERTICAL, 0.0)
{
SetFlags(Flags() | B_PULSE_NEEDED);
SetViewColor(245, 245, 245);
SetViewUIColor(B_LIST_BACKGROUND_COLOR);
AddChild(BSpaceLayoutItem::CreateGlue());
}