summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLapo Calamandrei <calamandrei@gmail.com>2016-04-04 12:03:11 +0200
committerLapo Calamandrei <calamandrei@gmail.com>2016-04-04 12:06:05 +0200
commit17d1cd1506f04f1d737bb562fb5811e0e07538e9 (patch)
tree5cc82e5657e8e47cd9440807f92553844aa0bf47
parent40afffb9fde9f2fc46d1fafd9dcdca7692e065ef (diff)
downloadgtk+-17d1cd1506f04f1d737bb562fb5811e0e07538e9.tar.gz
Adwaita: transparent textview border border
So it will play nicely with gedit color combinations. See https://bugzilla.gnome.org/show_bug.cgi?id=764203
-rw-r--r--gtk/theme/Adwaita/_common.scss9
-rw-r--r--gtk/theme/Adwaita/gtk-contained-dark.css5
-rw-r--r--gtk/theme/Adwaita/gtk-contained.css5
3 files changed, 7 insertions, 12 deletions
diff --git a/gtk/theme/Adwaita/_common.scss b/gtk/theme/Adwaita/_common.scss
index 7733d2e97b..d553c4444c 100644
--- a/gtk/theme/Adwaita/_common.scss
+++ b/gtk/theme/Adwaita/_common.scss
@@ -123,13 +123,10 @@ textview {
textview border {
background-color: mix($bg_color, $base_color, 50%);
- background-image: image($bg_color); // HACK: the border node just draws background so, using a background-image to draw the border
- background-repeat: no-repeat;
+ background-image: image(transparentize(black, 0.8)); // HACK: the border node just draws background so,
+ background-repeat: no-repeat; // using a background-image to draw the border
- &:backdrop {
- background-color: mix($backdrop_bg_color, $backdrop_base_color, 50%);
- background-image: image($backdrop_bg_color);
- }
+ &:backdrop { background-color: mix($backdrop_bg_color, $backdrop_base_color, 50%); }
&.bottom {
background-size: 100% 1px;
diff --git a/gtk/theme/Adwaita/gtk-contained-dark.css b/gtk/theme/Adwaita/gtk-contained-dark.css
index 0dbd69dea3..c6acb03570 100644
--- a/gtk/theme/Adwaita/gtk-contained-dark.css
+++ b/gtk/theme/Adwaita/gtk-contained-dark.css
@@ -77,11 +77,10 @@ textview text {
textview border {
background-color: #313434;
- background-image: image(#393f3f);
+ background-image: image(rgba(0, 0, 0, 0.2));
background-repeat: no-repeat; }
textview border:backdrop {
- background-color: #333636;
- background-image: image(#393f3f); }
+ background-color: #333636; }
textview border.bottom {
background-size: 100% 1px;
background-position: top; }
diff --git a/gtk/theme/Adwaita/gtk-contained.css b/gtk/theme/Adwaita/gtk-contained.css
index a221f235d2..361299f27b 100644
--- a/gtk/theme/Adwaita/gtk-contained.css
+++ b/gtk/theme/Adwaita/gtk-contained.css
@@ -77,11 +77,10 @@ textview text {
textview border {
background-color: #f4f4f3;
- background-image: image(#e8e8e7);
+ background-image: image(rgba(0, 0, 0, 0.2));
background-repeat: no-repeat; }
textview border:backdrop {
- background-color: #f2f2f2;
- background-image: image(#e8e8e7); }
+ background-color: #f2f2f2; }
textview border.bottom {
background-size: 100% 1px;
background-position: top; }