summaryrefslogtreecommitdiff
authorcniehaus <cniehaus>2002-09-20 12:13:58 (UTC)
committer cniehaus <cniehaus>2002-09-20 12:13:58 (UTC)
commite1c71743917aa6047c5ed7da6ca3a18024ceabde (patch) (side-by-side diff)
tree097c975669e3372973b46431a9cc02cda6210cc7
parentb1f3d33cb0b3f203f153074a8812d5988c3031b2 (diff)
downloadopie-e1c71743917aa6047c5ed7da6ca3a18024ceabde.zip
opie-e1c71743917aa6047c5ed7da6ca3a18024ceabde.tar.gz
opie-e1c71743917aa6047c5ed7da6ca3a18024ceabde.tar.bz2
fixing the colors. THis looks almost cool :)
Diffstat (more/less context) (show whitespace changes)
-rw-r--r--noncore/apps/oxygen/dataTable.cpp4
-rw-r--r--noncore/apps/oxygen/oxyframe.cpp8
-rw-r--r--noncore/apps/oxygen/psewidget.cpp15
-rw-r--r--noncore/apps/oxygen/psewidget.h1
4 files changed, 22 insertions, 6 deletions
diff --git a/noncore/apps/oxygen/dataTable.cpp b/noncore/apps/oxygen/dataTable.cpp
index 870ac56..70b5a6a 100644
--- a/noncore/apps/oxygen/dataTable.cpp
+++ b/noncore/apps/oxygen/dataTable.cpp
@@ -94,5 +94,5 @@ void OxydataTable::paintCell( QPainter *p, int row, int col, const QRect &cr, b
if ( row%2 )
- colgrp.setColor( QColorGroup::Base, QColor( cyan ) );
+ colgrp.setColor( QColorGroup::Base, QColor( 180,200,210 ) );
else
- colgrp.setColor( QColorGroup::Base, QColor( white ) );
+ colgrp.setColor( QColorGroup::Base, QColor( 230,235,235 ) );
p->save();
diff --git a/noncore/apps/oxygen/oxyframe.cpp b/noncore/apps/oxygen/oxyframe.cpp
index 2d7fc84..a5f262e 100644
--- a/noncore/apps/oxygen/oxyframe.cpp
+++ b/noncore/apps/oxygen/oxyframe.cpp
@@ -16,6 +16,6 @@ OxyFrame::OxyFrame(QWidget *parent, const char *name) : QFrame(parent,name)
N = name;
- this->setFrameStyle( QFrame::Panel );
- this->setLineWidth( 2 );
- this->setFrameShadow( QFrame::Raised );
- this->setBackgroundColor( QColor( green ) );
+ this->setFrameStyle( QFrame::Box );
+ this->setLineWidth( 0 );
+ this->setMidLineWidth( 1 );
+ this->setFrameShadow( QFrame::Sunken );
}
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()
int h=0, v=0;
+
+ Config configobj( "oxygendata" );
for( int n = 0 ; n < 118 ; n++ )
{
+ configobj.setGroup( QString::number( n+1 ));
+
position( n+1,h,v );
@@ -32,2 +36,3 @@ PSEWidget::PSEWidget() : QWidget()
PSEframe.current()->setMinimumHeight( 11 );
+ PSEframe.current()->setPalette( QPalette( PSEColor( configobj.readEntry( "Block" ) ) ) );
connect( PSEframe.current(), SIGNAL( num(QString) ), this, SLOT( slotShowElement(QString) ));
@@ -42,2 +47,12 @@ PSEWidget::PSEWidget() : QWidget()
+QColor PSEWidget::PSEColor( QString block )
+{
+ QColor c;
+ if ( block == "s" ) c.setRgb( 213 , 233 , 231 );
+ else if ( block == "d" ) c.setRgb( 200,230,160 );
+ else if ( block == "p" ) c.setRgb( 238,146,138 );
+ else if ( block == "f" ) c.setRgb( 190 , 190 , 190 );
+ return c;
+};
+
void PSEWidget::slotShowElement(QString number)
diff --git a/noncore/apps/oxygen/psewidget.h b/noncore/apps/oxygen/psewidget.h
index a7a8603..f69eeb3 100644
--- a/noncore/apps/oxygen/psewidget.h
+++ b/noncore/apps/oxygen/psewidget.h
@@ -30,2 +30,3 @@ class PSEWidget : public QWidget
void position( int, int&, int& );
+ QColor PSEColor( QString );