Window frames in the style of V's Flatkit Aurorae theme, the classic frame as a setting
CI / test (push) Canceled after 52s
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:
20 files changed
+1005
-142
No files matched your search
@@ -100,7 +100,7 @@ test "a GTK window draws its own frame: no second title bar, and its shadow is n
|
||||
assert_eq((win.geo_x, win.geo_y), (gtk_shadow, gtk_shadow))
|
||||
// The client is asked to fill the frame's whole box: where Chandra's title bar would be is its own.
|
||||
let r = win.client_rect()
|
||||
assert_eq((r.w, r.h), (win.geometry.w + 4, win.geometry.h + 34))
|
||||
assert_eq((r.w, r.h), (win.geometry.w + 2, win.geometry.h + 39))
|
||||
let (w, h) = gtk_frame(comp, c, shm, surf, xdg, tl)
|
||||
assert_eq((w, h), (r.w, r.h))
|
||||
let red = Some(@scene.Rgba::new(0xff, 0, 0, 0xff))
|
||||
@@ -204,7 +204,7 @@ test "Chrome asking to draw its own frame gets it, instead of a second one aroun
|
||||
let win = comp.windows.get(1UL).unwrap()
|
||||
assert_true(win.csd)
|
||||
let r = win.client_rect()
|
||||
assert_eq((r.w, r.h), (win.geometry.w + 4, win.geometry.h + 34))
|
||||
assert_eq((r.w, r.h), (win.geometry.w + 2, win.geometry.h + 39))
|
||||
|
||||
// unset_mode: back to Chandra's frame.
|
||||
c.send(@wayland.WireWriter::new().finish_msg(deco, 2U))
|
||||
|
||||
Reference in new issue
Block a user