summaryrefslogtreecommitdiffabout
path: root/microkde/kglobalsettings.cpp
Side-by-side diff
Diffstat (limited to 'microkde/kglobalsettings.cpp') (more/less context) (show whitespace changes)
-rw-r--r--microkde/kglobalsettings.cpp19
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
@@ -2,12 +2,19 @@
#include "kconfig.h"
#include "kglobal.h"
#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 ) {
size = 10;
}
@@ -57,17 +64,19 @@ QColor KGlobalSettings::toolBarHighlightColor()
{
return QColor( "black" );
}
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 * )
{
return QApplication::desktop()->rect();
}