From cb6ef5c222161215e3e63d83bd4507e96f887302 Mon Sep 17 00:00:00 2001 From: Carlos Garnacho Date: Thu, 10 Jul 2014 16:55:00 +0200 Subject: [PATCH] Adwaita: Add comment around the .overshoot style class And document the oddities around it, as requested by Lapo --- gtk/resources/theme/Adwaita/_common.scss | 5 +++++ gtk/resources/theme/Adwaita/gtk-contained-dark.css | 5 +++++ gtk/resources/theme/Adwaita/gtk-contained.css | 5 +++++ 3 files changed, 15 insertions(+) diff --git a/gtk/resources/theme/Adwaita/_common.scss b/gtk/resources/theme/Adwaita/_common.scss index f36e47839d..8330ab679b 100644 --- a/gtk/resources/theme/Adwaita/_common.scss +++ b/gtk/resources/theme/Adwaita/_common.scss @@ -122,6 +122,11 @@ background-color: transparentize($selected_bg_color,0.8); } +/* This is used by GtkScrolledWindow, when rendering the edge + * gradient shown when content is touch-dragged past boundaries. + * The color is used as a base for such gradient, which is then + * stretched/modified as a direct result of user interaction. + */ .overshoot { background-color: transparentize($selected_bg_color,0.8); } diff --git a/gtk/resources/theme/Adwaita/gtk-contained-dark.css b/gtk/resources/theme/Adwaita/gtk-contained-dark.css index af4a806dcd..2646c775d8 100644 --- a/gtk/resources/theme/Adwaita/gtk-contained-dark.css +++ b/gtk/resources/theme/Adwaita/gtk-contained-dark.css @@ -108,6 +108,11 @@ border: 1px solid #215d9c; background-color: rgba(33, 93, 156, 0.2); } +/* This is used by GtkScrolledWindow, when rendering the edge + * gradient shown when content is touch-dragged past boundaries. + * The color is used as a base for such gradient, which is then + * stretched/modified as a direct result of user interaction. + */ .overshoot { background-color: rgba(33, 93, 156, 0.2); } diff --git a/gtk/resources/theme/Adwaita/gtk-contained.css b/gtk/resources/theme/Adwaita/gtk-contained.css index ae9aaec681..69d576e8b3 100644 --- a/gtk/resources/theme/Adwaita/gtk-contained.css +++ b/gtk/resources/theme/Adwaita/gtk-contained.css @@ -108,6 +108,11 @@ border: 1px solid #4a90d9; background-color: rgba(74, 144, 217, 0.2); } +/* This is used by GtkScrolledWindow, when rendering the edge + * gradient shown when content is touch-dragged past boundaries. + * The color is used as a base for such gradient, which is then + * stretched/modified as a direct result of user interaction. + */ .overshoot { background-color: rgba(74, 144, 217, 0.2); }