[v2]How to set the hiddenTitle property in rust #11040
-
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
The title visibility status can only be set when creating the window and can't be changed later (not sure if technical limitation or just a missing implementation on our side). To confirm the last part, you could add the objc and cocoa crates to your app and do something like this (untested and written here so may be incomplete) let ns_window = window.ns_window().unwrap() as *mut Object;
ns_window.setTitleVisibility_(appkit::NSWindowTitleVisibility::NSWindowTitleVisible); |
Beta Was this translation helpful? Give feedback.
-
I found a solution, it turns out that it can be configured separately, and I need this configuration so that I don't need to change the style of the window after I start the project, which is mentioned in the documentation: https://v2.tauri.app/develop/configuration-files/#platform-specific-configuration |
Beta Was this translation helpful? Give feedback.
I found a solution, it turns out that it can be configured separately, and I need this configuration so that I don't need to change the style of the window after I start the project, which is mentioned in the documentation: https://v2.tauri.app/develop/configuration-files/#platform-specific-configuration