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

Improved settings UI #12486

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Improved settings UI #12486

wants to merge 1 commit into from

Conversation

clefebvre
Copy link
Member

@clefebvre clefebvre commented Nov 6, 2024

Requires linuxmint/python3-xapp#24

The purpose is to improve the look and feel of the settings application. Some of the ideas are inspired by what has been done in GNOME, KDE and Ubuntu and what's been observed outside of the Linux community.

Rounded sections

Rounded sections make the UI more modern and integrate nicely with the rounded nature of Cinnamon themes. In the screenshot below, the first section is rounded, the second one isn't.

image

The rounded section should look nice in any theme but also be themeable via newly introduced CSS style names.

Subtitles and tooltips hints

Tooltip hints make it more obvious when more info is available.

Subtitles allow us to squeeze in more information. Along with tooltips they can reduce the need for text blocks.

image

Disabled settings vs hidden settings

Cinnamon Settings relies on revealers to show/hide settings which depend on others. Although that's pretty nifty, it makes screenshots less consistent, it's harder to remember when a particular setting is or to find it when looking for it. In general, it's also a bad idea to hide widgets away from the user or having things suddenly pop up.

This PR goes towards showing everything and relying on sensitivity to disable settings which aren't available.

@clefebvre clefebvre changed the title Settings: Rounded sections Improved settings UI Nov 6, 2024
@clefebvre
Copy link
Member Author

Here's a quick prototype to illustrate old vs new class structures and to troubleshoot with Glade:

settings.tar.gz

To run it with Gtk Inspector:

gsettings set org.gtk.Settings.Debug enable-inspector-keybinding true
GTK_DEBUG=interactive python3 ./settings.py

@leigh123linux
Copy link
Contributor

I really dislike the shadow.

image

@clefebvre
Copy link
Member Author

clefebvre commented Nov 6, 2024

We can improve the default CSS. Experiment with it if you have the time and let me know if you find something better.

@clefebvre
Copy link
Member Author

clefebvre commented Nov 6, 2024

Here it is with no shadow.

image

Note: Ignore the bottom border, it has an extra separator which shouldn't be there.

@clefebvre
Copy link
Member Author

Here's an example in GNOME

image

Rounded section, shadows, subtitles and tooltip hint.

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.

2 participants