-
-
Notifications
You must be signed in to change notification settings - Fork 102
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
Fix inoperative header decorations when fullscreened #753
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
A litte suggestion with Gtk4 in mind.
Also, a pior art in this case is epiphany, that pack_end()
a Gtk.Button that trigger the fullscreen action and is only visible when fullscreened.
something like this should be simple to do here too.
Dont focus unfullscreen button Co-authored-by: Danielle Foré <danielle@elementary.io>
Style unfullscreen button Co-authored-by: Danielle Foré <danielle@elementary.io>
@Marukesu Thanks for the suggestion - can it be left for another PR? The current version of epiphay in 7.1 only has a "maximise" button in the headerbar. It does have a "fullscreen"button in the AppMenu though. |
@jeremypw you already implemented my suggestion. a fullscreen button in the menu would be good indeed, but that can be left to another PR. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Works as expected, nice job!
Fixes #752
When fullscreened, the default decoration is overridden to show only the Close button (which still works) and a custom "Exit Fullscreen" button is revealed to replace the inoperative "Maximize/UnMaximise" button (with the same icon but with a Granite tooltip). This follows the method used by Epiphany (except that Epiphany does not use a tooltip).
If this solution is accepted then it could also be used for e.g. Code which has the same issue.