Skip to content

fix(linux): the window frame follows the app's color scheme - #1293

Closed
zce wants to merge 1 commit into
anomalyco:devfrom
zce:linux-frame-scheme
Closed

zce wants to merge 1 commit into
anomalyco:devfrom
zce:linux-frame-scheme

Conversation

@zce

@zce zce commented Nov 26, 2026

Copy link
Copy Markdown

Summary

The native window frame follows the appearance scheme the app paints in, instead of Rune's default System.

 window created
-  Rune color scheme: System (the CSD frame follows the desktop)
+  Rune color scheme: the saved scheme, or --scheme (Dark / Light / System)
 window's scheme changed in Settings › Appearance
-  palette only
+  palette and Rune's window/CSD color scheme

On Linux the frame is sctk-adwaita's client-side frame: a saved Dark or Light scheme now gets the matching frame from the first frame, and switching the scheme in Settings updates content and frame together. System is still handed to Rune as System; on Linux, Rune resolves it from the desktop's own answer (the companion change: zce/rune@7824acd, based on rune dev 4918969; the repository limits PR creation to collaborators, so it is proposed in rune#2360).

Evidence

  • Before: Fedora 45, GNOME Shell 51.1, mutter 51.1, Wayland, dark style; a saved System app has a dark palette but the frame border is the light map's #dcdcdc.
    After: the downstream test RPM 0.0.9-shadow4 built with this app change and the Rune companion: the frame is the dark map's #3a3a3a from the first frame; switching GNOME light/dark moves both together, and switching the app's scheme Dark/Light/System updates the frame immediately.
  • The same change compiled in that build. This repository has no automated tests; the frame was checked on the real GNOME desktop above.

Merge Danger

Door: two-way

Blast Radius: window chrome. The palette path is unchanged; ColorScheme::System keeps Rune's existing behavior. Explicit Dark/Light now also theme the native frame, which is the intent. macOS and Windows use the same Tx::set_color_scheme path Rune already documents.

A window's CSD frame was created on Rune's default System, so a saved Dark or Light scheme had a system frame around it. Pass the saved scheme (or --scheme) at creation, and hand Rune the new one when Settings changes it, so the frame and the palette move together. System stays the desktop's own answer.
@zce

zce commented Nov 26, 2026

Copy link
Copy Markdown
Author

The Rune companion is zce/rune:linux-system-csd-theme at 7824acd (one commit on dev 4918969). The Rune repository only lets collaborators open PRs, so I posted the details and the test run under rune#2360: anomalyco/rune#2360 (comment)

@zce

zce commented Nov 26, 2026

Copy link
Copy Markdown
Author

Closing the upstream proposal while this stays personal-only. The same app-side change is in the personal fork branch zce/opencode-rune:fedora/personal-linux; the PR branch linux-frame-scheme remains if this becomes useful upstream later.

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