Skip to content

Commit

Permalink
Bring scrollbar closer to source material
Browse files Browse the repository at this point in the history
  • Loading branch information
Elbullazul committed Mar 31, 2019
1 parent 91eb495 commit d3bca0c
Show file tree
Hide file tree
Showing 5 changed files with 341 additions and 3 deletions.
81 changes: 81 additions & 0 deletions gtk-3.20/assets/arrow-down-active.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
81 changes: 81 additions & 0 deletions gtk-3.20/assets/arrow-left-active.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
81 changes: 81 additions & 0 deletions gtk-3.20/assets/arrow-right-active.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
81 changes: 81 additions & 0 deletions gtk-3.20/assets/arrow-up-active.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
20 changes: 17 additions & 3 deletions gtk-3.20/gtk-widgets.css
Original file line number Diff line number Diff line change
Expand Up @@ -1434,7 +1434,13 @@ scrollbar {
border-radius: 0; }
scrollbar:backdrop {
background-color: mix(@theme_bg_color, @theme_fg_color, 0.1); }
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 {
scrollbar button:hover {
border-color: mix(@theme_bg_color, @theme_fg_color, 0.1);
background-color: mix(@theme_bg_color, @theme_fg_color, 0.2); }
scrollbar button:active {
border-color: mix(@theme_bg_color, @theme_fg_color, 0.1);
background-color: mix(@theme_bg_color, @theme_fg_color, 0.6); }
scrollbar button, scrollbar button:backdrop, scrollbar button:disabled, scrollbar button:disabled:backdrop {
padding: 3px;
border-color: mix(@theme_bg_color, @theme_fg_color, 0.1);
background-color: mix(@theme_bg_color, @theme_fg_color, 0.1); }
Expand All @@ -1447,9 +1453,9 @@ scrollbar {
background-clip: padding-box;
background-color: mix(@theme_bg_color, @theme_fg_color, 0.4); }
scrollbar slider:hover {
background-color: mix(@theme_bg_color, @theme_fg_color, 0.4); }
background-color: mix(@theme_bg_color, @theme_fg_color, 0.35); }
scrollbar slider:hover:active {
background-color: mix(@theme_bg_color, @theme_fg_color, 0.45); }
background-color: mix(@theme_bg_color, @theme_fg_color, 0.6); }
scrollbar slider:backdrop {
background-color: mix(@theme_bg_color, @theme_fg_color, 0.45); }
scrollbar slider:disabled {
Expand Down Expand Up @@ -1492,17 +1498,25 @@ scrollbar {
min-width: 6px; }
scrollbar.horizontal button.down {
-gtk-icon-source: url("assets/arrow-right.svg"); }
scrollbar.horizontal button.down:active {
-gtk-icon-source: url("assets/arrow-right-active.svg"); }
scrollbar.horizontal button.up {
-gtk-icon-source: url("assets/arrow-left.svg"); }
scrollbar.horizontal button.up:active {
-gtk-icon-source: url("assets/arrow-left-active.svg"); }
scrollbar.vertical slider {
min-height: 40px; }
scrollbar.vertical button {
min-height: 6px;
min-width: 6px; }
scrollbar.vertical button.down {
-gtk-icon-source: url("assets/arrow-down.svg"); }
scrollbar.vertical button.down:active {
-gtk-icon-source: url("assets/arrow-down-active.svg"); }
scrollbar.vertical button.up {
-gtk-icon-source: url("assets/arrow-up.svg"); }
scrollbar.vertical button.up:active {
-gtk-icon-source: url("assets/arrow-up-active.svg"); }
treeview ~ scrollbar.vertical {
border-top: 1px solid @borders;
margin-top: -1px; }
Expand Down

0 comments on commit d3bca0c

Please sign in to comment.