Diffstat (limited to 'noncore/styles/liquid/liquiddeco.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r-- | noncore/styles/liquid/liquiddeco.cpp | 18 |
1 files changed, 6 insertions, 12 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 | |||
@@ -100,8 +100,2 @@ void LiquidDecoration::paint( QPainter *painter, const QWidget *widget ) | |||
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() ); |
@@ -117,12 +111,12 @@ void LiquidDecoration::paint( QPainter *painter, const QWidget *widget ) | |||
117 | 111 | ||
118 | t.setLeft( t.left() + 4 ); | 112 | t .setLeft ( t. left ( ) + 4 ); |
119 | t.setRight( t.right() - 2 ); | 113 | t .setRight ( t. right ( ) - 2 ); |
120 | 114 | ||
121 | QFont f( QApplication::font() ); | 115 | QFont f ( QApplication::font ( )); |
122 | f.setWeight( QFont::Bold ); | 116 | f. setWeight ( QFont::Bold ); |
123 | 117 | ||
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 | ||