Removed redundant Theme properties
This commit is contained in:
parent
b9f28f764f
commit
9efabf9cf6
2 changed files with 1 additions and 7 deletions
|
@ -21,9 +21,7 @@ interface ThemeVars {
|
|||
|
||||
export interface Theme {
|
||||
variables: ThemeVars;
|
||||
stackedInfoboxes: boolean;
|
||||
floatingTabs: boolean;
|
||||
showSingleTab: boolean;
|
||||
mergeAdjacent: boolean;
|
||||
}
|
||||
|
||||
|
@ -54,9 +52,7 @@ const defaultTheme: Theme = {
|
|||
"--modal-border": "solid 2px var(--color)",
|
||||
"--feature-margin": "0px"
|
||||
},
|
||||
stackedInfoboxes: false,
|
||||
floatingTabs: true,
|
||||
showSingleTab: false,
|
||||
mergeAdjacent: true
|
||||
};
|
||||
|
||||
|
@ -83,7 +79,6 @@ export default {
|
|||
"--modal-border": "",
|
||||
"--feature-margin": "5px"
|
||||
},
|
||||
stackedInfoboxes: true,
|
||||
floatingTabs: false
|
||||
} as Theme,
|
||||
// Based on https://www.nordtheme.com
|
||||
|
@ -109,7 +104,6 @@ export default {
|
|||
"--modal-border": "solid 2px #3B4252",
|
||||
"--feature-margin": "5px"
|
||||
},
|
||||
stackedInfoboxes: true,
|
||||
floatingTabs: false
|
||||
} as Theme,
|
||||
aqua: {
|
||||
|
|
|
@ -74,7 +74,7 @@ export default defineComponent({
|
|||
|
||||
const titleComponent = computeComponent(title);
|
||||
const bodyComponent = computeComponent(display);
|
||||
const stacked = computed(() => themes[settings.theme].stackedInfoboxes);
|
||||
const stacked = computed(() => themes[settings.theme].mergeAdjacent);
|
||||
|
||||
return {
|
||||
titleComponent,
|
||||
|
|
Loading…
Reference in a new issue