Commit 75d4b69d authored by Jan Blackquill's avatar Jan Blackquill 🌈 Committed by Nate Graham
Browse files

kcms/colors: rephrase UI to indicate changes to colorsapplicator (previous commit)

parent a671178a
Pipeline #192311 passed with stage
in 8 minutes and 15 seconds
......@@ -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);
}
......@@ -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);
......
......@@ -7,7 +7,7 @@
<x>0</x>
<y>0</y>
<width>464</width>
<height>382</height>
<height>436</height>
</rect>
</property>
<layout class="QVBoxLayout" name="verticalLayout">
......@@ -26,30 +26,23 @@
</widget>
</item>
<item>
<widget class="QCheckBox" name="accentActiveTitlebar">
<property name="text">
<string>Apply a&amp;ccent color to active window titlebars</string>
</property>
</widget>
</item>
<item>
<widget class="QCheckBox" name="accentInactiveTitlebar">
<widget class="QCheckBox" name="shadeSortedColumn">
<property name="text">
<string>Apply acce&amp;nt color to inactive window titlebars</string>
<string>Shade sorted column &amp;in lists</string>
</property>
</widget>
</item>
<item>
<widget class="QCheckBox" name="shadeSortedColumn">
<widget class="QCheckBox" name="tintColors">
<property name="text">
<string>Shade sorted column &amp;in lists</string>
<string>Tint all colors with accent color</string>
</property>
</widget>
</item>
<item>
<widget class="QCheckBox" name="tintColors">
<widget class="QCheckBox" name="accentTitlebar">
<property name="text">
<string>Tint all colors with accent color</string>
<string>Make window titlebars a&amp;ccent-colored</string>
</property>
</widget>
</item>
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment