author | cniehaus <cniehaus> | 2002-09-20 12:13:58 (UTC) |
---|---|---|
committer | cniehaus <cniehaus> | 2002-09-20 12:13:58 (UTC) |
commit | e1c71743917aa6047c5ed7da6ca3a18024ceabde (patch) (unidiff) | |
tree | 097c975669e3372973b46431a9cc02cda6210cc7 /noncore/apps/oxygen/psewidget.cpp | |
parent | b1f3d33cb0b3f203f153074a8812d5988c3031b2 (diff) | |
download | opie-e1c71743917aa6047c5ed7da6ca3a18024ceabde.zip opie-e1c71743917aa6047c5ed7da6ca3a18024ceabde.tar.gz opie-e1c71743917aa6047c5ed7da6ca3a18024ceabde.tar.bz2 |
fixing the colors. THis looks almost cool :)
Diffstat (limited to 'noncore/apps/oxygen/psewidget.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r-- | noncore/apps/oxygen/psewidget.cpp | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/noncore/apps/oxygen/psewidget.cpp b/noncore/apps/oxygen/psewidget.cpp index f7725e3..78e54d5 100644 --- a/noncore/apps/oxygen/psewidget.cpp +++ b/noncore/apps/oxygen/psewidget.cpp | |||
@@ -25,4 +25,8 @@ PSEWidget::PSEWidget() : QWidget() | |||
25 | int h=0, v=0; | 25 | int h=0, v=0; |
26 | |||
27 | Config configobj( "oxygendata" ); | ||
26 | for( int n = 0 ; n < 118 ; n++ ) | 28 | for( int n = 0 ; n < 118 ; n++ ) |
27 | { | 29 | { |
30 | configobj.setGroup( QString::number( n+1 )); | ||
31 | |||
28 | position( n+1,h,v ); | 32 | position( n+1,h,v ); |
@@ -32,2 +36,3 @@ PSEWidget::PSEWidget() : QWidget() | |||
32 | PSEframe.current()->setMinimumHeight( 11 ); | 36 | PSEframe.current()->setMinimumHeight( 11 ); |
37 | PSEframe.current()->setPalette( QPalette( PSEColor( configobj.readEntry( "Block" ) ) ) ); | ||
33 | connect( PSEframe.current(), SIGNAL( num(QString) ), this, SLOT( slotShowElement(QString) )); | 38 | connect( PSEframe.current(), SIGNAL( num(QString) ), this, SLOT( slotShowElement(QString) )); |
@@ -42,2 +47,12 @@ PSEWidget::PSEWidget() : QWidget() | |||
42 | 47 | ||
48 | QColor PSEWidget::PSEColor( QString block ) | ||
49 | { | ||
50 | QColor c; | ||
51 | if ( block == "s" ) c.setRgb( 213 , 233 , 231 ); | ||
52 | else if ( block == "d" ) c.setRgb( 200,230,160 ); | ||
53 | else if ( block == "p" ) c.setRgb( 238,146,138 ); | ||
54 | else if ( block == "f" ) c.setRgb( 190 , 190 , 190 ); | ||
55 | return c; | ||
56 | }; | ||
57 | |||
43 | void PSEWidget::slotShowElement(QString number) | 58 | void PSEWidget::slotShowElement(QString number) |