[gtk/wip/jimmac/larger-scrollbars-gtk4] Adwaita: make scrollbars larger
- From: Jakub Steiner <jimmac src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk/wip/jimmac/larger-scrollbars-gtk4] Adwaita: make scrollbars larger
- Date: Mon, 25 Jan 2021 13:17:11 +0000 (UTC)
commit 23af707b41a78a1b3e4af09b9d8847f51dfadff1
Author: Jakub Steiner <jimmac gmail com>
Date: Mon Jan 25 14:15:22 2021 +0100
Adwaita: make scrollbars larger
When using scrollbars as active controls, rather than their primary role as indicators,
increase their size as click targets.
Fixes https://gitlab.gnome.org/GNOME/gtk/issues/1886
gtk/theme/Adwaita/_common.scss | 14 +++++++-------
1 file changed, 7 insertions(+), 7 deletions(-)
---
diff --git a/gtk/theme/Adwaita/_common.scss b/gtk/theme/Adwaita/_common.scss
index 9bf97e18bf..05877b1dc7 100644
--- a/gtk/theme/Adwaita/_common.scss
+++ b/gtk/theme/Adwaita/_common.scss
@@ -2282,11 +2282,11 @@ scrollbar {
&.right { border-left: 1px solid $borders_color; }
> range > trough > slider {
- min-width: 6px;
- min-height: 6px;
+ min-width: 10px;
+ min-height: 10px;
margin: -1px;
border: 4px solid transparent;
- border-radius: 8px;
+ border-radius: 10px;
background-clip: padding-box;
background-color: $scrollbar_slider_color;
@@ -2299,12 +2299,12 @@ scrollbar {
> range.fine-tune {
> trough > slider {
- min-width: 4px;
- min-height: 4px;
+ min-width: 6px;
+ min-height: 6px;
}
- &.horizontal > trough > slider { border-width: 5px 4px; }
- &.vertical > trough > slider { border-width: 4px 5px; }
+ &.horizontal > trough > slider { border-width: 6px 4px; }
+ &.vertical > trough > slider { border-width: 4px 6px; }
}
&.overlay-indicator {
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]