Skip to content

Try symbolic icon names before full-colour ones for the install row - #231

Open
kacperpaczos wants to merge 1 commit into
Dvlv:masterfrom
kacperpaczos:fix/install-icon-symbolic-first
Open

Try symbolic icon names before full-colour ones for the install row#231
kacperpaczos wants to merge 1 commit into
Dvlv:masterfrom
kacperpaczos:fix/install-icon-symbolic-first

Conversation

@kacperpaczos

Copy link
Copy Markdown
Contributor

Fixes #230

get_available_icon_name walks its candidate list and takes the first name the active icon theme has. INSTALL_PACKAGE_ICON_NAMES put the full-colour system-software-install second, in front of install-symbolic — so on Breeze, which has no system-software-install-symbolic but does have install-symbolic, the resolver stopped at the full-colour icon and the row stood out from the otherwise monochrome list. Symbolic icons also follow the text colour and grey out with an insensitive row; full-colour ones do neither, which is what makes the odd one out so visible.

The list now tries every symbolic candidate before the full-colour last resort: system-software-install-symbolicinstall-symbolicdownload-symbolicsystem-software-install. Breeze resolves install-symbolic; Adwaita keeps resolving system-software-install-symbolic, exactly as before.

Breeze before Breeze after
the install row with a full-colour green icon the install row with a monochrome symbolic icon

Adwaita, unchanged by this PR:

the install row under Adwaita, monochrome as before

Testing

Captures are from a virtual display with a stub distrobox list: Breeze through the session's icon theme, Adwaita through an isolated settings backend left at its defaults. The one-line list change is the whole diff, so the behaviour difference is exactly what the screenshots show.

get_available_icon_name takes the first name the active icon theme has,
and INSTALL_PACKAGE_ICON_NAMES put full-colour system-software-install
in front of install-symbolic. Breeze has no
system-software-install-symbolic but does have install-symbolic, so KDE
users got a full-colour icon in an otherwise monochrome list - symbolic
icons follow the text colour, full-colour ones do not, which makes the
odd one out very visible. Adwaita resolves the first name as before.
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.

Install .deb/.rpm row gets a full-colour icon among symbolic ones on KDE (Breeze)

1 participant