-
-
Notifications
You must be signed in to change notification settings - Fork 323
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Toolbar Mac XCode-style #390
Comments
You can do this currently with a style in your startup mac app, before running your application: // In Xamarin.Mac:
Eto.Style.Add<Eto.Mac.Forms.FormHandler>("unified", h => h.Control.TitleVisibility = NSWindowTitleVisibility.Hidden);
// For MonoMac, since the TitleVisibility api hasn't been bound yet:
Eto.Style.Add<Eto.Mac.Forms.FormHandler>("unified", h => {
MonoMac.ObjCRuntime.Messaging.void_objc_msgSend_IntPtr(h.Control.Handle, MonoMac.ObjCRuntime.Selector.GetHandle("setTitleVisibility:"), (IntPtr)1);
}); then just set |
ok, this looks much better. Seems like this Style-feature is very powerful. btw. is there a way to add other controls to the toolbar, like e.g. a SearchBox? Tom |
Hey Tom, There's no way to put a search box on the toolbar just yet. This should be doable with a new CustomToolItem that I'd like to implement (issue #32). It's been outstanding for a while - I should really get to that. The more I hear of it bumps it up in priority though so I'll see if I can get to that soon (if no one else does). As for grouping buttons on a toolbar, that will require a new control unless you want to implement your own custom platform control. However, this will probably appear on my priority list fairly soon as I'll be needing this type of control as well. |
any news on this? |
Hi Curtis, I'm wondering, if it might be possible to have a toolbar in Mac similar to how it looks in XCode.
Currently we can only have one toolbar in the main-window, but for some use-cases it would be useful to have these nice and slim toolbars like XCode has it even in sub-views in addition to the main-toolbar.
Tom
The text was updated successfully, but these errors were encountered: