Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Darkmode #1322

Merged
merged 3 commits into from
Nov 30, 2023
Merged

Darkmode #1322

merged 3 commits into from
Nov 30, 2023

Conversation

Randalphwa
Copy link
Collaborator

This PR sets a delay flag when dark mode is changed, and the actual value is not changed until the app is closed and Prefs::WriteConfig() is called. This avoids the crash called by turning off dark mode while dark colors are still in use.

The second part of this PR enables the Dark Mode setting on Windows in the Preferences dialog.

Closes #1273

This was fixed for wxStaticBoxSizer because it contained a parent window.
However, all the other sizers need to ensure they didn't hide the children
if the user has the Show Hidden toggle button on.
This also displays the dark mode settings in the Preferences dialog when
run under Windows.
This includes the information about Dark Mode now being available.
@Randalphwa Randalphwa merged commit 568706b into main Nov 30, 2023
@Randalphwa Randalphwa deleted the darkmode branch November 30, 2023 04:41
Randalphwa added a commit that referenced this pull request Nov 30, 2023
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Bug: Turning off DarkMode causes a crash
1 participant