[gtk+/wip/overlay-scrollbar: 4/5] Add some overlay scrollbar theming to Adwaita
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+/wip/overlay-scrollbar: 4/5] Add some overlay scrollbar theming to Adwaita
- Date: Fri, 10 Oct 2014 11:00:09 +0000 (UTC)
commit 02d9bc2b374eb6ca2cab2a558a527f773caba3d7
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 b14490c..8fc1f59 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 519c9d0..db03d4b 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 b3f9399..bfb83a2 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;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]