Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Utilities
Kate
Commits
965ee3d9
Commit
965ee3d9
authored
Jan 20, 2021
by
Jan Paul Batrina
Browse files
[ColorPicker] Disable previews for translucent colors by default
parent
eb93ed96
Changes
2
Hide whitespace changes
Inline
Side-by-side
addons/colorpicker/colorpickerconfigpage.cpp
View file @
965ee3d9
...
...
@@ -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
));
}
...
...
addons/colorpicker/katecolorpickerplugin.cpp
View file @
965ee3d9
...
...
@@ -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
);
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment