Titlebars! And another window decoration style!

Maybe desktop menus next? Or Notifications? Or maybe some sort of bar?

#riverwm #wayland

@lhp a slight gradient on the titlebar? 🤔
@marceloexc Hmm... would be possible (as long as it's a gradient along the y axis; the way I optimized window decorations forbids any changes alongside the x axis for now).
@marceloexc basically anything that can be implemented as four corner textures (which may overlap the window) plus for border textures (which will be stretched along the edges of the window) would work. The titlebar is baked in to the decoration texture. The titlebar text drawing code understands a titlebar-content-height and titlebar-content-y-offset, so it can support basically all titlebar styles were the text is centered in the middle. Even ones overlapping the window itself.
×

Titlebars! And another window decoration style!

Maybe desktop menus next? Or Notifications? Or maybe some sort of bar?

#riverwm #wayland

@lhp a slight gradient on the titlebar? 🤔
@marceloexc Hmm... would be possible (as long as it's a gradient along the y axis; the way I optimized window decorations forbids any changes alongside the x axis for now).
@marceloexc basically anything that can be implemented as four corner textures (which may overlap the window) plus for border textures (which will be stretched along the edges of the window) would work. The titlebar is baked in to the decoration texture. The titlebar text drawing code understands a titlebar-content-height and titlebar-content-y-offset, so it can support basically all titlebar styles were the text is centered in the middle. Even ones overlapping the window itself.
@lhp status bar with right click toggle activation for workspaces/tags/layers.

@mmakaba I have actually set myself the challenge to write a useful WM I can productively work with without workspaces or tiling. Not sure if that's achievable yet, but we'll see. A window menu might be useful though...

And the window management is in scheme of course, so a user can always hack that in easily themselves. I'll probably collect a few useful snippets somewhere eventually...

@lhp the titlebars in the first screenshot look really comfy ☺️