Skip to content

fix(linux): follow the desktop portal color scheme - #21

Open
ooonea wants to merge 2 commits into
jonx:mainfrom
ooonea:linux-system-theme
Open

ooonea wants to merge 2 commits into
jonx:mainfrom
ooonea:linux-system-theme

Conversation

@ooonea

@ooonea ooonea commented Nov 1, 2026 •

Copy link
Copy Markdown

System theme falls back to light when GSettings schemas are unavailable, even when the desktop portal reports dark. Use GPUI’s cached appearance and observe native appearance changes while System is selected.

Synchronize the palette when each window opens so an early portal reply cannot leave the initial theme stale. Avoid reapplying an unchanged theme.

Verified in an isolated Linux session with a deliberately stale initial palette: System adopts the window's dark appearance, explicit Light stays light, and opening another window preserves the UI scale.

System dark in Settings

ooonea and others added 2 commits November 1, 2026 13:58
Use GPUI’s cached portal appearance instead of spawning gsettings. Follow native appearance changes for open windows while preserving explicit light/dark selections and startup overrides.

Assisted-by: OpenAI Codex
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.

1 participant