Removed redundant Theme properties

This commit is contained in:
thepaperpilot 2022-03-02 20:30:52 -06:00
parent b9f28f764f
commit 9efabf9cf6
2 changed files with 1 additions and 7 deletions

View file

@ -21,9 +21,7 @@ interface ThemeVars {
export interface Theme { export interface Theme {
variables: ThemeVars; variables: ThemeVars;
stackedInfoboxes: boolean;
floatingTabs: boolean; floatingTabs: boolean;
showSingleTab: boolean;
mergeAdjacent: boolean; mergeAdjacent: boolean;
} }
@ -54,9 +52,7 @@ const defaultTheme: Theme = {
"--modal-border": "solid 2px var(--color)", "--modal-border": "solid 2px var(--color)",
"--feature-margin": "0px" "--feature-margin": "0px"
}, },
stackedInfoboxes: false,
floatingTabs: true, floatingTabs: true,
showSingleTab: false,
mergeAdjacent: true mergeAdjacent: true
}; };
@ -83,7 +79,6 @@ export default {
"--modal-border": "", "--modal-border": "",
"--feature-margin": "5px" "--feature-margin": "5px"
}, },
stackedInfoboxes: true,
floatingTabs: false floatingTabs: false
} as Theme, } as Theme,
// Based on https://www.nordtheme.com // Based on https://www.nordtheme.com
@ -109,7 +104,6 @@ export default {
"--modal-border": "solid 2px #3B4252", "--modal-border": "solid 2px #3B4252",
"--feature-margin": "5px" "--feature-margin": "5px"
}, },
stackedInfoboxes: true,
floatingTabs: false floatingTabs: false
} as Theme, } as Theme,
aqua: { aqua: {

View file

@ -74,7 +74,7 @@ export default defineComponent({
const titleComponent = computeComponent(title); const titleComponent = computeComponent(title);
const bodyComponent = computeComponent(display); const bodyComponent = computeComponent(display);
const stacked = computed(() => themes[settings.theme].stackedInfoboxes); const stacked = computed(() => themes[settings.theme].mergeAdjacent);
return { return {
titleComponent, titleComponent,