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
@@ -155,6 +155,8 @@ pub(all) enum ShellAction {
|
||||
Logout
|
||||
/// The Dark mode setting changed: the compositor swaps the theme (see `dark_mode`).
|
||||
ThemeChanged
|
||||
/// The Flat window frames setting changed: the compositor redraws frames in the new style.
|
||||
WindowStyleChanged
|
||||
/// The password dialog setting changed: the compositor registers its polkit agent or leaves.
|
||||
AuthAgentChanged
|
||||
/// The screenshot module asked for a screenshot or recording (code: see the compositor's
|
||||
@@ -294,6 +296,9 @@ pub(all) struct DesktopShell {
|
||||
mut render_choice : RenderMode?
|
||||
/// Dark mode (the configured theme) or light (Moon Day); saved as `:theme :light` when off.
|
||||
mut dark_mode : Bool
|
||||
/// How window frames look (Flat window frames on: Flatkit's; off: the classic Breeze-like
|
||||
/// one); saved as `:window-style :breeze` when off. The compositor follows it.
|
||||
mut window_style : @scene.WindowStyle
|
||||
/// Power: minutes without input before the login session turns the screen off / suspends
|
||||
/// (0: never). Saved in state.edn as :power {:screen-off 10 :suspend 0} when not the defaults.
|
||||
mut screen_off_min : Int
|
||||
@@ -466,6 +471,7 @@ pub fn DesktopShell::new(display : String) -> DesktopShell {
|
||||
render_forced: false,
|
||||
render_choice: None,
|
||||
dark_mode: true,
|
||||
window_style: @scene.WindowStyle::Flat,
|
||||
screen_off_min: default_screen_off_min,
|
||||
suspend_min: default_suspend_min,
|
||||
shortcuts: Shortcuts::defaults(),
|
||||
|
||||
Reference in new issue
Block a user