|
@@ -4,7 +4,7 @@
|
|
|
|
|
|
|
|
<script setup>
|
|
<script setup>
|
|
|
import { useQuasar } from "quasar";
|
|
import { useQuasar } from "quasar";
|
|
|
-import { StatusBar } from "@capacitor/status-bar";
|
|
|
|
|
|
|
+import { StatusBar, Style } from "@capacitor/status-bar";
|
|
|
import { Capacitor } from "@capacitor/core";
|
|
import { Capacitor } from "@capacitor/core";
|
|
|
import { watch, onBeforeMount } from "vue";
|
|
import { watch, onBeforeMount } from "vue";
|
|
|
import { useI18n } from "vue-i18n";
|
|
import { useI18n } from "vue-i18n";
|
|
@@ -40,7 +40,7 @@ onBeforeMount(async () => {
|
|
|
if (isNative) await StatusBar.show();
|
|
if (isNative) await StatusBar.show();
|
|
|
const { value: themePref } = await Preferences.get({ key: "theme" });
|
|
const { value: themePref } = await Preferences.get({ key: "theme" });
|
|
|
const theme = themePref || systemTheme;
|
|
const theme = themePref || systemTheme;
|
|
|
- if (isNative) await StatusBar.setStyle({ style: theme.toUpperCase() });
|
|
|
|
|
|
|
+ if (isNative) await StatusBar.setStyle({ style: Style.Dark });
|
|
|
const { value: localePref } = await Preferences.get({ key: "locale" });
|
|
const { value: localePref } = await Preferences.get({ key: "locale" });
|
|
|
const userLocale = localePref || window.navigator.language;
|
|
const userLocale = localePref || window.navigator.language;
|
|
|
console.log(theme, userLocale);
|
|
console.log(theme, userLocale);
|