From 7988df09f0caba5591fb0c5cdbb3d3ed398000e7 Mon Sep 17 00:00:00 2001 From: Nexoniarz Date: Sat, 3 Oct 2026 22:21:04 +0200 Subject: [PATCH] Window: a slimmer titlebar Tall enough for the window controls and a title, not a toolbar's height. --- dist/niveus.css | 6 ++++-- niveus/components/window.css | 6 ++++-- 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/dist/niveus.css b/dist/niveus.css index 67c88e3..a1b69b0 100644 --- a/dist/niveus.css +++ b/dist/niveus.css @@ -3962,8 +3962,10 @@ grid-template-columns: 1fr auto 1fr; align-items: center; gap: var(--nv-space-3); - min-block-size: var(--nv-control-height-lg); - padding-inline: var(--nv-space-4); + /* Slim, as titlebars on the desktop are: tall enough for the lights and + a label, not a toolbar's height. */ + min-block-size: calc(var(--nv-control-height-sm) + var(--nv-space-1)); + padding-inline: var(--nv-space-3); background-color: var(--nv-color-surface-elevated); background-image: var(--nv-sheen-raised); diff --git a/niveus/components/window.css b/niveus/components/window.css index 847df87..793cb62 100644 --- a/niveus/components/window.css +++ b/niveus/components/window.css @@ -59,8 +59,10 @@ grid-template-columns: 1fr auto 1fr; align-items: center; gap: var(--nv-space-3); - min-block-size: var(--nv-control-height-lg); - padding-inline: var(--nv-space-4); + /* Slim, as titlebars on the desktop are: tall enough for the lights and + a label, not a toolbar's height. */ + min-block-size: calc(var(--nv-control-height-sm) + var(--nv-space-1)); + padding-inline: var(--nv-space-3); background-color: var(--nv-color-surface-elevated); background-image: var(--nv-sheen-raised);