author | zautrix <zautrix> | 2005-04-11 00:29:46 (UTC) |
---|---|---|
committer | zautrix <zautrix> | 2005-04-11 00:29:46 (UTC) |
commit | 93b536533e1c908085adb61553907615c31786c0 (patch) (side-by-side diff) | |
tree | 42b150b957c815416143c4ba82be4099d254ba37 | |
parent | 726d9302b230f53cc058d2dbfd89c7a3c4f18fb2 (diff) | |
download | kdepimpi-93b536533e1c908085adb61553907615c31786c0.zip kdepimpi-93b536533e1c908085adb61553907615c31786c0.tar.gz kdepimpi-93b536533e1c908085adb61553907615c31786c0.tar.bz2 |
fixxxxxx
-rw-r--r-- | kaddressbook/views/contactlistview.cpp | 8 | ||||
-rw-r--r-- | microkde/kdeui/klistview.cpp | 3 | ||||
-rw-r--r-- | microkde/kglobalsettings.cpp | 9 | ||||
-rw-r--r-- | microkde/kglobalsettings.h | 1 |
4 files changed, 15 insertions, 6 deletions
diff --git a/kaddressbook/views/contactlistview.cpp b/kaddressbook/views/contactlistview.cpp index 09d9c03..9accf78 100644 --- a/kaddressbook/views/contactlistview.cpp +++ b/kaddressbook/views/contactlistview.cpp @@ -255,9 +255,9 @@ ContactListView::ContactListView(KAddressBookTableView *view, mSingleLine = false; mToolTips = true; -#ifndef KAB_EMBEDDED + mAlternateColor = KGlobalSettings::alternateBackgroundColor(); -#else //KAB_EMBEDDED - mAlternateColor = QColor(240, 240, 240); -#endif //KAB_EMBEDDED + + + setAlternateBackgroundEnabled(mABackground); diff --git a/microkde/kdeui/klistview.cpp b/microkde/kdeui/klistview.cpp index 31e2053..25327aa 100644 --- a/microkde/kdeui/klistview.cpp +++ b/microkde/kdeui/klistview.cpp @@ -460,6 +460,5 @@ KListView::KListView( QWidget *parent, const char *name ,bool emulateRightMouse //qDebug("KListView::KListView make alternate color configurable"); -//US d->alternateBackground = KGlobalSettings::alternateBackgroundColor(); - d->alternateBackground = QColor(240, 240, 240); + d->alternateBackground = KGlobalSettings::alternateBackgroundColor(); } diff --git a/microkde/kglobalsettings.cpp b/microkde/kglobalsettings.cpp index b65ce66..92a2b48 100644 --- a/microkde/kglobalsettings.cpp +++ b/microkde/kglobalsettings.cpp @@ -59,4 +59,13 @@ QColor KGlobalSettings::toolBarHighlightColor() } +QColor KGlobalSettings::alternateBackgroundColor() +{ +#ifdef DESKTOP_VERSION + return QColor( 235, 235, 235 ); +#else + return QColor( 220, 220, 220 ); +#endif +} + QRect KGlobalSettings::desktopGeometry( QWidget * ) { diff --git a/microkde/kglobalsettings.h b/microkde/kglobalsettings.h index 3eeda35..e2620b3 100644 --- a/microkde/kglobalsettings.h +++ b/microkde/kglobalsettings.h @@ -17,4 +17,5 @@ class KGlobalSettings static QColor toolBarHighlightColor(); + static QColor alternateBackgroundColor(); static QRect desktopGeometry( QWidget * ); static QString timeTrackerDir(); |