Skip to content

Improve accented icons rendering#4406

Merged
3v1n0 merged 13 commits intoubuntu:masterfrom
3v1n0:improve-accented-icons-rendering
Mar 14, 2026
Merged

Improve accented icons rendering#4406
3v1n0 merged 13 commits intoubuntu:masterfrom
3v1n0:improve-accented-icons-rendering

Conversation

@3v1n0
Copy link
Contributor

@3v1n0 3v1n0 commented Mar 14, 2026

  • Avoid duplicating icons for rendering the default variant
  • Renders icons for dark icon theme when needed
  • Improve contrast for icons rendering

3v1n0 added 13 commits March 13, 2026 19:09
We were actually using the inverted logic, so that the accent was darker
on dark background and lighter on light backgrounds
…pps icons

These have less contrast issues, because they are normally just used as
big icons and in a dark (for yaru) background, so we can just use the
accent as it is
We excluded default accent rendering since we wanted default-accent
specific icons, but now this need is quite reduced.

But in any case this should be a special case, so if a specific flavor
source icon is provided, then we use it for rendering, otherwise we use
the accented version for being re-colored
We can now just rely on the colorization to generate them all
We tune the gradients though, now that we have more accented color
options we can just rely on contrast-optimized values
At this point the difference is not worth keeping the diff
…grounds

The icons are quite light with an anccent on top, make them more
contrast-friendly
… icons

These icons are normally shown on top of white or dark backgrounds so
it makes sense to have them rendered to be more visible on those
We are currently not using the *-dark themes variants much, but it
exists for a while, so we can now generate icons for them.

If an icon is now part of icons/src/fullcolor/accented-full then the
icon will be rendered for both flavors.

Of course this makes sense only if the icons are using dark-specific
colors, otherwise it's just a duplication.

We do not check for duplicates yet, but it would make sense in future
@3v1n0
Copy link
Contributor Author

3v1n0 commented Mar 14, 2026

Let's merge so hopefully CI will do the job of re-generating everything... Hoping it does not fail 😂

@3v1n0 3v1n0 merged commit 5e39638 into ubuntu:master Mar 14, 2026
3 checks passed
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.

1 participant