Skip to content

Color the scrollbar with the chosen accent - #763

Merged
Zaldaryon merged 1 commit into
devfrom
fix/scrollbar-follows-accent
Oct 17, 2026
Merged

Zaldaryon merged 1 commit into
devfrom
fix/scrollbar-follows-accent

Conversation

@Pixnop

@Pixnop Pixnop commented Oct 17, 2026 •

Copy link
Copy Markdown
Contributor

On beta.14 the scrollbar does not follow the launcher's accent color.

applyAccentColor (src/renderer/src/utils/accentStyle.ts) sets --color-vsl, --color-vs and --color-vsd on the root for the preset chosen in Config, and every surface reads those variables, except the scrollbar thumb: styles.css gave it background-color: #7e501e, the Amber mid stop written as a hex, so it stayed brown under any other accent. It now uses var(--color-vs), the same stop as the Play button and the enabled toggles.

A new test in tests/domain/accentColors.test.ts refuses any of the three brand stops spelled as a hex outside the @theme block of styles.css. It fails on dev ("styles.css hard-codes #7e501e") and passes here; the scrollbar was the only such place. Prettier and ESLint are clean on both files.

The scrollbar thumb was the only surface still spelling the Amber mid stop as a hex (#7e501e) instead of var(--color-vs), so it stayed brown whatever accent the player picked in Config. A test now refuses any brand stop written as a hex outside the @theme block.
@Pixnop Pixnop added this to the 1.7.0 milestone Oct 17, 2026
@Pixnop Pixnop added bug Something isn't working area: renderer React UI, contexts, feature adapters labels Oct 17, 2026
@Pixnop
Pixnop requested a review from Zaldaryon October 17, 2026 00:06

@Zaldaryon Zaldaryon left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Tested on head 7492c4c. Verified npm run typecheck, npm run lint:ci, npm run format:check, npm run test (all 296 test files pass), and npm run build:unpack. The scrollbar thumb follows the active accent preset as intended, and the test in tests/domain/accentColors.test.ts guards against hardcoded brand stops. Approving.

@Zaldaryon
Zaldaryon merged commit 65dc45d into dev Oct 17, 2026
12 checks passed
@Zaldaryon
Zaldaryon deleted the fix/scrollbar-follows-accent branch October 17, 2026 13:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area: renderer React UI, contexts, feature adapters bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants