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()
chkNamedColors->setChecked(config.readEntry("NamedColors", false));
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()) {
chkHexLengths[hexLength]->setChecked(enabledHexLengths.contains(hexLength));
}
......
......@@ -102,7 +102,7 @@ ColorPickerInlineNoteProvider::~ColorPickerInlineNoteProvider()
void ColorPickerInlineNoteProvider::updateColorMatchingCriteria()
{
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_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