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
@@ -14,7 +14,7 @@ Traditional Wayland compositors (KWin, Sway, Mutter) bundle device management, W
|
||||
| Layer | Responsibility | Implementation | Trust Level |
|
||||
| :--- | :--- | :--- | :--- |
|
||||
| **Host (Mechanism)** | Event loop, Wayland binary wire protocol server (`wl_display`, `wl_registry`, `wl_compositor`, `wl_shm`, `xdg_wm_base`, `zxdg_decoration_manager_v1`, `wl_seat`, `wl_output`), SHM memory mapping, retained scene graph & damage tracker, ARGB8888 software rasterizer & PNG encoder, minimal POSIX C FFI (`compositor/sys/sys_stub.c`) | **MoonBit** (`compositor/` compiled with `--target native`) | Trusted Computing Base (TCB) |
|
||||
| **Policy & Components** | Window placement, BSP tiling/floating/monocle layouts, focus policy, hit-testing/input routing, Breeze SSD decorations, panel layout, desktop background, widgets | **MoonBit** (`lib/wm/`, `lib/*`, and Wasm components `components/*` via `wit-bindgen moonbit`) | Modular policy packages & sandboxed Wasm components |
|
||||
| **Policy & Components** | Window placement, BSP tiling/floating/monocle layouts, focus policy, hit-testing/input routing, server-side window frames (docs/window-frames.md), panel layout, desktop background, widgets | **MoonBit** (`lib/wm/`, `lib/*`, and Wasm components `components/*` via `wit-bindgen moonbit`) | Modular policy packages & sandboxed Wasm components |
|
||||
|
||||
```mermaid
|
||||
flowchart TB
|
||||
@@ -201,7 +201,7 @@ compositor/
|
||||
│ ├── wire.mbt # WireWriter / WireReader (u32, i32, str, array, msg framing)
|
||||
│ └── server.mbt # WaylandServer, wl_shm, xdg_wm_base, zxdg_decoration_manager_v1
|
||||
├── scene/ # Pure MoonBit retained scene graph & damage tracker
|
||||
│ └── scene.mbt # ThemeTokens, SceneGraph, DamageTracker, Breeze SSD & shell ops
|
||||
│ └── scene.mbt # ThemeTokens, SceneGraph, DamageTracker, window frames (WindowStyle) & shell ops
|
||||
├── renderer/ # Pure MoonBit software rasterizer & encoders
|
||||
│ ├── renderer.mbt # Pixmap, SrcOver blending, rounded rects, 5x7 font, shm blit, PNG/PPM
|
||||
│ └── renderer_test.mbt # Unit tests (wasm + native)
|
||||
|
||||
Reference in new issue
Block a user