author | sandman <sandman> | 2002-07-01 23:39:51 (UTC) |
---|---|---|
committer | sandman <sandman> | 2002-07-01 23:39:51 (UTC) |
commit | 329ea43b68180058bcd8e9d2af4d09d9c03c55a3 (patch) (side-by-side diff) | |
tree | 8cb75f0d18be170c2def7ce8968fcbddeb004e82 /noncore/styles/liquid/liquiddeco.cpp | |
parent | 7191d788415f190680c8a699b2b7bb88ddf28917 (diff) | |
download | opie-329ea43b68180058bcd8e9d2af4d09d9c03c55a3.zip opie-329ea43b68180058bcd8e9d2af4d09d9c03c55a3.tar.gz opie-329ea43b68180058bcd8e9d2af4d09d9c03c55a3.tar.bz2 |
Added two new settings to liquid-style / Liquid-Settings:
- en/disable the new window decoration
- set the stipple contrast (from no stipple to twice the normal value)
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 @@ -99,10 +99,4 @@ void LiquidDecoration::paint( QPainter *painter, const QWidget *widget ) if ( titleWidth > 0 ) { - QBrush titleBrush; - QPen titlePen; - QPen titleLines; - int titleLeft = titleHeight + 4; - - titleLeft = rect.left() + 5; painter->setPen( cg.midlight() ); painter->drawLine( rect.left() - BORDER_WIDTH + 2, @@ -116,14 +110,14 @@ void LiquidDecoration::paint( QPainter *painter, const QWidget *widget ) QApplication::style().drawBevelButton( painter, t.x(), t.y(), t.width(), t.height(), cg, isActive ); - t.setLeft( t.left() + 4 ); - t.setRight( t.right() - 2 ); + t .setLeft ( t. left ( ) + 4 ); + t .setRight ( t. right ( ) - 2 ); - QFont f( QApplication::font() ); - f.setWeight( QFont::Bold ); + QFont f ( QApplication::font ( )); + f. setWeight ( QFont::Bold ); - painter-> setFont( f ); + painter-> setFont ( f ); QColor textcol = cg.color( isActive ? QColorGroup::HighlightedText : QColorGroup::Text ); - QColor shadecol = ( qGray ( textcol. rgb ( ) ) > 128 ) ? textcol. dark ( 130 ) : textcol.light( 200 ); + QColor shadecol = ( qGray ( textcol. rgb ( ) ) > 128 ) ? textcol. dark ( 230 ) : textcol.light( 300 ); if ( textcol == shadecol ) { |