Skip to content

BUG:PROD:System settings toggles use a custom switch instead of the shared Switch component #1668

Open

Description

@RounakKumarAgarwal

Is there an existing issue for this?

  • I have searched the existing issues

What happened?

The two toggles in the System settings card ("Launch at startup" and "Close to tray") in SystemSettingsCard.tsx are hand-built with <button role="switch"> and custom Tailwind classes (h-6 w-11, custom colors), instead of the shared Switch component (components/ui/switch, Radix-based, h-[1.15rem] w-8) that every other toggle in the app uses.

As a result, the System toggles look visually different (larger, different styling) from toggles in Albums dialogs, Metadata Export, User Preferences, and Folder Management, which all use the shared component.

Expected

All toggles should use the shared Switch component for a consistent look and behavior across the app.

Proposed fix

Replace the two custom <button role="switch"> toggles in SystemSettingsCard.tsx with <Switch>, preserving the existing autostart/close-to-tray logic and accessibility attributes (aria-labelledby / aria-describedby).

Image Image

Record

  • I agree to follow this project's Code of Conduct

Activity

  1. github-actions commented on Oct 28, 2026

    @github-actions
    Contributor

    👋 Thanks for opening this issue! The maintainers will review it shortly. Till then, do not open any PR. This is a strict rule we like to follow around here :)

  2. github-actions commented on Oct 28, 2026

    @github-actions
    Contributor

    ⚠️ Potential Duplicate Issue (Semantic Match)

    This issue appears semantically similar to the following issues in AOSSIE-Org/PictoPy:

    1. BUG: Removing useless change mode popup window (BUG: Removing useless change mode popup window #1016, open)
      BUG: Removing useless change mode popup window #1016
      Similarity: 58.2%

    2. Refactor Settings.tsx (Refactor Settings.tsx #509, closed)
      Refactor Settings.tsx #509
      Similarity: 55.5%

    Please review before proceeding.

  3. changed the title [-]BUG: System settings toggles use a custom switch instead of the shared Switch component[/-] [+]BUG:PROD:System settings toggles use a custom switch instead of the shared Switch component[/+] on Oct 28, 2026
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

    bugSomething isn't workingenhancementNew feature or requestpossible-duplicatePotential semantic duplicate (upstream comparison)

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions