diff --git a/core/tauri.conf.json b/core/tauri.conf.json index 4654d71e..368c8981 100644 --- a/core/tauri.conf.json +++ b/core/tauri.conf.json @@ -65,7 +65,8 @@ "minWidth": 1000, "minHeight": 600, "maximized": true, - "visible": false + "visible": false, + "theme": "Dark" } ] } diff --git a/interface/layout/app.ts b/interface/layout/app.ts index dc82d9ca..8cae7b5b 100644 --- a/interface/layout/app.ts +++ b/interface/layout/app.ts @@ -33,7 +33,8 @@ const setBackground = async () => { } } -setBackground() +// TODO transparency +// setBackground() // Tray settings open handler event.listen("openSettings", (data: any) => { diff --git a/interface/utils/analytics.ts b/interface/utils/analytics.ts index 4b378e45..21eff9ef 100644 --- a/interface/utils/analytics.ts +++ b/interface/utils/analytics.ts @@ -1,8 +1,8 @@ import build from "../../build.json" -import { os } from "@tauri-apps/api" +import { invoke, os } from "@tauri-apps/api" export const optionalAnalyticsPayload = async () => { - const osType = await os.type() + const osType = (await invoke("system_info")).split("+")[0] const osArch = await os.arch() const osVersion = await os.version() @@ -10,7 +10,7 @@ export const optionalAnalyticsPayload = async () => { version: build.version, build: build.number, os: `${osType} ${osArch.replace("x86_64", "x64")} ${osVersion}`, - lang: navigator.language.slice(0, 2), + lang: navigator.language, date: new Date(), } }