voxelcore/res
alexei-zebra c269d6efb3
Give the Wayland window an Adwaita-like frame
The engine-drawn title bar grew to 48 px with 24x24 window controls,
12 px away from the edge and from each other, all sharing one hover
highlight. The controls use textures now (gui/cross, gui/minimize_w,
gui/maximize_w and gui/restore_w when maximized) with the vector icons
kept as a fallback, and the title is centred in the bar, clamped to the
free space between the button groups.

The bar now sits inside invisible margins that carry a drop shadow, so
the window is resizable from outside the visible frame: the surface is
content plus twice SHADOW_MARGIN and xdg_surface.set_window_geometry
tells the compositor which part is the window. The shadow follows
Adwaita's window shadow: a Gaussian blur of 7 px (sigma 3.5) expanded by
1 px, rgba(0,0,0,0.5) focused and 0.3 in the backdrop, plus a 1 px
hairline, symmetric on all four sides - a 16 px wide frame would show a
fatter tail than the reference. Margins exist only while the window is
decorated by us and not maximized or fullscreen.

The engine composes the frame itself: it renders exactly as before, then
the backend copies the frame into a texture, clears the surface, draws
the shadow and puts the content in place with alpha forced to 1, which
keeps the frame opaque without touching a single render pass. Only
frames the engine actually drew are cached, and the EGL window is
resized before its surface size is asked for, so no frame is composed
from a buffer the compositor just replaced - that was the one frame
blink after a resize.

Resize cursors match GNOME: directional shapes for edges and corners
(w/e/n/s/ne/nw/se/sw) instead of the double-headed diagonals, with the
extra CursorShape values appended so the existing GLFW indices stay.

Measured: window 1123x751 opens as saved, fullscreen round trip returns
the same size with the settings untouched, the shadow alpha profile is
0.20/0.10/0.03 at 1/4/7 px from the edge against Adwaita's 0.21/0.095/
0.055, all four sides equal, menu layout baseline unchanged (706),
no errors in the log.
2026-10-10 12:23:41 +03:00
..
config remove res/config/builtins.list 2025-04-22 21:46:51 +03:00
content/base move hud away from utils 2 & add new argument 2026-08-17 23:47:51 +05:00
devtools update vca.toml 2026-09-06 01:38:19 +03:00
fonts removed unused file 2024-02-28 16:39:41 +03:00
generators convert generator parameters naming to the project style 2024-10-14 04:45:11 +03:00
layouts add 'Fog' settings to ui 2026-09-26 19:18:29 +03:00
models Merge branch 'main' into animation 2026-08-18 23:37:27 +03:00
modules fix vca 'configure' directive parsing 2026-10-05 22:11:21 +03:00
presets add 'sky_tint', 'clouds_tint', 'min_sky_light' weather parameters 2026-02-12 20:27:29 +03:00
scripts fix reload_module ignoring pack environment 2026-10-10 00:52:23 +03:00
shaders revert "update shadows.glsl" 2026-10-03 11:10:56 +03:00
texts update en_US.txt, ru_RU.txt 2026-09-26 19:21:00 +03:00
textures Give the Wayland window an Adwaita-like frame 2026-10-10 12:23:41 +03:00
preload.json update preload.json 2026-04-11 12:16:16 +03:00
project.toml add sub-instance project permission & feat: max sub-process depth check 2026-08-02 01:19:01 +03:00
project_client.lua temporary fix improvement 2025-12-02 22:59:56 +03:00
resources.json change 'graphics.ssao' from flag to number 2025-12-19 18:55:55 +03:00