Skip to content
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

Merged
merged 11 commits into from
Jan 19, 2024
Merged

Conversation

jeremypw
Copy link
Collaborator

@jeremypw jeremypw commented Dec 9, 2023

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.

@jeremypw jeremypw marked this pull request as ready for review December 9, 2023 17:30
@jeremypw jeremypw requested a review from a team December 9, 2023 17:30
Copy link
Contributor

@Marukesu Marukesu left a 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.

src/MainWindow.vala Outdated Show resolved Hide resolved
src/MainWindow.vala Outdated Show resolved Hide resolved
src/MainWindow.vala Show resolved Hide resolved
src/MainWindow.vala Show resolved Hide resolved
jeremypw and others added 2 commits January 10, 2024 10:27
Dont focus unfullscreen button

Co-authored-by: Danielle Foré <danielle@elementary.io>
Style unfullscreen button

Co-authored-by: Danielle Foré <danielle@elementary.io>
@jeremypw jeremypw requested a review from danirabbit January 10, 2024 10:28
@jeremypw
Copy link
Collaborator Author

@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.

@Marukesu
Copy link
Contributor

@jeremypw you already implemented my suggestion. a fullscreen button in the menu would be good indeed, but that can be left to another PR.

Copy link
Member

@danirabbit danirabbit left a 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!

@danirabbit danirabbit merged commit 9ad5ca6 into master Jan 19, 2024
4 checks passed
@danirabbit danirabbit deleted the fix-fullscreen branch January 19, 2024 21:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

The F11 shortcut key causes the maximize/unmaximize button to fail, in termial,
3 participants