-
Notifications
You must be signed in to change notification settings - Fork 282
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
Support custom title bar color on OSX #177
Comments
This may be possible to implement as plugin, maybe even compatible with https://github.com/mchome/flutter_statusbarcolor (I'm not sure if osx supports all features of flutter_statusbarcolor?) |
I don't know glfw if provide this capability, if glfw has this capability add an option on |
I've looked into it, and started to write a plugin. It seems that go implementation of GLFW doesn't support title bar etc. Even if we can change color by using GLFW, we won't be able to differentiate status bar and navigation bar. |
@zephylac @zakiso here is a blog describing how to set It's possible to get the native IMO, I think the plugin should call |
Ok but we want the plugin to be cross-platform? We will need to implement for each patform then. |
Yes and No, The feature asked by @zakiso is about an OSX dependent request. To resolve the issue, OSX code needs to be written. A shared interface can be exposed to each platform, (same way we handle |
I'll draft a PR on plugins then to follow the WIP. |
Now we can:
I found out that we could also implement some others features like fullscreen (which we already handle) and transparency but this is more related to the window in itself than status bar. I decided to not follow https://github.com/mchome/flutter_statusbarcolor since we add much more feature available. |
I have tested this plugin, but found a weird problem. I called the method channel function on program started, but status bar color not changed. I have two display, when I drag the window into another display then the status bar color changed. |
Can you send your example, I'll try to replicate it. |
I'm pleased to see the community making plugins. The proof of concept made by zephylac is quite impressive. |
Some OSX app has a great view, like this:
Is there any chance of getting this for go flutter app?
This can be achieved by using the following flags on NSWindow, assuming the window background color is set accordingly (example in Swift).
The text was updated successfully, but these errors were encountered: