author | zautrix <zautrix> | 2005-04-13 23:54:32 (UTC) |
---|---|---|
committer | zautrix <zautrix> | 2005-04-13 23:54:32 (UTC) |
commit | 5ea16ef9058a21016402dd5affc0a7f82857e606 (patch) (side-by-side diff) | |
tree | 3c147e24c3bd51208a8055a94e4a487a1708d337 /microkde | |
parent | 93b536533e1c908085adb61553907615c31786c0 (diff) | |
download | kdepimpi-5ea16ef9058a21016402dd5affc0a7f82857e606.zip kdepimpi-5ea16ef9058a21016402dd5affc0a7f82857e606.tar.gz kdepimpi-5ea16ef9058a21016402dd5affc0a7f82857e606.tar.bz2 |
fix
-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 @@ -1,19 +1,26 @@ #include "kglobalsettings.h" #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; } #ifndef DESKTOP_VERSION else if (QApplication::desktop()->width() >= 480 && QApplication::desktop()->width() <= 640 ) size = 18; #endif QFont f = QApplication::font(); @@ -51,29 +58,31 @@ QString KGlobalSettings::timeTrackerDir() QFont KGlobalSettings::toolBarFont() { return QApplication::font(); } 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(); } /** * Returns whether KDE runs in single (default) or double click * mode. * see http://developer.kde.org/documentation/standards/kde/style/mouse/index.html * @return true if single click mode, or false if double click mode. diff --git a/microkde/kglobalsettings.h b/microkde/kglobalsettings.h index e2620b3..05ef279 100644 --- a/microkde/kglobalsettings.h +++ b/microkde/kglobalsettings.h @@ -6,26 +6,28 @@ #define KDE_DEFAULT_SINGLECLICK true class KGlobalSettings { public: 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(); /** * Returns whether KDE runs in single (default) or double click * mode. * see http://developer.kde.org/documentation/standards/kde/style/mouse/index.html * @return true if single click mode, or false if double click mode. **/ static bool singleClick(); }; |