Skip to content

[Windows 11] "Sync with OS" theme option results in inverted themes when toggling with PowerToys #11993

@chenx-dust

Description

@chenx-dust

Pre-submit Checks

Describe the bug

When using the "Sync with OS" theme setting on Windows 11, dynamically switching between light and dark themes using Microsoft PowerToys causes an inverted theme configuration (i.e., the app switches to the dark theme when the OS is in light mode, and vice versa).

Investigation

This issue stems from how the underlying winit library reads the system theme. Reading the theme via uxtheme.dll introduces a delay/race condition during rapid or automated toggles, which leads to out-of-sync states. The system theme should instead be read directly from the Windows Registry to ensure immediate and accurate updates.

Pull requests

I have submitted a fix to the Warp-scoped winit fork, and a similar upstream fix is also under discussion:

To reproduce

  1. Open Warp.
  2. Use "Light Switch" in PowerToys to toggle OS theme.

Expected behavior

Theme of the application should sync with OS.

Screenshots, videos, and logs

20260601-1240-28.8991285.mp4

Operating system (OS)

Windows

Operating system and version

Windows 11 25H2 (Build 26200.8524, Simplified Chinese)

Shell Version

No response

Current Warp version

v0.2026.05.27.15.44.stable_01

Regression

No, this bug or issue has existed throughout my experience using Warp

Recent working Warp date

No response

Additional context

No response

Does this block you from using Warp daily?

No

Is this an issue only in Warp?

Yes, I confirmed that this only happens in Warp, not other terminals.

Warp Internal (ignore): linear-label:b9d78064-c89e-4973-b153-5178a31ee54e

None

Metadata

Metadata

Assignees

No one assigned

    Labels

    area:ui-frameworkCore Warp UI framework, rendering, layout, and windowing infrastructure.bugSomething isn't working.os:windowsWindows-specific behavior, regressions, or requests.repro:highThe report includes enough evidence that the issue appears highly reproducible.triagedIssue has received an initial automated triage pass.warp:auto-triage-review

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions