-rw-r--r-- | microkde/kdeui/klistview.cpp | 3 | ||||
-rw-r--r-- | microkde/kglobalsettings.cpp | 9 | ||||
-rw-r--r-- | microkde/kglobalsettings.h | 1 |
3 files changed, 11 insertions, 2 deletions
diff --git a/microkde/kdeui/klistview.cpp b/microkde/kdeui/klistview.cpp index 31e2053..25327aa 100644 --- a/microkde/kdeui/klistview.cpp +++ b/microkde/kdeui/klistview.cpp @@ -459,8 +459,7 @@ KListView::KListView( QWidget *parent, const char *name ,bool emulateRightMouse //qDebug("KListView::KListView make alternate color configurable"); -//US d->alternateBackground = KGlobalSettings::alternateBackgroundColor(); - d->alternateBackground = QColor(240, 240, 240); + d->alternateBackground = KGlobalSettings::alternateBackgroundColor(); } diff --git a/microkde/kglobalsettings.cpp b/microkde/kglobalsettings.cpp index b65ce66..92a2b48 100644 --- a/microkde/kglobalsettings.cpp +++ b/microkde/kglobalsettings.cpp @@ -58,6 +58,15 @@ QColor KGlobalSettings::toolBarHighlightColor() return QColor( "black" ); } +QColor KGlobalSettings::alternateBackgroundColor() +{ +#ifdef DESKTOP_VERSION + return QColor( 235, 235, 235 ); +#else + return QColor( 220, 220, 220 ); +#endif +} + QRect KGlobalSettings::desktopGeometry( QWidget * ) { return QApplication::desktop()->rect(); diff --git a/microkde/kglobalsettings.h b/microkde/kglobalsettings.h index 3eeda35..e2620b3 100644 --- a/microkde/kglobalsettings.h +++ b/microkde/kglobalsettings.h @@ -16,6 +16,7 @@ class KGlobalSettings static QFont toolBarFont(); static QColor toolBarHighlightColor(); + static QColor alternateBackgroundColor(); static QRect desktopGeometry( QWidget * ); static QString timeTrackerDir(); |