This commit is contained in:
Bahadır Sofuoğlu
2022-11-07 16:03:17 +03:00
parent 6fd2c572bd
commit c8f92b0102
3 changed files with 13 additions and 14 deletions

View File

@@ -10,7 +10,6 @@ const { changeThemeSettings, setScale, layoutConfig } = useLayoutService();
const onConfigButtonClick = () => {
visible.value = !visible.value;
};
const onChangeTheme = (theme, mode) => {
const elementId = 'theme-css';
const linkElement = document.getElementById(elementId);
@@ -26,12 +25,10 @@ const onChangeTheme = (theme, mode) => {
changeThemeSettings(theme, mode === 'dark');
};
const decrementScale = () => {
setScale(layoutConfig.scale.value - 1);
applyScale();
};
const incrementScale = () => {
setScale(layoutConfig.scale.value + 1);
applyScale();