Skip to content

Selected text visible in every skin (Ctrl+A in Switch server under CachyOS) - #436

Merged
rudalabs merged 3 commits into
mainfrom
fix-297
Nov 22, 2026
Merged

rudalabs merged 3 commits into
mainfrom
fix-297

Conversation

@rudalabs

Copy link
Copy Markdown
Collaborator

Selected text is visible in every skin (desktop app and web).

In the CachyOS skin, Ctrl+A in the server address of Switch server… selected the text but showed nothing. Text selection used --selected, the background of selected rows, which in the dark skins is barely lighter than a text field (CachyOS: #003b33 on --input-bg #000e0e, about 1.6 : 1; Arch and TeamCraft Night are similar). A selection now takes --primary with --on-primary, as the OS shows one – a pair skins_meet_contrast already checks (≥ 4.5 : 1) in every skin.

The rule moves from desktop/ui/app.css and static/style.css into shared/css/components.css, so both apps share one rule (the drift guards only compare classes, so their lists are unchanged).

Docs: CHANGELOG (Fixed), shared/README.md.

Also on this branch (the maintainer's own commits, included on purpose): file mode 644 → 755 for 84 files, and .claude/settings.local.json.

Not checked by eye after the change – please select text in a field under the CachyOS skin once (desktop and web).

🤖 Generated with Claude Code

rudalabs and others added 3 commits November 22, 2026 18:15
Text selection used the background of selected rows, which in the dark
skins is barely lighter than a text field. In the CachyOS skin, Ctrl+A in
the server address of Switch server selected the text but showed nothing.
A selection now takes the primary colour with its text colour (a pair the
contrast test checks in every skin). The rule moves from desktop/ui/app.css
and static/style.css into shared/css/components.css.

Docs: CHANGELOG, shared/README.md.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@rudalabs
rudalabs merged commit 8b7d199 into main Nov 22, 2026
29 of 32 checks passed
@rudalabs
rudalabs deleted the fix-297 branch November 22, 2026 17:37
rudalabs added a commit that referenced this pull request Nov 22, 2026
The no-literal-colours guard of shared/css/ also reads comments; the
comment added in #436 quoted two hex colours, so
assets::tests::shared_components_use_no_literal_colours failed in every
test job (Linux PostgreSQL 16 and 18, Windows) since 8b7d199.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
rudalabs added a commit that referenced this pull request Nov 22, 2026
)

Every test job on main has failed since 8b7d199 (#436) on one test,
assets::tests::shared_components_use_no_literal_colours: the comment of
the shared ::selection rule in shared/css/components.css quoted two hex
colours, and the guard reads comments too. The comment now gives the
contrast instead. All other tests passed (1622 of 1623 on PostgreSQL 16,
coverage 93.11 %).

Also on this branch: your own commits (CLAUDE.md, 4 lines removed).

🤖 Generated with [Claude Code](https://claude.com/claude-code)

---------

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
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