Repository navigation
support multiple NSWindowToolbarStyles
#139
marceloexc
started this conversation in
Ideas
Replies: 1 comment 2 replies
|
Nice idea. Maybe this could be a new frame parameter with those several values (I'd suggest |
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment

Uh oh!
There was an error while loading. Please reload this page.
just like how
tool-bar-styleis exposed as a variable that can change the toolbar setting in mac builds (despite being listed as GTK only in customize), i think we can also expose something likemac-window-toolbar-style, with variables ofexpanded,preference,unified, andunified-compactwhich mirror the options available in AppKitthis can be seen through lldb. after you attach emacs:
expr -l objc++ -- @import AppKitexpr -l objc++ -- ({ NSArray *wins = (NSArray *)[(id)[NSApplication sharedApplication] windows]; for (NSWindow *w in wins) { if ([w toolbar] != nil) [w setToolbarStyle:(NSWindowToolbarStyle)1]; } })(^
1is "expanded" here. 2 is preferece, 3 is unified, and 4 is unifiedCompact)this can be useful for tahoe users who still want a tool bar but want a reduced corner radii. the expanded toolbar setting has the same corner radii as an appkit window that has no toolbar.
All reactions