summaryrefslogtreecommitdiffabout
path: root/microkde
Unidiff
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
@@ -2,12 +2,19 @@
2#include "kconfig.h" 2#include "kconfig.h"
3#include "kglobal.h" 3#include "kglobal.h"
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
8QFont KGlobalSettings::generalFont() 15QFont KGlobalSettings::generalFont()
9{ 16{
10 int size = 12; 17 int size = 12;
11 if (QApplication::desktop()->width() < 480 ) { 18 if (QApplication::desktop()->width() < 480 ) {
12 size = 10; 19 size = 10;
13 } 20 }
@@ -57,17 +64,19 @@ QColor KGlobalSettings::toolBarHighlightColor()
57{ 64{
58 return QColor( "black" ); 65 return QColor( "black" );
59} 66}
60 67
61QColor KGlobalSettings::alternateBackgroundColor() 68QColor 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 ); 73void KGlobalSettings::setAlternateBackgroundColor(QColor c)
67#endif 74{
75 mAlternate = c;
76
68} 77}
69 78
70QRect KGlobalSettings::desktopGeometry( QWidget * ) 79QRect KGlobalSettings::desktopGeometry( QWidget * )
71{ 80{
72 return QApplication::desktop()->rect(); 81 return QApplication::desktop()->rect();
73} 82}
diff --git a/microkde/kglobalsettings.h b/microkde/kglobalsettings.h
index e2620b3..05ef279 100644
--- a/microkde/kglobalsettings.h
+++ b/microkde/kglobalsettings.h
@@ -12,14 +12,16 @@ class KGlobalSettings
12{ 12{
13 public: 13 public:
14 static QFont generalFont(); 14 static QFont generalFont();
15 static QFont generalMaxFont(); 15 static QFont generalMaxFont();
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();
22 24
23 /** 25 /**
24 * Returns whether KDE runs in single (default) or double click 26 * Returns whether KDE runs in single (default) or double click
25 * mode. 27 * mode.