[gtk+] Add some overlay scrollbar theming to Adwaita
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+] Add some overlay scrollbar theming to Adwaita
- Date: Tue, 21 Oct 2014 03:09:08 +0000 (UTC)
commit 47ce01116b81bfa81a503d3b7cf24881d2b134f7
Author: Matthias Clasen <mclasen redhat com>
Date: Wed Oct 8 23:37:29 2014 -0400
Add some overlay scrollbar theming to Adwaita
gtk/resources/theme/Adwaita/_common.scss | 22 ++++++++++++++++++++
gtk/resources/theme/Adwaita/gtk-contained-dark.css | 17 +++++++++++++++
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 c285190..564521e 100644
--- a/gtk/resources/theme/Adwaita/_common.scss
+++ b/gtk/resources/theme/Adwaita/_common.scss
@@ -3022,3 +3022,25 @@ GtkVolumeButton.button { padding: 8px; }
.monospace {
font: Monospace;
}
+
+/* Overlay scrollbars */
+
+.scrollbar.overlay-indicator.dragging,
+.scrollbar.overlay-indicator.hovering {
+ -GtkRange-slider-width: 15;
+}
+
+.scrollbar.overlay-indicator.dragging.trough,
+.scrollbar.overlay-indicator.hovering.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 e531953..6348c60 100644
--- a/gtk/resources/theme/Adwaita/gtk-contained-dark.css
+++ b/gtk/resources/theme/Adwaita/gtk-contained-dark.css
@@ -4372,6 +4372,23 @@ GtkCalendar.header .menuitem.titlebutton.button:selected, .list-row:selected {
.monospace {
font: Monospace; }
+/* Overlay scrollbars */
+.scrollbar.overlay-indicator.dragging,
+.scrollbar.overlay-indicator.hovering {
+ -GtkRange-slider-width: 15; }
+
+.scrollbar.overlay-indicator.dragging.trough,
+.scrollbar.overlay-indicator.hovering.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
----------------
use responsibly! */
diff --git a/gtk/resources/theme/Adwaita/gtk-contained.css b/gtk/resources/theme/Adwaita/gtk-contained.css
index 7766b1d..9545fe5 100644
--- a/gtk/resources/theme/Adwaita/gtk-contained.css
+++ b/gtk/resources/theme/Adwaita/gtk-contained.css
@@ -4534,6 +4534,23 @@ GtkCalendar.header .menuitem.titlebutton.button:selected, .list-row:selected {
.monospace {
font: Monospace; }
+/* Overlay scrollbars */
+.scrollbar.overlay-indicator.dragging,
+.scrollbar.overlay-indicator.hovering {
+ -GtkRange-slider-width: 15; }
+
+.scrollbar.overlay-indicator.dragging.trough,
+.scrollbar.overlay-indicator.hovering.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
----------------
use responsibly! */
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]