From 12aefeb42adc80999081b974d7f440a647f74816 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Axel=20D=C3=B6rfler?= Date: Mon, 13 Feb 2006 00:34:10 +0000 Subject: [PATCH] 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 --- src/kits/interface/TextControl.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/kits/interface/TextControl.cpp b/src/kits/interface/TextControl.cpp index 242fb57069..d5eb5acea2 100644 --- a/src/kits/interface/TextControl.cpp +++ b/src/kits/interface/TextControl.cpp @@ -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);