You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Padlock and eye icon buttons in "Sharing" tab remain black-on-white in dark theme #10920
As can be seen in the screenshot below, the bunch of (un)locked padlocks and eyes buttons show up the same in dark theme as they would in light mode, so they look glaringly out of place, especially at nighttime in a dark room:
They are a bigger source of glare than the checkbox widgets, which are less of an issue because they are much smaller.
Root cause: The padlock and eye icon buttons on the Sharing tab are Bootstrap .input-group-addon elements (gui/default/syncthing/core/editShareTemplate.html). The dark and black theme stylesheets override other form components (e.g. .form-control) but had no rule for .input-group-addon, so Bootstrap's light defaults applied: color: #555 on background-color: #eee, border #ccc — the black-on-white glare in the screenshot.
Fix: Add a .input-group-addon rule to both gui/dark/assets/css/theme.css and gui/black/assets/css/theme.css, matching each theme's existing .form-control palette (dark: #aaa on #3B3B3B, border #424242; black: #aaa on black, border #444).
Testing:
go run build.go — clean build with assets embedded.
go run build.go test — full suite: 48 packages pass, 0 failures.
Live reproduction on a local build (Add Folder → Sharing tab), computed styles of .input-group-addon:
dark theme: rgb(170,170,170) on rgb(59,59,59), border rgb(66,66,66) (fix active)
dark theme with the stylesheet disabled (pre-fix state): rgb(85,85,85) on rgb(238,238,238), border rgb(204,204,204) — the reported bug
black theme: rgb(170,170,170) on rgb(0,0,0), border rgb(68,68,68) (fix active)
The branch is one DCO-signed commit, gui: conventional format, touching only the two theme stylesheets.
Activity
gui: dark theme styles for input group addon icons (fixes syncthing#1…
gui: fix input group addon colors in dark and black themes (fixes syn…
gui: fix input group addon colors in dark and black themes (fixes syn…
shivampwm2020 commentedon Oct 14, 2026
I've prepared a fix for this in my fork: shivampwm2020/syncthing@fix/10920-sharing-icons-dark-theme — happy to open a PR once onboarded (I understand
pull_request_creation_policyiscollaborators_onlyfor this repo).Root cause: The padlock and eye icon buttons on the Sharing tab are Bootstrap
.input-group-addonelements (gui/default/syncthing/core/editShareTemplate.html). The dark and black theme stylesheets override other form components (e.g..form-control) but had no rule for.input-group-addon, so Bootstrap's light defaults applied:color: #555onbackground-color: #eee, border#ccc— the black-on-white glare in the screenshot.Fix: Add a
.input-group-addonrule to bothgui/dark/assets/css/theme.cssandgui/black/assets/css/theme.css, matching each theme's existing.form-controlpalette (dark:#aaaon#3B3B3B, border#424242; black:#aaaonblack, border#444).Testing:
go run build.go— clean build with assets embedded.go run build.go test— full suite: 48 packages pass, 0 failures..input-group-addon:rgb(170,170,170)onrgb(59,59,59), borderrgb(66,66,66)(fix active)rgb(85,85,85)onrgb(238,238,238), borderrgb(204,204,204)— the reported bugrgb(170,170,170)onrgb(0,0,0), borderrgb(68,68,68)(fix active)The branch is one DCO-signed commit,
gui:conventional format, touching only the two theme stylesheets.