diff options
author | Jakub Steiner <jimmac@gmail.com> | 2021-02-10 12:37:45 +0100 |
---|---|---|
committer | Jakub Steiner <jimmac@gmail.com> | 2021-02-15 12:25:09 +0100 |
commit | 5c5cd34c2f1e5557f616478d481ab4f280114c5f (patch) | |
tree | fb4a960ed7cd1382b34ac422c2f7fefb8feb4af0 | |
parent | 4ce071721febe0853860cd9ad5eebe365ccce56a (diff) | |
download | gtk+-5c5cd34c2f1e5557f616478d481ab4f280114c5f.tar.gz |
Adwaita: Scrollbar transitions and sizewip/jimmac/larger-smaller-scrollbar-gtk4
- tone down the size of the controller again
- transition between the indicator and control fluidly
Fixes https://gitlab.gnome.org/GNOME/gtk/-/issues/1886
-rw-r--r-- | gtk/theme/Adwaita/_common.scss | 14 |
1 files changed, 9 insertions, 5 deletions
diff --git a/gtk/theme/Adwaita/_common.scss b/gtk/theme/Adwaita/_common.scss index 5588e4fb40..8adce445a7 100644 --- a/gtk/theme/Adwaita/_common.scss +++ b/gtk/theme/Adwaita/_common.scss @@ -2278,11 +2278,14 @@ notebook { /************** * Scrollbars * **************/ + scrollbar { $_slider_min_length: 40px; + $_slider_width: 8px; + $_scrollbar_transition: all 300ms $ease-out-quad; background-color: $scrollbar_bg_color; - transition: 300ms $ease-out-quad; + transition: $_scrollbar_transition; // scrollbar border &.top { border-bottom: 1px solid $borders_color; } @@ -2291,13 +2294,14 @@ scrollbar { &.right { border-left: 1px solid $borders_color; } > range > trough > slider { - min-width: 10px; - min-height: 10px; + min-width: $_slider_width; + min-height: $_slider_width; margin: -1px; border: 4px solid transparent; border-radius: 10px; background-clip: padding-box; background-color: $scrollbar_slider_color; + transition: $_scrollbar_transition; &:hover { background-color: $scrollbar_slider_hover_color; } @@ -2308,8 +2312,8 @@ scrollbar { > range.fine-tune { > trough > slider { - min-width: 6px; - min-height: 6px; + min-width: $_slider_width - 2; + min-height: $_slider_width - 2; } &.horizontal > trough > slider { border-width: 6px 4px; } |