[gtk+] Adwaita: textview drag hilight



commit 8003937a68e00be0e9af4003755910a1a8fed98b
Author: Lapo Calamandrei <calamandrei gmail com>
Date:   Sat Mar 12 15:22:35 2016 +0100

    Adwaita: textview drag hilight

 gtk/theme/Adwaita/_common.scss           |    6 ++++++
 gtk/theme/Adwaita/gtk-contained-dark.css |    4 ++++
 gtk/theme/Adwaita/gtk-contained.css      |    4 ++++
 3 files changed, 14 insertions(+), 0 deletions(-)
---
diff --git a/gtk/theme/Adwaita/_common.scss b/gtk/theme/Adwaita/_common.scss
index 1226463..8a0d9c9 100644
--- a/gtk/theme/Adwaita/_common.scss
+++ b/gtk/theme/Adwaita/_common.scss
@@ -188,6 +188,12 @@ textview { // This will get overridden by .view, needed by gedit line numbers
   background-color: mix($bg_color, $base_color, 50%);
 
   &:backdrop { background-color: mix($backdrop_bg_color, $backdrop_base_color, 50%); }
+
+  &:drop(active) {
+    &, & > text { box-shadow: none; }
+
+    > text { background-color: transparentize($drop_target_color, 0.9); }
+  }
 }
 
 %osd, .osd {
diff --git a/gtk/theme/Adwaita/gtk-contained-dark.css b/gtk/theme/Adwaita/gtk-contained-dark.css
index a8cac83..86e7d31 100644
--- a/gtk/theme/Adwaita/gtk-contained-dark.css
+++ b/gtk/theme/Adwaita/gtk-contained-dark.css
@@ -119,6 +119,10 @@ textview {
   background-color: #313434; }
   textview:backdrop {
     background-color: #333636; }
+  textview:drop(active), textview:drop(active) > text {
+    box-shadow: none; }
+  textview:drop(active) > text {
+    background-color: rgba(90, 164, 17, 0.1); }
 
 popover.background.touch-selection, popover.background.magnifier, .csd popover.background.touch-selection, 
.csd popover.background.magnifier, popover.background.osd, .csd popover.background.osd, .app-notification,
 .app-notification.frame, .osd .scale-popup, .osd {
diff --git a/gtk/theme/Adwaita/gtk-contained.css b/gtk/theme/Adwaita/gtk-contained.css
index 15866d1..4c90aa9 100644
--- a/gtk/theme/Adwaita/gtk-contained.css
+++ b/gtk/theme/Adwaita/gtk-contained.css
@@ -119,6 +119,10 @@ textview {
   background-color: #f4f4f3; }
   textview:backdrop {
     background-color: #f4f4f3; }
+  textview:drop(active), textview:drop(active) > text {
+    box-shadow: none; }
+  textview:drop(active) > text {
+    background-color: rgba(115, 210, 22, 0.1); }
 
 popover.background.touch-selection, popover.background.magnifier, .csd popover.background.touch-selection, 
.csd popover.background.magnifier, popover.background.osd, .csd popover.background.osd, .app-notification,
 .app-notification.frame, .osd .scale-popup, .osd {


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]