From b43fe77d3c6e3219d24aaeb66bcbabee4ca55154 Mon Sep 17 00:00:00 2001 From: m1tya Date: Sun, 15 Feb 2026 16:05:43 +0100 Subject: [PATCH 1/4] feat: improve UI animations and tab behavior - Fix scrollbar colors in dark mode (darker thumb) - Improve tab sizing: 1.1x for 2-4 tabs, 1.6x for 5+ tabs - Add trackpad scroll transform animation support --- css/base.css | 7 +++++-- css/tabBar.css | 17 +++++++++++++++-- index.html | 2 +- 3 files changed, 21 insertions(+), 5 deletions(-) diff --git a/css/base.css b/css/base.css index b5b927671..2158fd4a4 100644 --- a/css/base.css +++ b/css/base.css @@ -106,8 +106,11 @@ a { border-radius: 0.25em; } .dark-theme .has-thin-scrollbar::-webkit-scrollbar-track { - background-color: rgba(255, 255, 255, 0.25); + background-color: rgba(0, 0, 0, 0.3); } .dark-theme .has-thin-scrollbar::-webkit-scrollbar-thumb { - background-color: rgba(255, 255, 255, 0.6); + background-color: rgba(255, 255, 255, 0.3); +} +.dark-theme .has-thin-scrollbar::-webkit-scrollbar-thumb:hover { + background-color: rgba(255, 255, 255, 0.5); } diff --git a/css/tabBar.css b/css/tabBar.css index e956064a5..d7810eb71 100644 --- a/css/tabBar.css +++ b/css/tabBar.css @@ -100,7 +100,7 @@ body.linux #menu-button { .tab-item { flex: 1; min-width: 125px; - transition: 0.2s transform; + transition: flex 0.3s cubic-bezier(0.4, 0, 0.2, 1), min-width 0.3s cubic-bezier(0.4, 0, 0.2, 1), background-color 0.2s, transform 0.2s; line-height: 36px; height: 36px; overflow: hidden; @@ -113,7 +113,13 @@ body.linux #menu-button { padding-right: 0.5rem; } .tab-item.active { - min-width: 168px; + flex: 1.1; + min-width: 220px; +} +/* When 5 or more tabs are open, make active tab grow more */ +.tab-item:first-child:nth-last-child(n+5).active, +.tab-item:first-child:nth-last-child(n+5) ~ .tab-item.active { + flex: 1.6; } .tab-item.gu-mirror { top: var(--control-space-top) !important; @@ -161,6 +167,13 @@ body.linux #menu-button { .tab-item:not(.active):hover { background-color: rgba(0, 0, 0, 0.03); + flex: 1.05; + min-width: 156px; +} +/* When 5 or more tabs are open, make hover grow more */ +.tab-item:first-child:nth-last-child(n+5):not(.active):hover, +.tab-item:first-child:nth-last-child(n+5) ~ .tab-item:not(.active):hover { + flex: 1.25; } .dark-theme .tab-item:not(.active):hover { background-color: rgba(255, 255, 255, 0.1); diff --git a/index.html b/index.html index d0e97bc17..b6144ca69 100644 --- a/index.html +++ b/index.html @@ -241,7 +241,7 @@ -
+