Skip to content

cs_themes: hide the simplified settings button when no styles are installed - #13963

Open
Fantu wants to merge 1 commit into
linuxmint:masterfrom
Fantu:themes-hide-simplified-button-without-styles
Open

cs_themes: hide the simplified settings button when no styles are installed#13963
Fantu wants to merge 1 commit into
linuxmint:masterfrom
Fantu:themes-hide-simplified-button-without-styles

Conversation

@Fantu

@Fantu Fantu commented Aug 28, 2026

Copy link
Copy Markdown
Contributor

Fixes #13962.

The simplified page needs at least one style from /usr/share/cinnamon/styles.d whose themes are all installed. Where nothing ships such a file — Cinnamon itself dropped 00_cinnamon.styles in 13b1ad1 — the page has only "Custom" in the style combo, the three appearance buttons are insensitive, and the stack switcher is hidden there, so the only way out is "Customize".

Startup already avoids that page when no variant is active, but the "Simplified settings..." button of the advanced page still offers it.

This keeps a reference to that button and drives its visibility from the number of styles found, when it is built and at the end of reset_look_ui(), so it follows if the styles change. set_no_show_all() is needed because the page is shown with show_all(), which would otherwise make the button visible again.

Tested on Debian unstable (Cinnamon 6.6.9), which ships no styles file: the button is gone and the rest of the page is unchanged. Adding a valid styles file brings the button back and the simplified page works as before.

…talled

The simplified page is only usable when a file in
/usr/share/cinnamon/styles.d provides at least one style whose themes
are all installed. On a system where nothing ships one — Cinnamon itself
stopped shipping 00_cinnamon.styles in
13b1ad1 — the page ends up with
"Custom" as the only entry of the style combo and the three appearance
buttons insensitive, and since the stack switcher is hidden there, the
only way out is the "Customize" button.

Startup already handles this by opening the advanced page when no
variant is active, but the "Simplified settings..." button of that page
keeps offering the empty page anyway.

Keep a reference to the button and drive its visibility from the number
of styles found, both when it is built and at the end of
reset_look_ui(). set_no_show_all() is needed because the page is shown
with show_all(), which would otherwise make the button visible again.

Fixes linuxmint#13962

Assisted-by: Claude Code:claude-opus-5
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.

cs_themes: "Simplified settings..." leads to an unusable page when no styles.d file is installed

1 participant