Fix top-bar icon showing as three dots #4

Merged
reudy merged 1 commit from fix/tray-icon-lookup into initial-app 2026-10-26 15:18:31 +01:00
Member

Why

After #2, the top-bar icon showed up as the AppIndicator extension's three-dot placeholder instead of the eye.

The extension looks up IconName with a fresh icon theme whose search path is only our IconThemePath (data/icons). It replaces the system icon dirs rather than adding to them (_getIconData → set_search_path([themePath]) in its appIndicator.js). Our folder used the hicolor/symbolic/apps/ layout but had no index.theme. Without the system hicolor/index.theme, the lookup didn't know symbolic/apps existed and found nothing.

In my testing for #2, GTK's own lookup found the icons because it keeps the system dirs, so this slipped through.

What

  • data/icons/hicolor/index.theme, listing symbolic/apps
  • a test that the index lists the folder each top-bar icon lives in

Testing

  • I reproduced the extension's exact lookup with a GTK 3 icon theme whose search path is only data/icons (St's icon theme is forked from GTK 3's). It found neither icon before this change and both after.
  • The new test fails with index.theme removed and passes with it. All 26 tests pass.
  • Not tested: the real GNOME top bar. Please check the eye appears once this is merged and pulled.

🤖 Generated with Claude Code

https://claude.ai/code/session_01F7w6vnQked3XNiTdTZDP8r

## Why After #2, the top-bar icon showed up as the AppIndicator extension's three-dot placeholder instead of the eye. The extension looks up `IconName` with a fresh icon theme whose search path is **only** our `IconThemePath` (`data/icons`). It replaces the system icon dirs rather than adding to them (`_getIconData` → `set_search_path([themePath])` in its `appIndicator.js`). Our folder used the `hicolor/symbolic/apps/` layout but had no `index.theme`. Without the system `hicolor/index.theme`, the lookup didn't know `symbolic/apps` existed and found nothing. In my testing for #2, GTK's own lookup found the icons because it keeps the system dirs, so this slipped through. ## What - `data/icons/hicolor/index.theme`, listing `symbolic/apps` - a test that the index lists the folder each top-bar icon lives in ## Testing - I reproduced the extension's exact lookup with a GTK 3 icon theme whose search path is only `data/icons` (St's icon theme is forked from GTK 3's). It found neither icon before this change and both after. - The new test fails with `index.theme` removed and passes with it. All 26 tests pass. - **Not tested:** the real GNOME top bar. Please check the eye appears once this is merged and pulled. 🤖 Generated with [Claude Code](https://claude.com/claude-code) https://claude.ai/code/session_01F7w6vnQked3XNiTdTZDP8r
agent added 1 commit 2026-10-26 15:06:04 +01:00
The AppIndicator extension looks up IconName with a fresh icon theme
whose search path is *only* our IconThemePath (data/icons), replacing
the system dirs. Without the system hicolor/index.theme it didn't know
about symbolic/apps, found nothing, and showed its "missing" placeholder.
GTK's own lookup keeps the system dirs, which is why this passed in
testing.

Ship an index.theme in data/icons/hicolor, and test that it lists the
folder the icons live in.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01F7w6vnQked3XNiTdTZDP8r
reudy merged commit 83373c4b41 into initial-app 2026-10-26 15:18:31 +01:00
agent changed title from Fix top-bar icon showing as three dots to Fix top-bar icon lookup, and replace the eye with a pause-and-plus icon 2026-10-26 15:24:45 +01:00
agent changed title from Fix top-bar icon lookup, and replace the eye with a pause-and-plus icon to Fix top-bar icon showing as three dots 2026-10-26 15:25:00 +01:00
Sign in to join this conversation.
No reviewers
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: reudy-net/pause#4
No description provided.