How to set minimum width for system tray window? #8518
Answered
by
FabianLars
billywatkins
asked this question in
Q&A
-
Hello, I am trying to set the minimum width for the system tray window, but I don't know how. use tauri::{CustomMenuItem, SystemTray, SystemTrayMenu, SystemTrayMenuItem};
pub fn setup_system_tray() -> SystemTray {
let open = CustomMenuItem::new("open".to_string(), "open");
let tray_menu = SystemTrayMenu::new()
.add_item(open)
SystemTray::new().with_menu(tray_menu)
} |
Beta Was this translation helpful? Give feedback.
Answered by
FabianLars
Jan 1, 2024
Replies: 1 comment 2 replies
-
Tauri doesn't have such a setting and i've never heard of it before to be honest. Do you know of any other gui framework that has a config like this for native tray menus that we could look at to see how we could implement it? |
Beta Was this translation helpful? Give feedback.
2 replies
Answer selected by
billywatkins
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Tauri doesn't have such a setting and i've never heard of it before to be honest. Do you know of any other gui framework that has a config like this for native tray menus that we could look at to see how we could implement it?