Skip to content

Add Cursor Theme Sync (cursor-theme-sync) - #8339

Open
Anqarium wants to merge 4 commits into
ramensoftware:mainfrom
Anqarium:add-cursor-theme-sync
Open

Anqarium wants to merge 4 commits into
ramensoftware:mainfrom
Anqarium:add-cursor-theme-sync

Conversation

@Anqarium

@Anqarium Anqarium commented Dec 4, 2026

Copy link
Copy Markdown

Adds Cursor Theme Sync: switches the system cursors between a dark set and the original Windows light set when the Windows app theme (AppsUseLightTheme) changes. It is a tool mod (runs in a dedicated windhawk.exe process, nothing is hooked) and does not write to the registry; on unload it restores the registry cursor scheme with SPI_SETCURSORS.

  • Initial release.

Mod authorship

This mod was created by:

  • The submitter, without AI assistance
  • The submitter, with AI assistance
  • Claude
  • ChatGPT
  • Gemini
  • Another AI (please specify):
  • Other (please specify):

Please select the options that best apply. Your selection does not affect the acceptance criteria, but it helps reviewers understand the context of the code and provide relevant feedback.

@windhawk-reviewer windhawk-reviewer Bot added the waiting-for-author The author's turn: request an AI review, or respond to one that was posted. label Dec 4, 2026
@windhawk-reviewer

Copy link
Copy Markdown

Thanks for the pull request! This repository uses a two-stage review: an AI review that you run yourself, followed by a human review.

To get started, comment /ai-review. Once you're happy with the result, comment /ready-for-reviewer to hand it over to a human reviewer.

See the pull request review process for the full details.

@Anqarium

Anqarium commented Dec 5, 2026

Copy link
Copy Markdown
Author

/ai-review

@windhawk-reviewer

Copy link
Copy Markdown

@Anqarium /ai-review can't be applied here: the validation of the current commit reported errors, which have to be fixed first:

mods/cursor-theme-sync.wh.cpp:10: Line 10: @‌architecture must not be specified for tool mods

Push a fix, or edit the PR description for errors in it, then comment /ai-review.

@Anqarium

Anqarium commented Dec 5, 2026

Copy link
Copy Markdown
Author

/ai-review

@windhawk-reviewer windhawk-reviewer Bot added waiting-for-ai-review An AI review was requested and is being prepared. and removed waiting-for-author The author's turn: request an AI review, or respond to one that was posted. labels Dec 5, 2026
@windhawk-reviewer

Copy link
Copy Markdown

Submission review

Note: This review was done by Claude. Due to the amount of submissions, doing a fully manual review for each pull request is no longer feasible. Thank you for understanding.

Remember: The AI reviewer can be wrong - it may misread code, flag correct code as broken, or suggest changes that make things worse. Treat its findings as suggestions to verify, not instructions to follow blindly. You're responsible for the code you submit, so if a finding doesn't hold up, say so instead of changing working code to satisfy it.

Please address the following issues. The items in the collapsed sections are optional, so it's your call whether to address them.


The mod is a clean tool mod: nothing is hooked, nothing is written to disk or the registry, the watcher thread is joined in WhTool_ModUninit, and the launcher boilerplate is a verbatim copy of the wiki snippet. One README item to address:

The default dark set isn't on a stock Windows install, and the README doesn't say where to get it (lines 19, 31, 66–80). The default darkFolder is %SystemRoot%\Cursors\Aero-Dark, which only exists after the user installs a third-party set (windows-aero-inverted-cursors). The README names that set but doesn't link it or explain how to install it. So with the default settings, switching to dark mode changes nothing: LoadImageW fails for all 13 roles, and the only trace is in the log. The mod also only finds files with the hardcoded Aero names (aero_arrow, aero_busy.ani, ..., plus the optional _l/_xl suffix). Any other dark set has to be renamed to match, and the README doesn't mention that either.

