Skip to content

Commit

Permalink
Force dark mode and analytics fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
Levminer committed Nov 1, 2022
1 parent 0e4ad03 commit f7060e4
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 5 deletions.
3 changes: 2 additions & 1 deletion core/tauri.conf.json
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,8 @@
"minWidth": 1000,
"minHeight": 600,
"maximized": true,
"visible": false
"visible": false,
"theme": "Dark"
}
]
}
Expand Down
3 changes: 2 additions & 1 deletion interface/layout/app.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,8 @@ const setBackground = async () => {
}
}

setBackground()
// TODO transparency
// setBackground()

// Tray settings open handler
event.listen("openSettings", (data: any) => {
Expand Down
6 changes: 3 additions & 3 deletions interface/utils/analytics.ts
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
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<string>("system_info")).split("+")[0]
const osArch = await os.arch()
const osVersion = await os.version()

return {
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(),
}
}

0 comments on commit f7060e4

Please sign in to comment.