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

Add gtk setting for elementary button layout #318

Closed
teamcons opened this issue Oct 17, 2024 · 3 comments · Fixed by #319
Closed

Add gtk setting for elementary button layout #318

teamcons opened this issue Oct 17, 2024 · 3 comments · Fixed by #319
Assignees

Comments

@teamcons
Copy link

Problem

Some electron apps such as Discord, Spotify, do not follow elementaryOS default button layout.
I am not sure exactly why. However these are popular app, and people may wonder why there is a mismatch

From:
elementary/triage#598

Proposal

Force apps to use eOS layout with a GTK settings. This does not affect apps which have their own design, such as Steam, but create more conformity for those whose layout can be changed.
In the home folder, this also means tinkerers do not need root access to change theirs back, limit risk of breakage.

Create the following files:

.config/gtk-3.0/settings.ini
.config/gtk-4.0/settings.ini

With the following content:

[Settings]
gtk-decoration-layout=close:maximize

Prior Art (Optional)

No response

@teamcons
Copy link
Author

teamcons commented Oct 17, 2024

Huh i just saw this #305

@danirabbit
Copy link
Member

Yeah so it looks like libgtk-3-0t64 provides a /etc/gtk-3.0/settings.ini but it doesn't provide a /etc/gtk-4.0/settings.ini

@teamcons is the gtk3 one also necessary or just the gtk4 one? I think we can provide the gtk-3.0 one in skel instead maybe if it is

@teamcons
Copy link
Author

Yeah so it looks like libgtk-3-0t64 provides a /etc/gtk-3.0/settings.ini but it doesn't provide a /etc/gtk-4.0/settings.ini

@teamcons is the gtk3 one also necessary or just the gtk4 one? I think we can provide the gtk-3.0 one in skel instead maybe if it is

I am not sure, to be honest. Discord seems fine without. Maybe theres apps who would rely on the gtk3 settings.ini / built on an older electron ?
Maybe later down the line the same issue as for which package provides /etc/gtk-3.0/settings.ini will happen for gtk4 ?

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 a pull request may close this issue.

2 participants