Fix: in the README (and in the darkFolder $description), link the dark set and give the install steps. Writing into %SystemRoot%\Cursors needs admin rights, so say so, or point the default at a folder the user can write to. Also list the file names the mod expects, so users can bring their own set.

Optional improvements

Minor polish — none of this affects users, so it's your call.

  • WindhawkUtils::StringSetting (lines 98–100): the raw Wh_GetStringSetting + Wh_FreeStringSetting pair can be replaced by the RAII wrapper:
    std::wstring value = WindhawkUtils::StringSetting::make(name).get();
  • README visual: the mod has a visible effect, so a screenshot or short GIF of the cursors in both themes would help users see what they get.
  • Leftover notes in the role table (lines 68, 71): // NWPen (not in this SDK; needs a live check) reads like an unverified to-do. 32631 is the usual pen id, and cursor-auto-hide passes it to SetSystemCursor the same way (cursor-auto-hide.wh.cpp#L161). Once you've confirmed it works, drop the note.

Functionality notes

Non-critical observations and ideas about the feature behavior itself.

  • Light mode replaces the user's own scheme (lines 160–165). With the default lightFolder, every switch to light mode (and the first pass after enabling the mod) loads the standard-size Aero files. A user who picked another scheme in Mouse settings (e.g. "Windows Default (large)", "Windows Black" or a third-party scheme) loses it while the mod is on. WhTool_ModUninit already treats the registry scheme as "the user's own choice" (line 288). Consider making an empty lightFolder mean "reload the registry scheme" (SPI_SETCURSORS), and making that the default.
  • Re-applying after Windows reloads the cursors (lines 225–230). The fixed delayMs guesses how long a theme switch takes to reset the cursors, so a slow machine can still lose that race. It also doesn't help when the user picks a scheme in Mouse settings while in dark mode: the dark cursors stay replaced until the next theme switch. mouse-cursor-themes handles both by listening for WM_SETTINGCHANGE with SPI_SETCURSORS on a hidden window and re-applying after a short timer. It ignores the broadcasts caused by its own SetSystemCursor calls (mouse-cursor-themes.wh.cpp#L1301-L1320). This needs a message loop on the worker thread, so it's a larger change. It's an option if users report the cursors flipping back.
  • Pin and Person can be applied too (lines 64–65). These are IDC_PIN (32671) and IDC_PERSON (32672) in winuser.h, and cursor-auto-hide passes both to SetSystemCursor (cursor-auto-hide.wh.cpp#L161-L163). Adding them would stop those two from staying light in dark mode. If you add them, don't let a missing pin/person file count as an incomplete light set. Otherwise the line 161 fallback would always run.
  • Cursor size (lines 133, 139): each file is loaded at a single size, SM_CXCURSOR of the tool process. Please check the result with a non-default pointer size (Settings > Accessibility > Mouse pointer) and at more than 100% scaling, against what the same files look like when applied as a scheme. The other cursor tool mods load the files with LoadCursorFromFileW (mouse-cursor-themes.wh.cpp#L1257).
  • Which theme value to follow: the mod follows AppsUseLightTheme (app mode). Cursors are system UI, so some users with a custom mode (dark Windows, light apps) may expect SystemUsesLightTheme. A setting to choose between the two would cover both.
  • Overlap / coexistence: no existing mod switches cursors with the theme. mouse-cursor-themes applies mod-drawn themes via SetSystemCursor without light/dark switching, and auto-theme-switcher switches the Windows theme but doesn't touch cursors. So this isn't a duplicate. Several tool mods replace the same system cursors, though (mouse-cursor-themes, language-cursor, cursor-auto-hide), and running one of them alongside this mod makes the two override each other. A README line would help.

Code overview

For the maintainer: a map of the mod and what it touches outside its own process. Descriptive only — anything that needs a change is listed above. Line numbers refer to the mod source at commit d683f00. This mod is new, so everything below is new.

Code regions

  • Line 1–11: metadata — tool mod (@include windhawk.exe), links advapi32, user32, shell32.
  • Line 13–27: README.
  • Line 29–44: settings — darkFolder, lightFolder, sizeSuffix, delayMs.
  • Line 46–51: includes.
  • Line 53–95: cursor role table (13 aero_* file names → OCR ids), the Personalize key path, settings struct, globals (mutex, settings, stop event, watcher thread handle).
  • Line 97–116: settings loading, with environment-variable expansion of the string settings.
  • Line 118–127: IsLightTheme — reads AppsUseLightTheme (missing value = light).
  • Line 129–169: ApplyFolder / ApplyCurrentTheme — loads each role's file with LoadImageW and installs it with SetSystemCursor; an incomplete light set falls back to reloading the registry scheme.
  • Line 171–236: watcher thread — arms RegNotifyChangeKeyValue on the Personalize key, applies the initial theme, then on each change waits delayMs (interruptible by the stop event) and re-applies.
  • Line 240–263: WhTool_ModInit — reads settings, creates the stop event and the watcher thread.
  • Line 265–271: WhTool_ModSettingsChanged — re-reads settings and re-applies immediately.
  • Line 273–290: WhTool_ModUninit — signals and joins the watcher thread, then reloads the registry cursor scheme.
  • Line 292–469: tool-mod launcher boilerplate (verbatim copy of the wiki snippet).

Side effects of interest

  • Line 119–127, 186–236: registry read: HKCU\Software\Microsoft\Windows\CurrentVersion\Themes\Personalize\AppsUseLightTheme on every apply pass; the key is also opened with KEY_NOTIFY | KEY_QUERY_VALUE and watched with RegNotifyChangeKeyValue by the watcher thread for the mod's lifetime.
  • Line 132–155: external file read: up to 13 cursor files <darkFolder|lightFolder>\aero_*<sizeSuffix>.cur/.ani (defaults %SystemRoot%\Cursors\Aero-Dark and %SystemRoot%\Cursors), on start, on each theme change and on settings change.
  • Line 148: system settings change: SetSystemCursor replaces the session-wide system cursors (in memory only, nothing saved), on start, on each theme change and on settings change.
  • Line 164, 259, 289: system settings change: SystemParametersInfoW(SPI_SETCURSORS, 0, nullptr, 0) reloads the user's registry cursor scheme without writing anything (fWinIni = 0) — as the incomplete-light-set fallback, on a failed init, and on unload.
  • Line 438–451: other reach outside the process: CreateProcessInternalW starts windhawk.exe -tool-mod "cursor-theme-sync" from the launcher process (standard tool-mod boilerplate).


Next steps:

  • /ai-review - after pushing fixes, to get a review of the updated code. You can repeat this as many times as you need, but each review is thorough and usually there's no need for more than 2-3 iterations.
  • /ready-for-reviewer - once you're satisfied with the state of the pull request, to hand it over to a human reviewer. If some findings above are left unaddressed, add a short note explaining why.

See the review process for details.

Important: Each reply that was generated by AI must be disclosed by including the following text in the reply: "Generated by AI. Model: (ai-model-name)".

@windhawk-reviewer windhawk-reviewer Bot added waiting-for-author The author's turn: request an AI review, or respond to one that was posted. and removed waiting-for-ai-review An AI review was requested and is being prepared. labels Dec 5, 2026
@Anqarium

Anqarium commented Dec 5, 2026

Copy link
Copy Markdown
Author

/ai-review

@windhawk-reviewer windhawk-reviewer Bot added waiting-for-ai-review An AI review was requested and is being prepared. and removed waiting-for-author The author's turn: request an AI review, or respond to one that was posted. labels Dec 5, 2026
@windhawk-reviewer

Copy link
Copy Markdown

Submission review

Note: This review was done by Claude. Due to the amount of submissions, doing a fully manual review for each pull request is no longer feasible. Thank you for understanding.

Remember: The AI reviewer can be wrong - it may misread code, flag correct code as broken, or suggest changes that make things worse. Treat its findings as suggestions to verify, not instructions to follow blindly. You're responsible for the code you submit, so if a finding doesn't hold up, say so instead of changing working code to satisfy it.

Please address the following issues. The items in the collapsed sections are optional, so it's your call whether to address them.


Thanks for the update. The README now has install steps, the admin-rights note and the list of expected file names. The light side defaults to the user's own Mouse scheme, and there's a note about other cursor mods. The code is otherwise unchanged and still clean. One item remains:

The linked dark cursor set isn't reachable (README line 32). https://github.com/Anqarium/windows-aero-inverted-cursors returns 404, and it isn't among the public repos on your account. The repo is either private or not published yet. Users can't get the default dark set, so with the default settings, dark mode still changes nothing for anyone following the README. Please make the repo public before this is merged, or link to wherever the set is actually available.

Optional improvements

Minor polish — none of this affects users, so it's your call.

  • WindhawkUtils::StringSetting (lines 134–136): the raw Wh_GetStringSetting + Wh_FreeStringSetting pair can be replaced by the RAII wrapper:
    std::wstring value = WindhawkUtils::StringSetting::make(name).get();
  • README visual: the mod has a visible effect, so a screenshot or short GIF of the cursors in both themes would help users see what they get.

Functionality notes

Non-critical observations and ideas about the feature behavior itself.

  • Re-applying after Windows reloads the cursors (lines 264–269). The fixed delayMs guesses how long a theme switch takes to reset the cursors, so a slow machine can still lose that race. In dark mode, Windows also reloads the scheme when the user picks another scheme or changes the pointer size in Settings. The dark cursors then stay replaced until the next theme switch. mouse-cursor-themes handles this by listening for WM_SETTINGCHANGE with SPI_SETCURSORS on a hidden window and re-applying after a short timer. It ignores the broadcasts caused by its own SetSystemCursor calls (mouse-cursor-themes.wh.cpp#L1301-L1320). This needs a message loop on the worker thread, so it's a larger change. It's an option if users report the cursors flipping back.
  • Pin and Person can be applied too (lines 100–101). The comment says they have no system cursor id, but they are IDC_PIN (32671) and IDC_PERSON (32672) in winuser.h, and cursor-auto-hide passes both to SetSystemCursor (cursor-auto-hide.wh.cpp#L161-L163). Adding them would stop those two from staying light in dark mode. If you add them, don't let a missing pin/person file count as an incomplete light set. Otherwise the fallback at line 200 would always run for a folder without those files.
  • Cursor size (lines 169, 175). Each file is loaded at a single size, SM_CXCURSOR of the tool process. Light mode now uses the user's scheme, so a user with a large scheme or a larger pointer size (Settings > Accessibility > Mouse pointer) keeps big light cursors but gets normal-size dark ones, unless they find and set sizeSuffix. Please compare the result at more than 100% scaling and with a non-default pointer size against the same files applied as a scheme. The other cursor tool mods load the files with LoadCursorFromFileW (mouse-cursor-themes.wh.cpp#L1257).
  • Which theme value to follow: the mod follows AppsUseLightTheme (app mode). Cursors are system UI, so some users with a custom mode (dark Windows, light apps) may expect SystemUsesLightTheme. A setting to choose between the two would cover both.
  • Overlap: no existing mod switches cursors with the theme. mouse-cursor-themes applies mod-drawn themes via SetSystemCursor without light/dark switching, and auto-theme-switcher switches the Windows theme but doesn't touch cursors. The README now covers coexistence with the other cursor-replacing mods.

Code overview

For the maintainer: a map of the mod and what it touches outside its own process. Descriptive only — anything that needs a change is listed above. Line numbers refer to the mod source at commit 5169c58. This mod is new, so everything below is new.

Code regions

  • Line 1–11: metadata — tool mod (@include windhawk.exe), links advapi32, user32, shell32.
  • Line 13–63: README — behavior, installing the separate dark cursor set (an external repo by the same author, installed with an .inf as administrator), expected file names, light-mode default, other cursor mods.
  • Line 65–80: settings — darkFolder, lightFolder (empty = registry scheme), sizeSuffix, delayMs.
  • Line 82–87: includes.
  • Line 89–131: cursor role table (13 aero_* file names → OCR ids), the Personalize key path, settings struct, globals (mutex, settings, stop event, watcher thread handle).
  • Line 133–152: settings loading, with environment-variable expansion of the string settings.
  • Line 154–163: IsLightTheme — reads AppsUseLightTheme (missing value = light).
  • Line 165–208: ApplyFolder / ApplyCurrentTheme — dark: loads each role's file with LoadImageW and installs it with SetSystemCursor; light: reloads the registry scheme, or applies lightFolder if set (falling back to the registry scheme when incomplete).
  • Line 210–275: watcher thread — arms RegNotifyChangeKeyValue on the Personalize key, applies the initial theme, then on each change waits delayMs (interruptible by the stop event) and re-applies.
  • Line 279–302: WhTool_ModInit — reads settings, creates the stop event and the watcher thread.
  • Line 304–310: WhTool_ModSettingsChanged — re-reads settings and re-applies immediately.
  • Line 312–329: WhTool_ModUninit — signals and joins the watcher thread, then reloads the registry cursor scheme.
  • Line 331–508: tool-mod launcher boilerplate (verbatim copy of the wiki snippet).

Side effects of interest

  • Line 154–163, 225–275: registry read: HKCU\Software\Microsoft\Windows\CurrentVersion\Themes\Personalize\AppsUseLightTheme on every apply pass; the key is also opened with KEY_NOTIFY | KEY_QUERY_VALUE and watched with RegNotifyChangeKeyValue by the watcher thread for the mod's lifetime.
  • Line 168–191: external file read: up to 13 cursor files <darkFolder|lightFolder>\aero_*<sizeSuffix>.cur/.ani (default dark folder %SystemRoot%\Cursors\Aero-Dark; no light folder by default), on start, on each theme change and on settings change.
  • Line 184: system settings change: SetSystemCursor replaces the session-wide system cursors (in memory only, nothing saved), on start, on each theme change and on settings change.
  • Line 199, 203, 298, 328: system settings change: SystemParametersInfoW(SPI_SETCURSORS, 0, nullptr, 0) reloads the user's registry cursor scheme without writing anything (fWinIni = 0) — in light mode (default or incomplete light folder), on a failed init, and on unload.
  • Line 461–490: other reach outside the process: CreateProcessInternalW starts windhawk.exe -tool-mod "cursor-theme-sync" from the launcher process (standard tool-mod boilerplate).


Next steps:

  • /ai-review - after pushing fixes, to get a review of the updated code. You can repeat this as many times as you need, but each review is thorough and usually there's no need for more than 2-3 iterations.
  • /ready-for-reviewer - once you're satisfied with the state of the pull request, to hand it over to a human reviewer. If some findings above are left unaddressed, add a short note explaining why.

See the review process for details.

Important: Each reply that was generated by AI must be disclosed by including the following text in the reply: "Generated by AI. Model: (ai-model-name)".

@windhawk-reviewer windhawk-reviewer Bot added waiting-for-author The author's turn: request an AI review, or respond to one that was posted. and removed waiting-for-ai-review An AI review was requested and is being prepared. labels Dec 5, 2026
@Anqarium

Anqarium commented Dec 5, 2026

Copy link
Copy Markdown
Author

/ai-review

@windhawk-reviewer windhawk-reviewer Bot added waiting-for-ai-review An AI review was requested and is being prepared. and removed waiting-for-author The author's turn: request an AI review, or respond to one that was posted. labels Dec 5, 2026
@windhawk-reviewer

Copy link
Copy Markdown

Submission review

Note: This review was done by Claude. Due to the amount of submissions, doing a fully manual review for each pull request is no longer feasible. Thank you for understanding.

Remember: The AI reviewer can be wrong - it may misread code, flag correct code as broken, or suggest changes that make things worse. Treat its findings as suggestions to verify, not instructions to follow blindly. You're responsible for the code you submit, so if a finding doesn't hold up, say so instead of changing working code to satisfy it.

Please address the following issues. The items in the collapsed sections are optional, so it's your call whether to address them.


No blocking issues — looks good to merge. Switching dark mode to the built-in "Windows Black" scheme removes the dependency on the unpublished cursor set, so the mod now works out of the box. The role table (lines 78–93) matches the scheme's own definition: wait_* is "Working in background", busy_* is "Busy", and size4/size3/size2/size1 are vertical, horizontal, NWSE and NESW. The _r / _rm / _rl suffixes match "Windows Black", "(large)" and "(extra large)". The rest is unchanged: a clean tool mod with no hooks, no writes, and the watcher thread joined on unload.

Optional improvements

Minor polish — none of this affects users, so it's your call.

  • WindhawkUtils::StringSetting (lines 110–118): the raw Wh_GetStringSetting + Wh_FreeStringSetting pair can be replaced by the RAII wrapper:
    auto size = WindhawkUtils::StringSetting::make(L"darkSize");
    if (wcscmp(size, L"large") == 0) {
    ...
  • README visual: the mod has a visible effect, so a screenshot or short GIF of the cursors in both themes would help users see what they get.

Functionality notes

Non-critical observations and ideas about the feature behavior itself.

  • The large sizes may come out at the normal size (lines 144–148). Every file is loaded with cx = cy = SM_CXCURSOR (32 at 100% scaling). When the size is given explicitly, LoadImageW stretches the image to that size. If *_rm.cur / *_rl.cur hold larger images, "Windows Black (large)" and "(extra large)" get scaled down to the normal size, and the darkSize option has no visible effect. Please compare each option with the same scheme picked in Mouse settings. If they differ, pass 0, 0 (without LR_DEFAULTSIZE) so each file keeps its own size, then check the result again at more than 100% scaling. Related: a user with a large light scheme, or a larger pointer size in Settings > Accessibility > Mouse pointer, has to set darkSize by hand to match.
  • Re-applying after Windows reloads the cursors (lines 228–233). The fixed delayMs guesses how long a theme switch takes to reset the cursors, so a slow machine can still lose that race. In dark mode, Windows also reloads the scheme when the user picks another scheme or changes the pointer size in Settings. The dark cursors then stay replaced until the next theme switch. mouse-cursor-themes handles this by listening for WM_SETTINGCHANGE with SPI_SETCURSORS on a hidden window and re-applying after a short timer. It ignores the broadcasts caused by its own SetSystemCursor calls (mouse-cursor-themes.wh.cpp#L1301-L1320). This needs a message loop on the worker thread, so it's a larger change. It's an option if users report the cursors flipping back.
  • Which theme value to follow: the mod follows AppsUseLightTheme (app mode). Cursors are system UI, so some users with a custom mode (dark Windows, light apps) may expect SystemUsesLightTheme. A setting to choose between the two would cover both.
  • Overlap: no existing mod switches cursors with the theme. mouse-cursor-themes applies mod-drawn themes via SetSystemCursor without light/dark switching, and auto-theme-switcher switches the Windows theme but doesn't touch cursors. The README covers coexistence with the other cursor-replacing mods.

Code overview

For the maintainer: a map of the mod and what it touches outside its own process. Descriptive only — anything that needs a change is listed above. Line numbers refer to the mod source at commit bf20400. This mod is new, so everything below is new.

Code regions

  • Line 1–11: metadata — tool mod (@include windhawk.exe), links advapi32, user32, shell32.
  • Line 13–42: README — dark mode uses the built-in Windows Black scheme, light mode the user's Mouse scheme; notes on the missing hand/pin/person cursors and on other cursor mods.
  • Line 44–57: settings — darkSize ($options: normal / large / extralarge), delayMs.
  • Line 59–64: includes.
  • Line 66–106: role table (14 Windows Black file base names → OCR ids, in the scheme's order), the Personalize key path, settings struct, globals (mutex, settings, stop event, watcher thread handle).
  • Line 108–121: ReadSettings — maps darkSize to the _r / _rm / _rl file suffix, reads delayMs.
  • Line 123–132: IsLightTheme — reads AppsUseLightTheme (missing value = light).
  • Line 134–172: ApplyDarkSet / ApplyCurrentTheme — dark: loads each Windows Black file with LoadImageW and installs it with SetSystemCursor; light: reloads the registry scheme.
  • Line 174–239: watcher thread — arms RegNotifyChangeKeyValue on the Personalize key, applies the initial theme, then on each change waits delayMs (interruptible by the stop event) and re-applies.
  • Line 243–266: WhTool_ModInit — reads settings, creates the stop event and the watcher thread.
  • Line 268–274: WhTool_ModSettingsChanged — re-reads settings and re-applies immediately.
  • Line 276–293: WhTool_ModUninit — signals and joins the watcher thread, then reloads the registry cursor scheme.
  • Line 295–472: tool-mod launcher boilerplate (verbatim copy of the wiki snippet).

Side effects of interest

  • Line 123–132, 189–239: registry read: HKCU\Software\Microsoft\Windows\CurrentVersion\Themes\Personalize\AppsUseLightTheme on every apply pass; the key is also opened with KEY_NOTIFY | KEY_QUERY_VALUE and watched with RegNotifyChangeKeyValue by the watcher thread for the mod's lifetime.
  • Line 136–161: external file read: 14 Windows Black cursor files %windir%\Cursors\{arrow,help,wait,busy,cross,beam,pen,no,size1–4,move,up}{_r|_rm|_rl}.cur, in dark mode on start, on each theme change and on settings change.
  • Line 156: system settings change: SetSystemCursor replaces the session-wide system cursors (in memory only, nothing saved), in dark mode on start, on each theme change and on settings change.
  • Line 168, 262, 292: system settings change: SystemParametersInfoW(SPI_SETCURSORS, 0, nullptr, 0) reloads the user's registry cursor scheme without writing anything (fWinIni = 0) — in light mode, on a failed init, and on unload.
  • Line 425–454: other reach outside the process: CreateProcessInternalW starts windhawk.exe -tool-mod "cursor-theme-sync" from the launcher process (standard tool-mod boilerplate).


Next steps:

  • /ai-review - after pushing fixes, to get a review of the updated code. You can repeat this as many times as you need, but each review is thorough and usually there's no need for more than 2-3 iterations.
  • /ready-for-reviewer - once you're satisfied with the state of the pull request, to hand it over to a human reviewer. If some findings above are left unaddressed, add a short note explaining why.

See the review process for details.

Important: Each reply that was generated by AI must be disclosed by including the following text in the reply: "Generated by AI. Model: (ai-model-name)".

@windhawk-reviewer windhawk-reviewer Bot added waiting-for-author The author's turn: request an AI review, or respond to one that was posted. and removed waiting-for-ai-review An AI review was requested and is being prepared. labels Dec 5, 2026
@Anqarium

Anqarium commented Dec 5, 2026

Copy link
Copy Markdown
Author

/ready-for-reviewer

Open items left as-is: the 0, 0 size suggestion (it loads the 128 px image of each file; I checked that requesting 32 px already gives three visibly different sizes for _r, _rm and _rl), the WM_SETTINGCHANGE re-apply and the SystemUsesLightTheme option.

Generated by AI. Model: claude-opus-5-5

@windhawk-reviewer windhawk-reviewer Bot added waiting-for-reviewer Ready for a human reviewer, and in the queue for one. and removed waiting-for-author The author's turn: request an AI review, or respond to one that was posted. labels Dec 5, 2026

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

waiting-for-reviewer Ready for a human reviewer, and in the queue for one.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant