Skip to content

Commit 7560bb8

Browse files
committed
Bring scrollbar closer to source material
1 parent 9781d96 commit 7560bb8

9 files changed

Lines changed: 344 additions & 4 deletions
Lines changed: 81 additions & 0 deletions
Loading
Lines changed: 81 additions & 0 deletions
Loading
Lines changed: 81 additions & 0 deletions
Loading

gtk-3.0/assets/arrow-up-active.svg

Lines changed: 81 additions & 0 deletions
Loading
-120 Bytes
Loading
-381 Bytes
Loading
120 Bytes
Loading
381 Bytes
Loading

gtk-3.0/gtk-widgets.css

Lines changed: 20 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1437,8 +1437,16 @@ scrollbar {
14371437
border-radius: 0; }
14381438
scrollbar:backdrop {
14391439
background-color: mix(@theme_bg_color, @theme_fg_color, 0.1); }
1440-
scrollbar button, scrollbar button:backdrop, scrollbar button:hover, scrollbar button:hover:backdrop, scrollbar button:active, scrollbar button:active:backdrop, scrollbar button:disabled, scrollbar button:disabled:backdrop {
1441-
padding: 3px;
1440+
scrollbar button:hover {
1441+
box-shadow: none;
1442+
border-color: mix(@theme_bg_color, @theme_fg_color, 0.1);
1443+
background-color: mix(@theme_bg_color, @theme_fg_color, 0.2); }
1444+
scrollbar button:active {
1445+
box-shadow: none;
1446+
border-color: mix(@theme_bg_color, @theme_fg_color, 0.1);
1447+
background-color: mix(@theme_bg_color, @theme_fg_color, 0.6); }
1448+
scrollbar button, scrollbar button:backdrop, scrollbar button:disabled, scrollbar button:disabled:backdrop {
1449+
padding: 4px;
14421450
border-color: mix(@theme_bg_color, @theme_fg_color, 0.1);
14431451
background-color: mix(@theme_bg_color, @theme_fg_color, 0.1); }
14441452
scrollbar slider {
@@ -1450,9 +1458,9 @@ scrollbar {
14501458
background-clip: padding-box;
14511459
background-color: mix(@theme_bg_color, @theme_fg_color, 0.4); }
14521460
scrollbar slider:hover {
1453-
background-color: mix(@theme_bg_color, @theme_fg_color, 0.4); }
1461+
background-color: mix(@theme_bg_color, @theme_fg_color, 0.35); }
14541462
scrollbar slider:hover:active {
1455-
background-color: mix(@theme_bg_color, @theme_fg_color, 0.45); }
1463+
background-color: mix(@theme_bg_color, @theme_fg_color, 0.6); }
14561464
scrollbar slider:backdrop {
14571465
background-color: mix(@theme_bg_color, @theme_fg_color, 0.45); }
14581466
scrollbar slider:disabled {
@@ -1495,17 +1503,25 @@ scrollbar {
14951503
min-width: 6px; }
14961504
scrollbar.horizontal button.down {
14971505
-gtk-icon-source: url("assets/arrow-right.svg"); }
1506+
scrollbar.horizontal button.down:active {
1507+
-gtk-icon-source: url("assets/arrow-right-active.svg"); }
14981508
scrollbar.horizontal button.up {
14991509
-gtk-icon-source: url("assets/arrow-left.svg"); }
1510+
scrollbar.horizontal button.up:active {
1511+
-gtk-icon-source: url("assets/arrow-left-active.svg"); }
15001512
scrollbar.vertical slider {
15011513
min-height: 40px; }
15021514
scrollbar.vertical button {
15031515
min-height: 6px;
15041516
min-width: 6px; }
15051517
scrollbar.vertical button.down {
15061518
-gtk-icon-source: url("assets/arrow-down.svg"); }
1519+
scrollbar.vertical button.down:active {
1520+
-gtk-icon-source: url("assets/arrow-down-active.svg"); }
15071521
scrollbar.vertical button.up {
15081522
-gtk-icon-source: url("assets/arrow-up.svg"); }
1523+
scrollbar.vertical button.up:active {
1524+
-gtk-icon-source: url("assets/arrow-up-active.svg"); }
15091525
treeview ~ scrollbar.vertical {
15101526
border-top: 1px solid @borders;
15111527
margin-top: -1px; }

0 commit comments

Comments
 (0)