Fix some blatantly missing uses of ui_color(), but there is a lot of work to do here... BControlLook itself doesn't even respect those correctly either...
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@38121 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
parent
e6bffa0b5f
commit
def864c05d
@ -848,6 +848,7 @@ AboutView::_CreateCreditsView()
|
||||
fCreditsView->MakeEditable(false);
|
||||
fCreditsView->SetWordWrap(true);
|
||||
fCreditsView->SetInsets(5, 5, 5, 5);
|
||||
fCreditsView->SetViewColor(ui_color(B_DOCUMENT_BACKGROUND_COLOR));
|
||||
|
||||
BScrollView* creditsScroller = new BScrollView("creditsScroller",
|
||||
fCreditsView, B_WILL_DRAW | B_FRAME_EVENTS, false, true,
|
||||
|
@ -897,7 +897,7 @@ TInfoView::Draw(BRect updateRect)
|
||||
invalRect.Set(10, 5, 10 + StringWidth(fInfoStr), fFontHeight+7);
|
||||
SetHighColor(ViewColor());
|
||||
FillRect(invalRect);
|
||||
SetHighColor(0, 0, 0, 255);
|
||||
SetHighColor(ui_color(B_PANEL_TEXT_COLOR));
|
||||
strcpy(fInfoStr, str);
|
||||
DrawString(fInfoStr);
|
||||
|
||||
@ -914,7 +914,7 @@ TInfoView::Draw(BRect updateRect)
|
||||
invalRect.Set(10, fFontHeight+7, 10 + StringWidth(fRGBStr), fFontHeight*2+7);
|
||||
SetHighColor(ViewColor());
|
||||
FillRect(invalRect);
|
||||
SetHighColor(0,0,0,255);
|
||||
SetHighColor(ui_color(B_PANEL_TEXT_COLOR));
|
||||
strcpy(fRGBStr,str);
|
||||
DrawString(fRGBStr);
|
||||
|
||||
@ -933,7 +933,7 @@ TInfoView::Draw(BRect updateRect)
|
||||
invalRect.Set(10, h-12-fFontHeight, 10 + StringWidth(fCH2Str), h-10);
|
||||
SetHighColor(ViewColor());
|
||||
FillRect(invalRect);
|
||||
SetHighColor(0,0,0,255);
|
||||
SetHighColor(ui_color(B_PANEL_TEXT_COLOR));
|
||||
strcpy(fCH2Str,str);
|
||||
DrawString(fCH2Str);
|
||||
}
|
||||
@ -945,7 +945,7 @@ TInfoView::Draw(BRect updateRect)
|
||||
invalRect.Set(10, h-10-2*fFontHeight-2, 10 + StringWidth(fCH1Str), h-10-fFontHeight);
|
||||
SetHighColor(ViewColor());
|
||||
FillRect(invalRect);
|
||||
SetHighColor(0,0,0,255);
|
||||
SetHighColor(ui_color(B_PANEL_TEXT_COLOR));
|
||||
strcpy(fCH1Str,str);
|
||||
DrawString(fCH1Str);
|
||||
} else if (ch1Showing) {
|
||||
@ -954,7 +954,7 @@ TInfoView::Draw(BRect updateRect)
|
||||
invalRect.Set(10, h-10-fFontHeight, 10 + StringWidth(fCH1Str), h-8);
|
||||
SetHighColor(ViewColor());
|
||||
FillRect(invalRect);
|
||||
SetHighColor(0,0,0,255);
|
||||
SetHighColor(ui_color(B_PANEL_TEXT_COLOR));
|
||||
strcpy(fCH1Str,str);
|
||||
DrawString(fCH1Str);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user