author | zautrix <zautrix> | 2005-04-13 23:54:32 (UTC) |
---|---|---|
committer | zautrix <zautrix> | 2005-04-13 23:54:32 (UTC) |
commit | 5ea16ef9058a21016402dd5affc0a7f82857e606 (patch) (unidiff) | |
tree | 3c147e24c3bd51208a8055a94e4a487a1708d337 /microkde/kglobalsettings.cpp | |
parent | 93b536533e1c908085adb61553907615c31786c0 (diff) | |
download | kdepimpi-5ea16ef9058a21016402dd5affc0a7f82857e606.zip kdepimpi-5ea16ef9058a21016402dd5affc0a7f82857e606.tar.gz kdepimpi-5ea16ef9058a21016402dd5affc0a7f82857e606.tar.bz2 |
fix
Diffstat (limited to 'microkde/kglobalsettings.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r-- | microkde/kglobalsettings.cpp | 19 |
1 files changed, 14 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 | |||
@@ -4,8 +4,15 @@ | |||
4 | #include "kconfigbase.h" | 4 | #include "kconfigbase.h" |
5 | 5 | ||
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 | { |
10 | int size = 12; | 17 | int size = 12; |
11 | if (QApplication::desktop()->width() < 480 ) { | 18 | if (QApplication::desktop()->width() < 480 ) { |
@@ -59,13 +66,15 @@ QColor KGlobalSettings::toolBarHighlightColor() | |||
59 | } | 66 | } |
60 | 67 | ||
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 | ||
70 | QRect KGlobalSettings::desktopGeometry( QWidget * ) | 79 | QRect KGlobalSettings::desktopGeometry( QWidget * ) |
71 | { | 80 | { |