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%; height: 100%;
display: block; 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: () => { action: () => {
theme.accent.random.render(); theme.accent.random.render();
toolbar.current.update.accent(); toolbar.current.update.accent();
if (themeSetting.control.accent.color) {
themeSetting.control.accent.color.update();
};
applyCSSVar([ applyCSSVar([
'theme.accent.rgb.r', 'theme.accent.rgb.r',
'theme.accent.rgb.g', 'theme.accent.rgb.g',