Diffstat (limited to 'noncore/styles/liquid/liquiddeco.cpp') (more/less context) (show whitespace changes)
-rw-r--r-- | noncore/styles/liquid/liquiddeco.cpp | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/noncore/styles/liquid/liquiddeco.cpp b/noncore/styles/liquid/liquiddeco.cpp index 8eee1b1..5488c67 100644 --- a/noncore/styles/liquid/liquiddeco.cpp +++ b/noncore/styles/liquid/liquiddeco.cpp | |||
@@ -98,12 +98,6 @@ void LiquidDecoration::paint( QPainter *painter, const QWidget *widget ) | |||
98 | painter->setClipRegion( oldClip ); | 98 | painter->setClipRegion( oldClip ); |
99 | 99 | ||
100 | if ( titleWidth > 0 ) { | 100 | if ( titleWidth > 0 ) { |
101 | QBrush titleBrush; | ||
102 | QPen titlePen; | ||
103 | QPen titleLines; | ||
104 | int titleLeft = titleHeight + 4; | ||
105 | |||
106 | titleLeft = rect.left() + 5; | ||
107 | painter->setPen( cg.midlight() ); | 101 | painter->setPen( cg.midlight() ); |
108 | painter->drawLine( rect.left() - BORDER_WIDTH + 2, | 102 | painter->drawLine( rect.left() - BORDER_WIDTH + 2, |
109 | rect.bottom() + 1, rect.right() + BORDER_WIDTH - 2, | 103 | rect.bottom() + 1, rect.right() + BORDER_WIDTH - 2, |
@@ -124,7 +118,7 @@ void LiquidDecoration::paint( QPainter *painter, const QWidget *widget ) | |||
124 | painter-> setFont( f ); | 118 | painter-> setFont( f ); |
125 | 119 | ||
126 | QColor textcol = cg.color( isActive ? QColorGroup::HighlightedText : QColorGroup::Text ); | 120 | QColor textcol = cg.color( isActive ? QColorGroup::HighlightedText : QColorGroup::Text ); |
127 | QColor shadecol = ( qGray ( textcol. rgb ( ) ) > 128 ) ? textcol. dark ( 130 ) : textcol.light( 200 ); | 121 | QColor shadecol = ( qGray ( textcol. rgb ( ) ) > 128 ) ? textcol. dark ( 230 ) : textcol.light( 300 ); |
128 | 122 | ||
129 | if ( textcol == shadecol ) { | 123 | if ( textcol == shadecol ) { |
130 | if ( qGray ( shadecol. rgb ( ) ) < 128 ) | 124 | if ( qGray ( shadecol. rgb ( ) ) < 128 ) |