author | drw <drw> | 2002-05-18 20:59:09 (UTC) |
---|---|---|
committer | drw <drw> | 2002-05-18 20:59:09 (UTC) |
commit | 1d935738d89d038e05013d8d099bcf4da14073ea (patch) (side-by-side diff) | |
tree | 449b1a9185ede01d2fe7f90249603bc3a2f4f473 /core | |
parent | dd86981ce4191e7916dc97c114267763c9a07018 (diff) | |
download | opie-1d935738d89d038e05013d8d099bcf4da14073ea.zip opie-1d935738d89d038e05013d8d099bcf4da14073ea.tar.gz opie-1d935738d89d038e05013d8d099bcf4da14073ea.tar.bz2 |
Added Launcher icon text and background color options
-rw-r--r-- | core/launcher/launcherview.cpp | 15 |
1 files changed, 14 insertions, 1 deletions
diff --git a/core/launcher/launcherview.cpp b/core/launcher/launcherview.cpp index 6354bb7..1598d13 100644 --- a/core/launcher/launcherview.cpp +++ b/core/launcher/launcherview.cpp @@ -43,4 +43,7 @@ class LauncherIconView : public QIconView { public: + QColor iconText; + QColor background; + LauncherIconView( QWidget* parent, const char* name=0 ) : QIconView(parent,name), @@ -52,4 +55,9 @@ public: hidden.setAutoDelete(TRUE); ike = FALSE; + + Config config( "qpe" ); + config.setGroup( "Appearance" ); + iconText = QColor( config.readEntry( "LauncherIconText", "#000000" ) ); + background = QColor( config.readEntry( "LauncherBackground", "#FFFFFF" ) ); } @@ -148,5 +156,6 @@ public: QPainter painter( bg ); - painter.fillRect( QRect( 0, 0, width(), height() ), colorGroup().background().light(110)); +// painter.fillRect( QRect( 0, 0, width(), height() ), colorGroup().background().light(110)); + painter.fillRect( QRect( 0, 0, width(), height() ), background); // Overlay the Qtopia logo in the center QImage logo; @@ -288,4 +297,8 @@ public: mycg.setColor( QColorGroup::Text, cg.color( QColorGroup::HighlightedText ) ); } + else { + mycg.setColor( QColorGroup::Text, liv->iconText ); + } + QIconViewItem::paintItem(p,mycg); if ( liv->currentItem() == this ) |