Skip to content

Respect Windows High Contrast mode #181

Closed

Description

@TMHSDigital

Summary

The app always applies a fixed dark palette, including to the custom canvas widgets, and ignores the system High Contrast setting.

Where

  • autoclicker/gui/theme.py:94-110 (apply_theme)
  • autoclicker/gui/widgets/run_button.py:49

Details

Nothing reads SPI_GETHIGHCONTRAST. The README presents the app for repetitive-strain and accessibility use.

Impact

Low-vision users with a High Contrast theme get colours the app chose instead of theirs.

Suggested fix

At startup check SystemParametersInfoW(SPI_GETHIGHCONTRAST); when on, skip sv_ttk and feed GetSysColor values into the palette the custom widgets already subscribe to.

Acceptance criteria

  • With High Contrast on, all widgets use system colours
  • Default appearance unchanged otherwise

Getting started

  • Relevant files: autoclicker/gui/theme.py, autoclicker/gui/widgets/
  • How to run tests: make check (Git Bash) or tasks.bat lint, tasks.bat typecheck, tasks.bat test (cmd). Single test: python -m pytest tests/test_x.py::TestClass::test_name --no-cov
  • Related docs: CONTRIBUTING.md, docs/ARCHITECTURE.md

Filed by repo-audit/full-audit at 9968dc8. Severity: low. Effort: M. audit-key: enhancement|autoclicker/gui/theme.py|high contrast

Activity

  1. added
    enhancement
    help wanted
    priority: low
    accessibility
    on Nov 6, 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

    accessibilityenhancementhelp wantedpriority: low

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions