-rw-r--r-- | microkde/kglobalsettings.cpp | 19 | ||||
-rw-r--r-- | microkde/kglobalsettings.h | 2 |
2 files changed, 16 insertions, 5 deletions
diff --git a/microkde/kglobalsettings.cpp b/microkde/kglobalsettings.cpp index 92a2b48..5976aae 100644 --- a/microkde/kglobalsettings.cpp +++ b/microkde/kglobalsettings.cpp | |||
@@ -6,4 +6,11 @@ | |||
6 | #include <qapplication.h> | 6 | #include <qapplication.h> |
7 | 7 | ||
8 | #ifdef DESKTOP_VERSION | ||
9 | QColor KGlobalSettings::mAlternate = QColor( 235, 235, 235 ); | ||
10 | #else | ||
11 | QColor KGlobalSettings::mAlternate = QColor( 210, 210, 210 ); | ||
12 | #endif | ||
13 | |||
14 | |||
8 | QFont KGlobalSettings::generalFont() | 15 | QFont KGlobalSettings::generalFont() |
9 | { | 16 | { |
@@ -61,9 +68,11 @@ QColor KGlobalSettings::toolBarHighlightColor() | |||
61 | QColor KGlobalSettings::alternateBackgroundColor() | 68 | QColor KGlobalSettings::alternateBackgroundColor() |
62 | { | 69 | { |
63 | #ifdef DESKTOP_VERSION | 70 | return mAlternate; |
64 | return QColor( 235, 235, 235 ); | 71 | |
65 | #else | 72 | } |
66 | return QColor( 220, 220, 220 ); | 73 | void KGlobalSettings::setAlternateBackgroundColor(QColor c) |
67 | #endif | 74 | { |
75 | mAlternate = c; | ||
76 | |||
68 | } | 77 | } |
69 | 78 | ||
diff --git a/microkde/kglobalsettings.h b/microkde/kglobalsettings.h index e2620b3..05ef279 100644 --- a/microkde/kglobalsettings.h +++ b/microkde/kglobalsettings.h | |||
@@ -16,6 +16,8 @@ class KGlobalSettings | |||
16 | static QFont toolBarFont(); | 16 | static QFont toolBarFont(); |
17 | 17 | ||
18 | static QColor mAlternate; | ||
18 | static QColor toolBarHighlightColor(); | 19 | static QColor toolBarHighlightColor(); |
19 | static QColor alternateBackgroundColor(); | 20 | static QColor alternateBackgroundColor(); |
21 | static void setAlternateBackgroundColor(QColor); | ||
20 | static QRect desktopGeometry( QWidget * ); | 22 | static QRect desktopGeometry( QWidget * ); |
21 | static QString timeTrackerDir(); | 23 | static QString timeTrackerDir(); |