Skip to content

Store separate dark-mode intensity and color on Windows - #17

Merged
jay739 merged 1 commit into
mainfrom
feat/windows-dark-mode-settings
Nov 12, 2026
Merged

jay739 merged 1 commit into
mainfrom
feat/windows-dark-mode-settings

Conversation

@jay739

@jay739 jay739 commented Nov 12, 2026

Copy link
Copy Markdown
Owner

What

First of five steps toward separate light and dark mode settings on Windows, which macOS already has. HazeSettings gains SeparateAppearance, IntensityDark and HazeColorDark, with the macOS defaults (off, 45%, black), read from and saved to %APPDATA%\OpenHaze\settings.txt.

Nothing uses the new values yet, so behavior is unchanged. Next: follow Windows' light/dark mode in the dimming code, then the Settings window controls, then the docs.

Why

Light and Dark appearance settings are listed in the README as a macOS-only extra. Building it one self-contained step at a time keeps main working throughout.

How it was tested

  • Built with the bundled csc.exe, no warnings; windows/test.bat passes.
  • Loaded an existing settings file that has none of the new keys: the defaults apply and the existing values are kept. Saved new dark-mode values, read them back identical, then restored the original file.

First step of light and dark mode settings on Windows, matching the macOS
app. The settings gain a switch, a dark-mode intensity and a dark-mode color,
with the same defaults as macOS (off, 45%, black). They are read from and saved
to settings.txt but nothing uses them yet, so behavior is unchanged.
@jay739
jay739 merged commit 783c72e into main Nov 12, 2026
3 checks passed
@jay739
jay739 deleted the feat/windows-dark-mode-settings branch November 12, 2026 22:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant