From 8003937a68e00be0e9af4003755910a1a8fed98b Mon Sep 17 00:00:00 2001 From: Lapo Calamandrei Date: Sat, 12 Mar 2016 15:22:35 +0100 Subject: [PATCH] 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(+) diff --git a/gtk/theme/Adwaita/_common.scss b/gtk/theme/Adwaita/_common.scss index 1226463733..8a0d9c92a4 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 a8cac8361f..86e7d3199a 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 15866d1a56..4c90aa95c1 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 {