-
Notifications
You must be signed in to change notification settings - Fork 568
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
Windows without decorations #427
Comments
For Windows, we'd need a way to adjust the window style being provided to CreateWindow - currently it's always So, maybe a little complex, but definitely something I'd like to see. In general, if you have the time, I think we're open to seeing something created for one platform and letting the others trail until we can get a good design story and make a workable API. I'm not sure if we're okay with that approach for something this large |
So this is totally a goal, and is highly platform dependent. I see there being two ways of handling this. The first is better API but less flexible: a The other option is to allow (per-platform) for the It may be but this particular case is general enough that we can just add it to |
Here are the related options in Electron for reference: https://electronjs.org/docs/api/frameless-window |
winit has some methods on WindowBuilder, including Maybe you would like to mirror that in druid as well? I would be glad to implement something which would add support to druid for the attributes available in |
Yea, I think this would be welcome; things that are missing in our current API are not design choices, just things we haven't gotten around to yet. |
Has any work been done on this? I am not quite sure where to start on it, but I am going to be looking into it during my free time. Currently I have been looking at how winit handles this as an example. |
I do not believe anyone is actively working on this, but I could be wrong. I'm not sure if winit will be a great example for us, but I haven't looked too closely; it's certainly possible. :) |
IMO, it's not enough to hide the titlebar, when this is done properly, one could draw even a window that is shaped like a circle, even Electron allowes to do that which is kind of cool. In Windows it's trivial to hide the titlebar, but getting semi-transparency effects is much harder. In Windows 10 this behavior is closely related to composited Window. For instance a non-rectangular windows like tooltips, and or other popups with custom shadows or effects etc. I toyed around the window creation settings a lot, and figured the perfect combination few years back in my C++ experiments. To get semi-transparency effects with no borders and non-rectangular windows one needs |
I have now a fork, where I experiment this: My intention is to add a following API: let window = WindowDesc::new(example)
.show_titlebar(false) // <-- THIS ALREADY EXISTS
.window_size((823., 823.))
.transparent_bg(true) // <-- NEW ITEM HERE for transparency
.resizable(true)
.title(LocalizedString::new("Fancy Colors")); I will continue about this in the Zulip. |
(Priority: super low)
I'd like to be able to create windows without the titlebar or borders, in order to make my own custom thing.
For example, Bitwig made its own titlebar so it could add more stuff to it:
In GTK land, this is done with
gtk_window_set_decorated
.The text was updated successfully, but these errors were encountered: