Skip to content

Dark Mode#7

Open
DanielKirshner wants to merge 2 commits into
MatanBright:mainfrom
DanielKirshner:danielk/dark-mode
Open

Dark Mode#7
DanielKirshner wants to merge 2 commits into
MatanBright:mainfrom
DanielKirshner:danielk/dark-mode

Conversation

@DanielKirshner
Copy link
Copy Markdown

@DanielKirshner DanielKirshner commented Apr 4, 2026

Resolves #3

Description

This PR finalizes and enforces a complete, native-feeling Dark Mode across the application UI, resolving visual bugs, hardcoded contrast issues, and modernizing settings controls.

Key Changes

  • System Color Engine Overrides (App.xaml.cs): Re-mapped base SystemColors.*ColorKey properties directly to our dark palette hex codes. This safely bypasses native WPF/Aero theme ControlTemplate wrappers, preventing glitches where screens or list boxes flash bright white when controls dynamically switch to IsEnabled="False" states (e.g. during program update scans).
  • Immersive Title Bars (WindowUtilities.cs): Integrated native Win32 DwmSetWindowAttribute calls to enforce native dark top title bars on Windows 10/11 windows.
  • Component Polish: Scrubbed remaining hardcoded white borders from core elements in XAML files (e.g., swapping blackSolidColorBrush for transparent masks on buttons and correcting static visibility masks for Custom UI controls). Completely overwrote ListView internal templates in MainWindow.xaml to guarantee backgrounds respect dark themes rather than inheriting system defaults.
  • **Custom Toggle Switch UI: Built a brand new CustomToggleSwitchUI sliding-pill control. Replaced the standard Dark Mode layout checkbox on theSettingsWindow` to use this new control, wiring it up with an interactive "Requires Restart" popup notification.

@DanielKirshner DanielKirshner changed the title Add an option to import/export Scrupdate configuration Dark Mode Apr 4, 2026
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.

feat: support dark mode

1 participant