Skip to content

Fix dark mode in 1.6 - #5178

Open
SpeedyFolf wants to merge 1 commit into
multitheftauto:release/1.6.0from
SpeedyFolf:fix/1.6-dark-mode
Open

Fix dark mode in 1.6#5178
SpeedyFolf wants to merge 1 commit into
multitheftauto:release/1.6.0from
SpeedyFolf:fix/1.6-dark-mode

Conversation

@SpeedyFolf

@SpeedyFolf SpeedyFolf commented Aug 14, 2026

Copy link
Copy Markdown
Contributor

Summary

Porting from 1.7 (master). Parse AppsUseLightTheme registry and fix typos. Read AppsUseLightTheme with a status out param, robustly parse it as a numeric value (strtol) and set darkTitleBar when the value is 0 — replacing the previous incorrect string comparison. Also correct several instances of a spelling error: 'paramters' -> 'parameters' in debug messages and comments.

Motivation

Dark mode on the window titlebar formerly worked in 1.6 but stopped in or around r24000, this fixes it.

Test plan

Checklist

  • Your code should follow the coding guidelines.
  • Smaller pull requests are easier to review. If your pull request is beefy, your pull request should be reviewable commit-by-commit.

Read AppsUseLightTheme with a status out param, robustly parse it as a numeric value (strtol) and set darkTitleBar when the value is 0 — replacing the previous incorrect string comparison. Also correct several instances of a spelling error: 'paramters' -> 'parameters' in debug messages and comments.
@FileEX

FileEX commented Aug 14, 2026

Copy link
Copy Markdown
Member

this should fix it

So you didn't test this? Judging by the check results, I assume not.

@SpeedyFolf

SpeedyFolf commented Aug 14, 2026

Copy link
Copy Markdown
Contributor Author

So you didn't test this? Judging by the check results, I assume not.

Can you still build 1.6 just fine with Visual Studio 2026 instead of 2022? My 2022 straight up broke somehow and I've hopefully fully uninstalled it. I honestly haven't tested it, but it's such a small change and like I said it's the same thing 1.7 uses (this file will now match in 1.6 and 1.7). I think the check results are normal for 1.6, it complained about clang-format even after I used it and it's complaining about Visual Studio 2022 vs. 2026. When I swapped the Hotring Racer 2 and 3 names I didn't test that either, but again it's such a small change.

@SpeedyFolf

SpeedyFolf commented Aug 14, 2026

Copy link
Copy Markdown
Contributor Author

Apparently you can build 1.6 with Visual Studio 2026 as long as you install VS 2022 v143 build tools component and MFC for v143 build tools component (or change afxres.h includes to winres.h), so yes I have tested this now and it works, it's dark when using dark theme and light when using light theme, all is well again.

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.

2 participants