summaryrefslogtreecommitdiff
path: root/noncore/apps/oxygen/psewidget.cpp
Unidiff
Diffstat (limited to 'noncore/apps/oxygen/psewidget.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/apps/oxygen/psewidget.cpp13
1 files changed, 12 insertions, 1 deletions
diff --git a/noncore/apps/oxygen/psewidget.cpp b/noncore/apps/oxygen/psewidget.cpp
index eb4093b..d7126b9 100644
--- a/noncore/apps/oxygen/psewidget.cpp
+++ b/noncore/apps/oxygen/psewidget.cpp
@@ -46,2 +46,3 @@ PSEWidget::PSEWidget() : QWidget()
46 connect( PSEframe.current(), SIGNAL( num(QString) ), this, SLOT( slotShowElement(QString) )); 46 connect( PSEframe.current(), SIGNAL( num(QString) ), this, SLOT( slotShowElement(QString) ));
47 connect( PSEframe.current(), SIGNAL( num(QString) ), this, SLOT( inverseColor(QString) ));
47 } 48 }
@@ -68,3 +69,13 @@ void PSEWidget::inverseColor( QString number )
68{ 69{
69 //foo 70 Config configobj( QPEApplication::qpeDir() +"share/oxygen/oxygendata", Config::File );
71 configobj.setGroup( number );
72 QString block = configobj.readEntry( "Block" );
73 QColor c;
74 if ( block == "s" ) c.setRgb( 213 , 233 , 231 );
75 else if ( block == "d" ) c.setRgb( 200,230,160 );
76 else if ( block == "p" ) c.setRgb( 238,146,138 );
77 else if ( block == "f" ) c.setRgb( 190 , 190 , 190 );
78 c.dark();
79
80 PSEframe.at( number.toUInt() )->setPalette( QPalette( c ) );
70} 81}