zoom - removed from settings, added to window menu

This commit is contained in:
Jan Prochazka
2022-02-24 17:05:19 +01:00
parent 1afbf6049e
commit f384ddfb1f
6 changed files with 42 additions and 27 deletions

View File

@@ -58,7 +58,6 @@ export const commandsCustomized = derived([commands, commandsSettings], ([$comma
// export const visibleToolbar = writableWithStorage(true, 'visibleToolbar');
export const visibleToolbar = writable(false);
export const zoomKoef = writableWithStorage(1, 'zoomKoef');
export const leftPanelWidth = writableWithStorage(300, 'leftPanelWidth');
export const currentDropDownMenu = writable(null);
export const openedModals = writable([]);
@@ -102,13 +101,6 @@ 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;