Closed valentinegb closed 1 month ago
Yeah I understand, but I thought this might be helpful since fully-native Mac apps quite frequently use this style of title bar (technically, this style of toolbar, which is why a toolbar is needed) but I don't think I've ever seen a non-fully-native app do it, which makes me think it's maybe not easy enough I mean, it's pretty easy, but maybe not totally obvious, since you have to add a native view (and then not use it) while cross-platform apps typically stay away from native views and defer to their custom graphics
Thanks for the comment and the thoughts
changelog
module if knowledge of this change could be valuable to usersAdds
WindowExtMacOS::set_unified_titlebar
andWindowAttributesExtMacOS::with_unified_titlebar
, which allow you to use a larger titlebar style on macOS.The titlebar can be made transparent and the title can be hidden and there will be extra space around the window controls.
My code is probably not perfect, I would gladly accept edits or suggestions!