diff --git a/kcms/colors/editor/scmeditoroptions.cpp b/kcms/colors/editor/scmeditoroptions.cpp
index 17598e81a..a57461ac6 100644
--- a/kcms/colors/editor/scmeditoroptions.cpp
+++ b/kcms/colors/editor/scmeditoroptions.cpp
@@ -31,8 +31,7 @@ void SchemeEditorOptions::loadOptions()
KConfigGroup generalGroup(m_config, "General");
shadeSortedColumn->setChecked(generalGroup.readEntry("shadeSortColumn", true));
- accentActiveTitlebar->setChecked(generalGroup.readEntry("accentActiveTitlebar", false));
- accentInactiveTitlebar->setChecked(generalGroup.readEntry("accentInactiveTitlebar", false));
+ accentTitlebar->setChecked(generalGroup.readEntry("TitlebarIsAccentColored", generalGroup.readEntry("accentActiveTitlebar", false)));
KConfigGroup KDEgroup(m_config, "KDE");
contrastSlider->setValue(KDEgroup.readEntry("contrast", KColorScheme::contrastF() * 10));
@@ -120,24 +119,15 @@ void SchemeEditorOptions::on_inactiveSelectionEffect_stateChanged(int state)
Q_EMIT changed(true);
}
-void SchemeEditorOptions::on_accentActiveTitlebar_stateChanged(int state)
+void SchemeEditorOptions::on_accentTitlebar_stateChanged(int state)
{
if (m_disableUpdates)
return;
KConfigGroup group(m_config, "General");
- group.writeEntry("accentActiveTitlebar", bool(state == Qt::Checked));
-
- Q_EMIT changed(true);
-}
-
-void SchemeEditorOptions::on_accentInactiveTitlebar_stateChanged(int state)
-{
- if (m_disableUpdates)
- return;
-
- KConfigGroup group(m_config, "General");
- group.writeEntry("accentInactiveTitlebar", bool(state == Qt::Checked));
+ group.writeEntry("TitlebarIsAccentColored", bool(state == Qt::Checked));
+ group.deleteEntry("accentActiveTitlebar");
+ group.deleteEntry("accentInactiveTitlebar");
Q_EMIT changed(true);
}
diff --git a/kcms/colors/editor/scmeditoroptions.h b/kcms/colors/editor/scmeditoroptions.h
index 4dd85d51f..45bd1af7d 100644
--- a/kcms/colors/editor/scmeditoroptions.h
+++ b/kcms/colors/editor/scmeditoroptions.h
@@ -33,8 +33,7 @@ private Q_SLOTS:
void on_shadeSortedColumn_stateChanged(int state);
void on_inactiveSelectionEffect_stateChanged(int state);
void on_useInactiveEffects_stateChanged(int state);
- void on_accentActiveTitlebar_stateChanged(int state);
- void on_accentInactiveTitlebar_stateChanged(int state);
+ void on_accentTitlebar_stateChanged(int state);
void on_tintColors_stateChanged(int state);
void on_tintStrengthSlider_valueChanged(int value);
diff --git a/kcms/colors/editor/scmeditoroptions.ui b/kcms/colors/editor/scmeditoroptions.ui
index f6e901500..dd152437f 100644
--- a/kcms/colors/editor/scmeditoroptions.ui
+++ b/kcms/colors/editor/scmeditoroptions.ui
@@ -7,7 +7,7 @@
0
0
464
- 382
+ 436
@@ -26,30 +26,23 @@
-
-
-
- Apply a&ccent color to active window titlebars
-
-
-
- -
-
+
- Apply acce&nt color to inactive window titlebars
+ Shade sorted column &in lists
-
-
+
- Shade sorted column &in lists
+ Tint all colors with accent color
-
-
+
- Tint all colors with accent color
+ Make window titlebars a&ccent-colored