Merge pull request #51 from vladstudio/fix-white-menu-bar-icon
Fix white menu bar icon
This commit is contained in:
commit
21404eea15
2 changed files with 2 additions and 0 deletions
|
|
@ -95,6 +95,7 @@ pub fn run() {
|
||||||
)?)?)
|
)?)?)
|
||||||
.menu(&menu)
|
.menu(&menu)
|
||||||
.show_menu_on_left_click(true)
|
.show_menu_on_left_click(true)
|
||||||
|
.icon_as_template(true)
|
||||||
.on_menu_event(|app, event| match event.id.as_ref() {
|
.on_menu_event(|app, event| match event.id.as_ref() {
|
||||||
"settings" => {
|
"settings" => {
|
||||||
if let Some(settings_window) = app.get_webview_window("main") {
|
if let Some(settings_window) = app.get_webview_window("main") {
|
||||||
|
|
|
||||||
|
|
@ -93,6 +93,7 @@ pub fn change_tray_icon(app: &AppHandle, icon: TrayIconState) {
|
||||||
)
|
)
|
||||||
.expect("failed to set icon"),
|
.expect("failed to set icon"),
|
||||||
));
|
));
|
||||||
|
let _ = tray.set_icon_as_template(true);
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Plays an audio resource from the resources directory.
|
/// Plays an audio resource from the resources directory.
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue