add dark assets for test
This commit is contained in:
parent
76b5fb4014
commit
58c3d40713
4 changed files with 8 additions and 1 deletions
BIN
src-tauri/resources/tray_idle_dark.png
Normal file
BIN
src-tauri/resources/tray_idle_dark.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 1.5 KiB |
BIN
src-tauri/resources/tray_recording_dark.png
Normal file
BIN
src-tauri/resources/tray_recording_dark.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 1.3 KiB |
BIN
src-tauri/resources/tray_transcribing_dark.png
Normal file
BIN
src-tauri/resources/tray_transcribing_dark.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 1.4 KiB |
|
|
@ -78,9 +78,16 @@ pub fn run() {
|
|||
))
|
||||
.manage(Mutex::new(ShortcutToggleStates::default()))
|
||||
.setup(move |app| {
|
||||
// Log the current system theme
|
||||
if let Some(main_window) = app.get_webview_window("main") {
|
||||
if let Ok(theme) = main_window.theme() {
|
||||
println!("System theme: {:?}", theme);
|
||||
}
|
||||
}
|
||||
|
||||
let tray = TrayIconBuilder::new()
|
||||
.icon(Image::from_path(app.path().resolve(
|
||||
"resources/tray_idle.png",
|
||||
"resources/tray_idle_dark.png",
|
||||
tauri::path::BaseDirectory::Resource,
|
||||
)?)?)
|
||||
.show_menu_on_left_click(true)
|
||||
|
|
|
|||
Loading…
Reference in a new issue