Merge pull request #51 from vladstudio/fix-white-menu-bar-icon

Fix white menu bar icon
This commit is contained in:
CJ Pais 2025-07-28 08:45:16 -07:00 committed by GitHub
commit 21404eea15
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 2 additions and 0 deletions

View file

@ -95,6 +95,7 @@ pub fn run() {
)?)?)
.menu(&menu)
.show_menu_on_left_click(true)
.icon_as_template(true)
.on_menu_event(|app, event| match event.id.as_ref() {
"settings" => {
if let Some(settings_window) = app.get_webview_window("main") {

View file

@ -93,6 +93,7 @@ pub fn change_tray_icon(app: &AppHandle, icon: TrayIconState) {
)
.expect("failed to set icon"),
));
let _ = tray.set_icon_as_template(true);
}
/// Plays an audio resource from the resources directory.