summaryrefslogtreecommitdiffabout
path: root/microkde
Side-by-side diff
Diffstat (limited to 'microkde') (more/less context) (ignore whitespace changes)
-rw-r--r--microkde/kglobalsettings.cpp19
-rw-r--r--microkde/kglobalsettings.h2
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
@@ -4,8 +4,15 @@
#include "kconfigbase.h"
#include <qapplication.h>
+#ifdef DESKTOP_VERSION
+ QColor KGlobalSettings::mAlternate = QColor( 235, 235, 235 );
+#else
+ QColor KGlobalSettings::mAlternate = QColor( 210, 210, 210 );
+#endif
+
+
QFont KGlobalSettings::generalFont()
{
int size = 12;
if (QApplication::desktop()->width() < 480 ) {
@@ -59,13 +66,15 @@ QColor KGlobalSettings::toolBarHighlightColor()
}
QColor KGlobalSettings::alternateBackgroundColor()
{
-#ifdef DESKTOP_VERSION
- return QColor( 235, 235, 235 );
-#else
- return QColor( 220, 220, 220 );
-#endif
+ return mAlternate;
+
+}
+void KGlobalSettings::setAlternateBackgroundColor(QColor c)
+{
+ mAlternate = c;
+
}
QRect KGlobalSettings::desktopGeometry( QWidget * )
{
diff --git a/microkde/kglobalsettings.h b/microkde/kglobalsettings.h
index e2620b3..05ef279 100644
--- a/microkde/kglobalsettings.h
+++ b/microkde/kglobalsettings.h
@@ -14,10 +14,12 @@ class KGlobalSettings
static QFont generalFont();
static QFont generalMaxFont();
static QFont toolBarFont();
+ static QColor mAlternate;
static QColor toolBarHighlightColor();
static QColor alternateBackgroundColor();
+ static void setAlternateBackgroundColor(QColor);
static QRect desktopGeometry( QWidget * );
static QString timeTrackerDir();
/**