Commit 965ee3d9 authored by Jan Paul Batrina's avatar Jan Paul Batrina
Browse files

[ColorPicker] Disable previews for translucent colors by default

parent eb93ed96
...@@ -117,7 +117,7 @@ void KateColorPickerConfigPage::reset() ...@@ -117,7 +117,7 @@ void KateColorPickerConfigPage::reset()
chkNamedColors->setChecked(config.readEntry("NamedColors", false)); chkNamedColors->setChecked(config.readEntry("NamedColors", false));
chkPreviewAfterColor->setChecked(config.readEntry("PreviewAfterColor", true)); chkPreviewAfterColor->setChecked(config.readEntry("PreviewAfterColor", true));
QList<int> enabledHexLengths = config.readEntry("HexLengths", QList<int>{12, 9, 8, 6, 3}); QList<int> enabledHexLengths = config.readEntry("HexLengths", QList<int>{12, 9, 6, 3});
for (const int hexLength : chkHexLengths.keys()) { for (const int hexLength : chkHexLengths.keys()) {
chkHexLengths[hexLength]->setChecked(enabledHexLengths.contains(hexLength)); chkHexLengths[hexLength]->setChecked(enabledHexLengths.contains(hexLength));
} }
......
...@@ -102,7 +102,7 @@ ColorPickerInlineNoteProvider::~ColorPickerInlineNoteProvider() ...@@ -102,7 +102,7 @@ ColorPickerInlineNoteProvider::~ColorPickerInlineNoteProvider()
void ColorPickerInlineNoteProvider::updateColorMatchingCriteria() void ColorPickerInlineNoteProvider::updateColorMatchingCriteria()
{ {
KConfigGroup config(KSharedConfig::openConfig(), "ColorPicker"); KConfigGroup config(KSharedConfig::openConfig(), "ColorPicker");
m_matchHexLengths = config.readEntry("HexLengths", QList<int>{12, 9, 8, 6, 3}).toVector(); m_matchHexLengths = config.readEntry("HexLengths", QList<int>{12, 9, 6, 3}).toVector();
m_putPreviewAfterColor = config.readEntry("PreviewAfterColor", true); m_putPreviewAfterColor = config.readEntry("PreviewAfterColor", true);
m_matchNamedColors = config.readEntry("NamedColors", false); m_matchNamedColors = config.readEntry("NamedColors", false);
......
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