generated from Seekra/repository-template
Compare commits
4
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
6fa9206258
|
||
|
|
623b162cc6
|
||
|
|
098d54521d
|
||
|
|
c1986d9c2b
|
+1
-2
@@ -26,7 +26,7 @@ import { useRoute } from 'vue-router';
|
||||
const route = useRoute();
|
||||
|
||||
const { getColorScheme, updateColorScheme } = useColorScheme();
|
||||
const colorScheme = ref('auto');
|
||||
const colorScheme = ref(getColorScheme());
|
||||
provide('colorScheme', colorScheme);
|
||||
watch(colorScheme, (newValue) => {
|
||||
updateColorScheme(newValue);
|
||||
@@ -46,7 +46,6 @@ watch(colorScheme, (newValue) => {
|
||||
document.body.classList.remove('color-scheme-auto');
|
||||
}
|
||||
});
|
||||
colorScheme.value = getColorScheme();
|
||||
|
||||
watchEffect(() => updatePageTitle(route));
|
||||
</script>
|
||||
|
||||
@@ -1,30 +1,3 @@
|
||||
{
|
||||
"contents": [
|
||||
{
|
||||
"name": "appearance",
|
||||
"i18n": "settings.settings.appearance.title",
|
||||
"content": [
|
||||
{
|
||||
"name": "colorScheme",
|
||||
"type": "selection",
|
||||
"i18n": "settings.settings.appearance.contents.colorScheme.title",
|
||||
"default": "auto",
|
||||
"options": [
|
||||
{
|
||||
"name": "auto",
|
||||
"i18n": "settings.settings.appearance.contents.colorScheme.options.auto"
|
||||
},
|
||||
{
|
||||
"name": "light",
|
||||
"i18n": "settings.settings.appearance.contents.colorScheme.options.light"
|
||||
},
|
||||
{
|
||||
"name": "dark",
|
||||
"i18n": "settings.settings.appearance.contents.colorScheme.options.dark"
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
"contents": []
|
||||
}
|
||||
@@ -60,21 +60,6 @@
|
||||
"option": {
|
||||
"ariaLabel": "Wählt die Option {option} aus"
|
||||
}
|
||||
},
|
||||
"settings": {
|
||||
"appearance": {
|
||||
"title": "Erscheinungsbild",
|
||||
"contents": {
|
||||
"colorScheme": {
|
||||
"title": "Farbschema",
|
||||
"options": {
|
||||
"auto": "An Systemfarbschema anpassen",
|
||||
"light": "Hell",
|
||||
"dark": "Dunkel"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -60,21 +60,6 @@
|
||||
"option": {
|
||||
"ariaLabel": "Selects option {option}"
|
||||
}
|
||||
},
|
||||
"settings": {
|
||||
"appearance": {
|
||||
"title": "Appearance",
|
||||
"contents": {
|
||||
"colorScheme": {
|
||||
"title": "Color Scheme",
|
||||
"options": {
|
||||
"auto": "Adapt to system color scheme",
|
||||
"light": "Light",
|
||||
"dark": "Dark"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user