This fixes the text color when disabled; B_DISABLED_LABEL_TINT is darkening the

color, not lightening it, it's supposed to be used with the background color,
not the text color.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@16373 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Axel Dörfler 2006-02-13 00:34:10 +00:00
parent 2381701493
commit 12aefeb42a

View File

@ -588,8 +588,10 @@ BTextControl::_UpdateTextViewColors(bool enabled)
if (enabled)
textColor = color;
else
textColor = tint_color(color, B_DISABLED_LABEL_TINT);
else {
textColor = tint_color(ui_color(B_PANEL_BACKGROUND_COLOR),
B_DISABLED_LABEL_TINT);
}
fText->SetFontAndColor(&font, B_FONT_ALL, &textColor);