This commit is contained in:
Jan Prochazka
2021-11-21 12:13:35 +01:00
parent bb56c01b55
commit a5bc66eb27
2 changed files with 24 additions and 1 deletions

View File

@@ -53,6 +53,7 @@ export const commandsCustomized = derived([commands, commandsSettings], ([$comma
);
export const visibleToolbar = writableWithStorage(true, 'visibleToolbar');
export const zoomKoef = writableWithStorage(1, 'zoomKoef');
export const leftPanelWidth = writable(300);
export const currentDropDownMenu = writable(null);
export const openedModals = writable([]);
@@ -97,6 +98,13 @@ visibleToolbar.subscribe(value => {
});
export const getVisibleToolbar = () => visibleToolbarValue;
let zommKoefValue = null;
zoomKoef.subscribe(value => {
zommKoefValue = value;
document.body.style.setProperty('zoom', zommKoefValue);
});
export const getZoomKoef = () => zommKoefValue;
let openedTabsValue = null;
openedTabs.subscribe(value => {
openedTabsValue = value;