From 72e0fa8edc6e696b325f617a70e87822d4425649 Mon Sep 17 00:00:00 2001 From: The_miro Date: Wed, 29 Jul 2026 18:41:56 +0200 Subject: [PATCH] fix(hyprdrive,hyprlua): keep the last tab clear of the floating close button MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit .sb-tabbar now reserves 64px on the right, the same way .sb-header already does for the title: the ✕ is a Gtk.Overlay child, so it claims no layout space and the tab row grew straight under it once the row got wide enough (the "General Settings" pill was overlapping the button's circle). Also documents, next to `config vicinae` in hyprdrive's updater.conf, that the cosmonaut.toml this deploys to ~/.config/vicinae/ is inert — vicinae only reads named themes from ~/.local/share/vicinae/themes/, and silently falls back to its default grey theme when the file isn't there. That is exactly what happened on this machine: the theme was added after hyprdrive.sh last ran, so the launcher had been rendering the stock grey palette. Co-Authored-By: Claude Opus 5 --- desktopenvs/hyprdrive/config-updater/updater.conf | 13 ++++++++++++- .../hyprdrive/supersonic-booster/style/style.css | 4 ++++ desktopenvs/hyprlua/audio-panel-theme/style.css | 5 ++++- desktopenvs/hyprlua/audio-panel/style/style.css | 5 ++++- 4 files changed, 24 insertions(+), 3 deletions(-) diff --git a/desktopenvs/hyprdrive/config-updater/updater.conf b/desktopenvs/hyprdrive/config-updater/updater.conf index 34b5b10..bb821b1 100644 --- a/desktopenvs/hyprdrive/config-updater/updater.conf +++ b/desktopenvs/hyprdrive/config-updater/updater.conf @@ -25,7 +25,18 @@ config scripts config station-bar config supersonic-booster config transmitter-panel -config vicinae +config vicinae # NOTE: settings.json is live from here, but cosmonaut.toml is NOT — + # vicinae only reads named themes from ~/.local/share/vicinae/themes/, + # so the copy this deploys to ~/.config/vicinae/ is inert and the real + # one is installed once by setup/modules/Desktop-Environments/ + # hyprdrive.sh (apply-theme.sh then re-colours it in place). After + # editing cosmonaut.toml here, re-run that copy or the launcher keeps + # the old palette — and if the theme file is missing entirely, vicinae + # silently falls back to its default grey dark theme: + # cp -f ~/Dotfiles/desktopenvs/hyprdrive/vicinae/cosmonaut.toml \ + # ~/.local/share/vicinae/themes/cosmonaut.toml + # vicinae server # restart: a newly added theme file is only + # # registered at server startup config xfce4 # ── intentionally not managed here ─────────────────────────────────────────── diff --git a/desktopenvs/hyprdrive/supersonic-booster/style/style.css b/desktopenvs/hyprdrive/supersonic-booster/style/style.css index fc17ba8..a46b130 100644 --- a/desktopenvs/hyprdrive/supersonic-booster/style/style.css +++ b/desktopenvs/hyprdrive/supersonic-booster/style/style.css @@ -46,6 +46,10 @@ drawingarea { /* ---- tab switcher ------------------------------------------------------- */ .sb-tabbar { margin-bottom: 4px; + /* keep the last tab clear of the floating ✕, which is an overlay child and + * so claims no layout space of its own — same reservation .sb-header makes + * for the title (34px button + 20px margin + a little breathing room) */ + margin-right: 64px; } .sb-tab { color: @text; diff --git a/desktopenvs/hyprlua/audio-panel-theme/style.css b/desktopenvs/hyprlua/audio-panel-theme/style.css index aaf8cfa..36005c9 100644 --- a/desktopenvs/hyprlua/audio-panel-theme/style.css +++ b/desktopenvs/hyprlua/audio-panel-theme/style.css @@ -44,7 +44,10 @@ drawingarea { } /* ---- tab switcher --------------------------------------------------------- */ -.sb-tabbar { margin-bottom: 4px; } +/* margin-right keeps the last tab clear of the floating ✕, which is an overlay + * child and so claims no layout space of its own — same reservation .sb-header + * makes for the title (34px button + 20px margin + breathing room) */ +.sb-tabbar { margin-bottom: 4px; margin-right: 64px; } .sb-tab { color: @text; background-color: @violet; diff --git a/desktopenvs/hyprlua/audio-panel/style/style.css b/desktopenvs/hyprlua/audio-panel/style/style.css index 3bbe252..f353bf5 100644 --- a/desktopenvs/hyprlua/audio-panel/style/style.css +++ b/desktopenvs/hyprlua/audio-panel/style/style.css @@ -44,7 +44,10 @@ drawingarea { } /* ---- tab switcher --------------------------------------------------------- */ -.sb-tabbar { margin-bottom: 4px; } +/* margin-right keeps the last tab clear of the floating ✕, which is an overlay + * child and so claims no layout space of its own — same reservation .sb-header + * makes for the title (34px button + 20px margin + breathing room) */ +.sb-tabbar { margin-bottom: 4px; margin-right: 64px; } .sb-tab { color: @text; background-color: @violet;