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

+3 -17
View File
@@ -772,23 +772,9 @@ pub fn render_scene(scene : @scene.SceneGraph) -> Pixmap {
// 2. Windows layer (bottom-to-top)
for win in scene.windows {
if !win.fullscreen {
let (top, right, bottom, left) = win.deco_insets
let outer_x = win.geometry.x - left
let outer_y = win.geometry.y - top
let outer_w = win.geometry.w + left + right
let outer_h = win.geometry.h + top + bottom
// Subtle drop shadow. The window covers most of it, so only the strips that stick out
// (right and bottom) are blended instead of the whole shadow rectangle.
let shadow = @scene.Rect::new(outer_x + 4, outer_y + 6, outer_w, outer_h)
let shadow_col = @scene.Rgba::new(0, 0, 0, 80)
fill_rounded_rect(pixmap, shadow, shadow_col, 8, Some(@scene.Rect::new(outer_x + outer_w, outer_y, 4, outer_h + 6)))
fill_rounded_rect(pixmap, shadow, shadow_col, 8, Some(@scene.Rect::new(outer_x, outer_y + outer_h, outer_w + 4, 6)))
// The title bar is slightly translucent when unfocused, so keep the shadow under it.
fill_rounded_rect(pixmap, shadow, shadow_col, 8, Some(@scene.Rect::new(outer_x, outer_y, outer_w, top + 2)))
// Breeze SSD decoration draw-ops
draw_ops(pixmap, win.deco_ops, outer_x, outer_y)
let (top, _, _, left) = win.deco_insets
// The frame: title bar, outline, buttons and its shadow (`@scene.build_window_decoration`).
draw_ops(pixmap, win.deco_ops, win.geometry.x - left, win.geometry.y - top)
}
// Client wl_shm surface