Skip to content

Padlock and eye icon buttons in "Sharing" tab remain black-on-white in dark theme #10920

Open

Description

@nekohayo

What happened?

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:

Image

They are a bigger source of glare than the checkbox widgets, which are less of an issue because they are much smaller.

Syncthing version

2.1.3

Platform & operating system

Fedora Linux 44

Browser version

Firefox 157

Relevant log output

Activity

  1. added theissue type on Oct 13, 2026
  2. added
    bug
    needs-triage
    on Oct 13, 2026
  3. added 3 commits that reference this issue on Oct 14, 2026
    df472d5
    65296de
    7caf241
  4. shivampwm2020 commented on Oct 14, 2026

    @shivampwm2020

    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_policy is collaborators_only for this repo).

    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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugneeds-triage

    Type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions