add color icon & handling

This commit is contained in:
FTCHD
2026-05-10 23:20:10 +03:00
parent 979d34634e
commit e663aca821
6 changed files with 10 additions and 10 deletions
+3 -2
View File
@@ -1,5 +1,6 @@
import { invoke } from '@tauri-apps/api/core'
import { ask } from '@tauri-apps/plugin-dialog'
import { platform } from '@tauri-apps/plugin-os'
import { exit } from '@tauri-apps/plugin-process'
import { LazyStore } from '@tauri-apps/plugin-store'
import { create } from 'zustand'
@@ -134,7 +135,7 @@ interface PersistedStateV2 {
acknowledgements: string[]
appearance: {
tray: 'light' | 'dark' | 'system'
tray: 'light' | 'dark' | 'system' | 'color'
app: 'light' | 'dark' | 'system'
}
}
@@ -212,7 +213,7 @@ export const usePersistedStore = create<PersistedStateV2>()(
acknowledgements: [],
appearance: {
tray: 'system',
tray: platform() === 'linux' ? 'color' : 'system',
app: 'dark',
},
}),