Commit 7846aa69 authored by Noah Davis's avatar Noah Davis 🌵

Add Header color set support to kcolorschemeeditor

Also update the comment in each combobox item to be accurate for Plasma 5

Ideally, kcolorschemeeditor should be replaced with a new UI that is easier to use.

I'm adding Header color set support so that we can have a way to edit colors via a GUI in case the new color scheme editor doesn't make it into Plasma 5.21
parent 03e97948
......@@ -357,6 +357,9 @@ QString SchemeEditorColors::colorSetGroupKey(int colorSet)
case KColorScheme::Complementary:
group = QStringLiteral("Colors:Complementary");
break;
case KColorScheme::Header:
group = QStringLiteral("Colors:Header");
break;
default:
group = QStringLiteral("Colors:View");
}
......@@ -373,6 +376,7 @@ void SchemeEditorColors::updateColorSchemes()
m_colorSchemes.append(KColorScheme(QPalette::Active, KColorScheme::Selection, m_config));
m_colorSchemes.append(KColorScheme(QPalette::Active, KColorScheme::Tooltip, m_config));
m_colorSchemes.append(KColorScheme(QPalette::Active, KColorScheme::Complementary, m_config));
m_colorSchemes.append(KColorScheme(QPalette::Active, KColorScheme::Header, m_config));
m_wmColors.load(m_config);
}
......
......@@ -42,32 +42,37 @@
</item>
<item>
<property name="text">
<string comment="color-sets" extracomment="see kdebase/workspace/kcontrol/colors/README.i18n">View</string>
<string comment="color-sets" extracomment="see plasma-workspace/kcms/colors/README.i18n">View</string>
</property>
</item>
<item>
<property name="text">
<string comment="color-sets" extracomment="see kdebase/workspace/kcontrol/colors/README.i18n">Window</string>
<string comment="color-sets" extracomment="see plasma-workspace/kcms/colors/README.i18n">Window</string>
</property>
</item>
<item>
<property name="text">
<string comment="color-sets" extracomment="see kdebase/workspace/kcontrol/colors/README.i18n">Button</string>
<string comment="color-sets" extracomment="see plasma-workspace/kcms/colors/README.i18n">Button</string>
</property>
</item>
<item>
<property name="text">
<string comment="color-sets" extracomment="see kdebase/workspace/kcontrol/colors/README.i18n">Selection</string>
<string comment="color-sets" extracomment="see plasma-workspace/kcms/colors/README.i18n">Selection</string>
</property>
</item>
<item>
<property name="text">
<string comment="color-sets" extracomment="see kdebase/workspace/kcontrol/colors/README.i18n">Tooltip</string>
<string comment="color-sets" extracomment="see plasma-workspace/kcms/colors/README.i18n">Tooltip</string>
</property>
</item>
<item>
<property name="text">
<string comment="color-sets" extracomment="see kdebase/workspace/kcontrol/colors/README.i18n">Complementary</string>
<string comment="color-sets" extracomment="see plasma-workspace/kcms/colors/README.i18n">Complementary</string>
</property>
</item>
<item>
<property name="text">
<string comment="color-sets" extracomment="see plasma-workspace/kcms/colors/README.i18n">Header</string>
</property>
</item>
</widget>
......
Markdown is supported
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