From: nds Date: Wed, 14 Dec 2005 07:43:09 +0000 (+0000) Subject: Corrected colors, which mark active viewer X-Git-Tag: T_3_1_0pre~6 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=d586a2bf7f4f8733da22bdcb92dc81a3336af9b3;p=modules%2Fgui.git Corrected colors, which mark active viewer --- diff --git a/src/Qtx/QtxWorkstack.cxx b/src/Qtx/QtxWorkstack.cxx index fe5799c63..a8decb48c 100644 --- a/src/Qtx/QtxWorkstack.cxx +++ b/src/Qtx/QtxWorkstack.cxx @@ -36,8 +36,6 @@ #include #include -#define ACTIVE_PIXEL_SIZE 15 -#define NOT_ACTIVE_PIXEL_SIZE 12 #define HIGH_COLOR_LIGHT 200 #define HIGH_TEXT_COLOR_DARK 300 @@ -1775,17 +1773,14 @@ void QtxWorkstackTabBar::setActive( const bool on ) { QFont aFont = font(); aFont.setUnderline( on ); - if ( on ) { + if ( !on ) { QPalette aPal = palette(); - aFont.setPixelSize(ACTIVE_PIXEL_SIZE); aPal.setColor( QColorGroup::Highlight, colorGroup().highlight().light( HIGH_COLOR_LIGHT ) ); aPal.setColor( QColorGroup::HighlightedText, colorGroup().highlightedText().dark( HIGH_TEXT_COLOR_DARK ) ); setPalette( aPal ); } - else { - aFont.setPixelSize( NOT_ACTIVE_PIXEL_SIZE ); + else unsetPalette(); - } setFont( aFont ); update(); @@ -1860,7 +1855,6 @@ void QtxWorkstackTabBar::paintLabel( QPainter* p, const QRect& br, QTab* t, bool { QFont fnt = p->font(); fnt.setUnderline( false ); - fnt.setPixelSize(NOT_ACTIVE_PIXEL_SIZE); p->setFont( fnt ); } QTabBar::paintLabel( p, br, t, has_focus );