diff options
author | Matthias Clasen <mclasen@redhat.com> | 2014-10-08 23:37:29 -0400 |
---|---|---|
committer | Matthias Clasen <mclasen@redhat.com> | 2014-10-09 21:08:26 -0400 |
commit | 02d9bc2b374eb6ca2cab2a558a527f773caba3d7 (patch) | |
tree | ee46c5a247d39be0242ba622afa5af1d3966d32f | |
parent | 48a0e8d6cde240387d2823b0e05af864e73d087b (diff) | |
download | gtk+-02d9bc2b374eb6ca2cab2a558a527f773caba3d7.tar.gz |
Add some overlay scrollbar theming to Adwaita
-rw-r--r-- | gtk/resources/theme/Adwaita/_common.scss | 22 | ||||
-rw-r--r-- | gtk/resources/theme/Adwaita/gtk-contained-dark.css | 17 | ||||
-rw-r--r-- | gtk/resources/theme/Adwaita/gtk-contained.css | 17 |
3 files changed, 56 insertions, 0 deletions
diff --git a/gtk/resources/theme/Adwaita/_common.scss b/gtk/resources/theme/Adwaita/_common.scss index b14490cef7..8fc1f59e24 100644 --- a/gtk/resources/theme/Adwaita/_common.scss +++ b/gtk/resources/theme/Adwaita/_common.scss @@ -2948,3 +2948,25 @@ GtkVolumeButton.button { padding: 8px; } .monospace { font: Monospace; } + +/* Overlay scrollbars */ + +.scrollbar.overlay-indicator.dragging, +.scrollbar.overlay-indicator.locked { + -GtkRange-slider-width: 15; +} + +.scrollbar.overlay-indicator.dragging.trough, +.scrollbar.overlay-indicator.locked.trough { + background-color: transparentize(black, 0.9); +} + +.sidebar .scrollbar.overlay-indicator, +.scrollbar.overlay-indicator { + -GtkRange-slider-width: 10; +} + +.sidebar .scrollbar.overlay-indicator .trough, +.scrollbar.overlay-indicator.trough { + background-color: transparent; +} diff --git a/gtk/resources/theme/Adwaita/gtk-contained-dark.css b/gtk/resources/theme/Adwaita/gtk-contained-dark.css index 519c9d0a6d..db03d4b1ec 100644 --- a/gtk/resources/theme/Adwaita/gtk-contained-dark.css +++ b/gtk/resources/theme/Adwaita/gtk-contained-dark.css @@ -4303,6 +4303,23 @@ GtkCalendar.header .menuitem.titlebutton.button:selected, .list-row:selected { .monospace { font: Monospace; } +/* Overlay scrollbars */ +.scrollbar.overlay-indicator.dragging, +.scrollbar.overlay-indicator.locked { + -GtkRange-slider-width: 15; } + +.scrollbar.overlay-indicator.dragging.trough, +.scrollbar.overlay-indicator.locked.trough { + background-color: rgba(0, 0, 0, 0.1); } + +.sidebar .scrollbar.overlay-indicator, +.scrollbar.overlay-indicator { + -GtkRange-slider-width: 10; } + +.sidebar .scrollbar.overlay-indicator .trough, +.scrollbar.overlay-indicator.trough { + background-color: transparent; } + /* GTK NAMED COLORS */ @define-color theme_fg_color #eeeeec; @define-color theme_bg_color #393f3f; diff --git a/gtk/resources/theme/Adwaita/gtk-contained.css b/gtk/resources/theme/Adwaita/gtk-contained.css index b3f9399e69..bfb83a27bf 100644 --- a/gtk/resources/theme/Adwaita/gtk-contained.css +++ b/gtk/resources/theme/Adwaita/gtk-contained.css @@ -4465,6 +4465,23 @@ GtkCalendar.header .menuitem.titlebutton.button:selected, .list-row:selected { .monospace { font: Monospace; } +/* Overlay scrollbars */ +.scrollbar.overlay-indicator.dragging, +.scrollbar.overlay-indicator.locked { + -GtkRange-slider-width: 15; } + +.scrollbar.overlay-indicator.dragging.trough, +.scrollbar.overlay-indicator.locked.trough { + background-color: rgba(0, 0, 0, 0.1); } + +.sidebar .scrollbar.overlay-indicator, +.scrollbar.overlay-indicator { + -GtkRange-slider-width: 10; } + +.sidebar .scrollbar.overlay-indicator .trough, +.scrollbar.overlay-indicator.trough { + background-color: transparent; } + /* GTK NAMED COLORS */ @define-color theme_fg_color #2e3436; @define-color theme_bg_color #ededed; |