2
0
Fork 0
Make the icons non-distracting
  • JavaScript 84.4%
  • CSS 15.6%
Find a file
2026-11-20 22:36:08 +00:00
dprint.json chore: add formatting 2026-11-20 22:36:08 +00:00
extension.js chore: add formatting 2026-11-20 22:36:08 +00:00
metadata.json feat: basics 2026-11-20 22:30:16 +00:00
README.md chore: add formatting 2026-11-20 22:36:08 +00:00
symbolic-fallback.css feat: basics 2026-11-20 22:30:16 +00:00

gnome-icon-sepia

UUID: gnome-icon-sepia. No @... suffix is needed: GNOME Shell only requires the uuid in metadata.json to match the directory name (validateMetadata() in js/misc/extensionUtils.js, GNOME Shell 50.1, has no format check).

Desaturates app icons in the dock (Ubuntu Dock / Dash to Dock) and all tray icons, and brings the colors back on hover. App grid (application menu) icons stay colored. Optional sepia tint.

What is covered

The effect is put on the dash item itself (the St.Button inside a .dash-item-container), not on a single St.Icon, so one effect covers:

  • the app icon;
  • the unread notifications counter (.number-overlay / _notificationBadgeBin);
  • the running window indicators (running1..N classes, dot, unity/metro styles);
  • app emblems (show-icons-emblems).

Separately, every child of Main.panel._rightBox (tray / status icons, including Ubuntu AppIndicators) gets an effect, plus a child-added handler so new tray icons are covered too. Tray icons stay gray permanently (no hover).

The app grid is not touched: findDashItem() returns an item only when the icon has an ancestor with the dash-item-container class, and app grid items have no such ancestor.

How it works

Clutter.DesaturateEffect({factor: 1.0}) is added to the dash item; on notify::hover of the item the factor is switched to 0.0, so the colors come back.

Icons are collected in two ways: a patch of AppDisplay.AppIcon.prototype._createIcon (new icons) and a walk over Main.uiGroup (already existing icons). An icon returned by _createIcon() is not parented yet, so the effect is attached from a notify::mapped handler, when the whole ancestor chain exists.

Sepia

const SEPIA = false;
const SEPIA_TINT = {red: 255, green: 226, blue: 184, alpha: 255};

With SEPIA = true a Clutter.ColorizeEffect is used instead of DesaturateEffect. Its shader is color.rgb = gray * tint, so it desaturates and tints at once; that is why the tint is a light color (a dark tint would almost black out the icons). If the color type is missing, it falls back to plain gray.

Install

mkdir -p ~/.local/share/gnome-shell/extensions/gnome-icon-sepia
cp metadata.json extension.js \
   ~/.local/share/gnome-shell/extensions/gnome-icon-sepia/
gsettings set org.gnome.shell enabled-extensions \
  "$(gsettings get org.gnome.shell enabled-extensions | sed "s/]$/, 'gnome-icon-sepia']/")"
# then log out and back in: GNOME 50 reads the extension list only at session start

Debug:

journalctl -b -o cat /usr/bin/gnome-shell | grep -i sepia

Disable: gnome-extensions disable gnome-icon-sepia.

Verified against (Ubuntu 26.04.1, GNOME Shell 50.1, Mutter 18)

  • Clutter.DesaturateEffect and Clutter.ColorizeEffect exist in /usr/lib/x86_64-linux-gnu/mutter-18/Clutter-18.typelib; default factor is 1.0.
  • Mutter 18 has no Clutter.Color any more, colors are passed as Cogl.Color (new Cogl.Color({red,green,blue,alpha}) was checked on the machine itself).
  • dash-item-container is the style class of Dash.DashItemContainer (js/ui/dash.js, tag 50.1); DockDashItemContainer in ubuntu-dock 105 extends it and does item.setChild(appIcon), so the AppIcon is inside it.
  • In ubuntu-dock 105 the badge and the running indicators are added to icon._iconContainer (appIconIndicators.js: _area, _notificationBadgeBin, _progressOverlayArea), i.e. inside the dash item that is being desaturated.
  • GNOME 50 calls _loadExtensions() once at session start and has no file monitor on the extensions directory, so a freshly installed extension is picked up only after a re-login.
  • The extension was loaded and enabled on the target machine; the only log noise came from disable() disconnecting already destroyed actors, which is now guarded by safeDisconnect() / safeRemoveEffect().

Limitations

  • Relies on Mutter actor effects. If they are ever removed, the extension logs a warning and does nothing.
  • The effect on a dash item means an offscreen render of that item; with 10-15 icons this is not noticeable.
  • Tray icons are gray all the time (as requested). To make them behave like the dock, add track_hover and the same handler.

CSS-only alternative

symbolic-fallback.css uses -st-icon-style: symbolic and switches back to regular on :hover. It works only for apps that ship a *-symbolic icon in the icon theme and cannot touch the tray or the app grid. The file is not loaded automatically.