mirror of
https://github.com/zombieFox/nightTab.git
synced 2024-11-25 09:33:20 +01:00
update theme accent control with keyboard shortcut
This commit is contained in:
parent
745b3e62a3
commit
bb6191ee50
@ -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;
|
|
||||||
}
|
|
||||||
} */
|
|
||||||
|
@ -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',
|
||||||
|
Loading…
Reference in New Issue
Block a user