Sitelet https://github.com/syncthing/syncthing/pull/10815
Skip to content

fix(gui): improve header and button color contrast (fixes #10488) - #10815

Open
giri256 wants to merge 1 commit into
syncthing:mainfrom
giri256:fix/gui-semantic-contrast
Open

fix(gui): improve header and button color contrast (fixes #10488)#10815
giri256 wants to merge 1 commit into
syncthing:mainfrom
giri256:fix/gui-semantic-contrast

Conversation

@giri256

@giri256 giri256 commented Jul 21, 2026

Copy link
Copy Markdown

Purpose

Improve the contrast of semantic request-dialog headers and buttons in the light, dark, and black GUI themes.

The light theme keeps its bright semantic colors and uses black text for success, warning, and danger alerts plus success/warning buttons. Danger buttons use the existing darker red with white text. The dark themes use darker success, warning, and danger backgrounds with white text.

The lowest enabled-state contrast ratio is 4.509:1, meeting WCAG AA for normal text.

Testing

  • go run build.go assets
  • go run build.go build syncthing
  • git diff --check
  • Checked the base and interactive semantic color pairs with a WCAG contrast calculation; all enabled states are at least 4.5:1.
  • Loaded the generated GUI assets in Chromium and verified the computed foreground/background colors for success, warning, and danger alerts and buttons in both light and dark themes.

Screenshots

Rendered light and dark fixtures locally to verify the complete alert and button combinations. The computed colors matched the intended theme rules and no clipping or layout changes were introduced.

Documentation

No documentation changes are required; this only corrects existing theme colors.

Signed-off-by: Giridhar <giridharpavan593@gmail.com>
@github-actions github-actions Bot added the bug A problem with current functionality, as opposed to missing functionality (enhancement) label Jul 21, 2026
@tomasz1986

Copy link
Copy Markdown
Member

Can you post some screenshots showing the difference?

@tomasz1986 tomasz1986 changed the title fix(gui): improve semantic color contrast (fixes #10488) fix(gui): improve header and button color contrast (fixes #10488) Jul 22, 2026
@giri256

giri256 commented Jul 22, 2026

Copy link
Copy Markdown
Author

Thanks — here are before/after screenshots rendered with the exact Bootstrap and theme CSS from upstream main and this branch.

Default theme

Before After
Default theme before Default theme after

The bright success/warning/danger surfaces switch from white text to black text; the danger action also uses the darker red background.

Dark theme

Before After
Dark theme before Dark theme after

The semantic backgrounds become darker and consistently use white text. The black theme uses the same updated semantic color rules as the dark theme.

@calmh calmh removed the rep/neutral label Jul 25, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug A problem with current functionality, as opposed to missing functionality (enhancement)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants