Window frames in the style of V's Flatkit Aurorae theme, the classic frame as a setting
CI / test (push) Canceled after 52s

The default frame now follows codegod100/kde aurorae (Flatkit / Flatkit Dark): the kit's
neutral title bar, a 1px outline with 10px top corners, a hairline under the title, a soft
16px shadow all round, a centred title and 24px flat buttons with hover and pressed fills
(close turns red). 38px title bar, 1px border. Maximized: no shadow, square corners.

- scene: WindowStyle (frame sizes, button layout, hit test) and build_window_decoration;
  the shadow is part of the decoration ops, so the three rasterisers lost their own offset
  shadow and redraw 18px around a changed window.
- host: the frame size follows the style (work area, wm title-bar room, CSD client boxes,
  hit zones, screenshots); title-bar buttons track hover, show pressed, act on release.
- Settings > Session > Flat window frames (off: the old Breeze-like frame), saved as
  :window-style :breeze; an unknown value is logged.
- docs/window-frames.md; tests for both styles' pixels, button states and switching.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01DPL5hmKDDLLES2aBrrnPxT
This commit is contained in:
Claude committed 2026-11-26 04:09:38 +00:00
1 parent 2c2ce3f913
commit 14acc5d42e
20 files changed
+1005 -142

No files matched your search

+10 -2
View File
@@ -760,7 +760,7 @@ pub fn DesktopShell::set_wallpaper(self : DesktopShell, i : Int) -> Unit {
///| The session settings the session settings module lists, in index order.
let session_setting_names : Array[String] = [
"Reopen windows at login", "Remember window positions", "Dark mode", "Chandra password dialog",
render_setting_name,
render_setting_name, "Flat window frames",
]
///| The rendering switch (its label is made by `render_setting_label`).
@@ -777,7 +777,8 @@ fn DesktopShell::session_settings_bits(self : DesktopShell) -> Int {
(if self.remember_windows { 2 } else { 0 }) |
(if self.dark_mode { 4 } else { 0 }) |
(if self.native_auth_agent { 8 } else { 0 }) |
(if self.software_render() { 16 } else { 0 })
(if self.software_render() { 16 } else { 0 }) |
(if self.window_style == @scene.WindowStyle::Flat { 32 } else { 0 })
}
///| Turn session setting `i` on or off (ignored when out of range) and remember it in state.edn.
@@ -796,6 +797,13 @@ pub fn DesktopShell::set_session_setting(self : DesktopShell, i : Int, on : Bool
self.actions.push(AuthAgentChanged)
}
4 => self.choose_software_render(on)
5 => {
let style = if on { @scene.WindowStyle::Flat } else { @scene.WindowStyle::Breeze }
if self.window_style != style {
self.window_style = style
self.actions.push(WindowStyleChanged)
}
}
_ => return
}
@wasm.publish_session_settings(self.session_settings_bits())