update theme accent control with keyboard shortcut

This commit is contained in:
zombieFox 2021-09-25 22:08:15 +01:00
parent 745b3e62a3
commit bb6191ee50
2 changed files with 3 additions and 24 deletions

View File

@ -36,27 +36,3 @@
height: 100%;
display: block;
}
/* @media (min-width: 550px) {
:root {
--theme-accent-preset-preview-space: 5;
}
}
@media (min-width: 700px) {
:root {
--theme-accent-preset-preview-space: 5;
}
}
@media (min-width: 900px) {
:root {
--theme-accent-preset-preview-space: 5;
}
}
@media (min-width: 1100px) {
:root {
--theme-accent-preset-preview-space: 5;
}
} */

View File

@ -92,6 +92,9 @@ keyboard.ctrAltR = new KeyboardShortcut({
action: () => {
theme.accent.random.render();
toolbar.current.update.accent();
if (themeSetting.control.accent.color) {
themeSetting.control.accent.color.update();
};
applyCSSVar([
'theme.accent.rgb.r',
'theme.accent.rgb.g',