[gtk+/gtk-3-20] Adwaita: color the selection of entries with error...
- From: Lapo Calamandrei <lapo src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+/gtk-3-20] Adwaita: color the selection of entries with error...
- Date: Sat, 25 Jun 2016 16:37:34 +0000 (UTC)
commit 8b7091d43c8c01d38e5711666d1cdc6653d76362
Author: Lapo Calamandrei <calamandrei gmail com>
Date: Sat Jun 25 18:29:51 2016 +0200
Adwaita: color the selection of entries with error...
...or warning style class applied.
This particular style bit wasn't converted to the saner 3.20 way
so `entry:selected` used in place of `entry selection`.
Fixes https://bugzilla.gnome.org/show_bug.cgi?id=768025
gtk/theme/Adwaita/_common.scss | 4 ++--
gtk/theme/Adwaita/gtk-contained-dark.css | 16 ++++++----------
gtk/theme/Adwaita/gtk-contained.css | 16 ++++++----------
3 files changed, 14 insertions(+), 22 deletions(-)
---
diff --git a/gtk/theme/Adwaita/_common.scss b/gtk/theme/Adwaita/_common.scss
index 7546ec2..d87d2eb 100644
--- a/gtk/theme/Adwaita/_common.scss
+++ b/gtk/theme/Adwaita/_common.scss
@@ -285,7 +285,7 @@ entry {
&:backdrop:disabled { @include entry(backdrop-insensitive); }
- selection { &:focus, & { @extend %selected_items; }}
+ selection { @extend %selected_items; }
// entry error and warning style
@each $e_type, $e_color in (error, $error_color),
@@ -296,7 +296,7 @@ entry {
&:focus { @include entry(focus, $e_color); }
- &:selected { &:focus, & { background-color: $e_color; }}
+ selection { background-color: $e_color; }
}
}
diff --git a/gtk/theme/Adwaita/gtk-contained-dark.css b/gtk/theme/Adwaita/gtk-contained-dark.css
index d484d29..476bc22 100644
--- a/gtk/theme/Adwaita/gtk-contained-dark.css
+++ b/gtk/theme/Adwaita/gtk-contained-dark.css
@@ -237,9 +237,8 @@ entry {
entry.error:focus {
box-shadow: inset 0 0 0 1px #cc0000;
border-color: #1a0000; }
- spinbutton.error:selected:focus:not(.vertical), spinbutton.error:selected:not(.vertical),
- entry.error:selected:focus,
- entry.error:selected {
+ spinbutton.error:not(.vertical) selection,
+ entry.error selection {
background-color: #cc0000; }
spinbutton.warning:not(.vertical),
entry.warning {
@@ -249,9 +248,8 @@ entry {
entry.warning:focus {
box-shadow: inset 0 0 0 1px #f57900;
border-color: #432100; }
- spinbutton.warning:selected:focus:not(.vertical), spinbutton.warning:selected:not(.vertical),
- entry.warning:selected:focus,
- entry.warning:selected {
+ spinbutton.warning:not(.vertical) selection,
+ entry.warning selection {
background-color: #f57900; }
spinbutton:not(.vertical) image,
entry image {
@@ -4340,8 +4338,7 @@ textview text:selected:focus,
iconview text:selected,
textview text:selected, .view text selection:focus, iconview text selection:focus, .view text selection,
iconview text selection,
textview text selection:focus,
-textview text selection, flowbox flowboxchild:selected, spinbutton:not(.vertical) selection:focus,
spinbutton:not(.vertical) selection,
-entry selection:focus,
+textview text selection, flowbox flowboxchild:selected, spinbutton:not(.vertical) selection,
entry selection, modelbutton.flat:selected, popover.background checkbutton:selected,
popover.background radiobutton:selected,
.menuitem.button.flat:selected, treeview.view:selected:focus, treeview.view:selected, row:selected,
calendar:selected {
@@ -4354,8 +4351,7 @@ popover.background radiobutton:selected,
iconview text:selected,
textview text:selected, .view text selection:focus, iconview text selection:focus, .view text selection,
iconview text selection,
textview text selection:focus,
- textview text selection, flowbox flowboxchild:selected, spinbutton:not(.vertical) selection:focus,
spinbutton:not(.vertical) selection,
- entry selection:focus,
+ textview text selection, flowbox flowboxchild:selected, spinbutton:not(.vertical) selection,
entry selection, modelbutton.flat:selected, popover.background checkbutton:selected,
popover.background radiobutton:selected,
.menuitem.button.flat:selected, treeview.view:selected:focus, treeview.view:selected, row:selected,
calendar:selected {
diff --git a/gtk/theme/Adwaita/gtk-contained.css b/gtk/theme/Adwaita/gtk-contained.css
index d7aa8a2..d98223f 100644
--- a/gtk/theme/Adwaita/gtk-contained.css
+++ b/gtk/theme/Adwaita/gtk-contained.css
@@ -237,9 +237,8 @@ entry {
entry.error:focus {
box-shadow: inset 0 0 0 1px #cc0000;
border-color: #cc0000; }
- spinbutton.error:selected:focus:not(.vertical), spinbutton.error:selected:not(.vertical),
- entry.error:selected:focus,
- entry.error:selected {
+ spinbutton.error:not(.vertical) selection,
+ entry.error selection {
background-color: #cc0000; }
spinbutton.warning:not(.vertical),
entry.warning {
@@ -249,9 +248,8 @@ entry {
entry.warning:focus {
box-shadow: inset 0 0 0 1px #f57900;
border-color: #f57900; }
- spinbutton.warning:selected:focus:not(.vertical), spinbutton.warning:selected:not(.vertical),
- entry.warning:selected:focus,
- entry.warning:selected {
+ spinbutton.warning:not(.vertical) selection,
+ entry.warning selection {
background-color: #f57900; }
spinbutton:not(.vertical) image,
entry image {
@@ -4369,8 +4367,7 @@ textview text:selected:focus,
iconview text:selected,
textview text:selected, .view text selection:focus, iconview text selection:focus, .view text selection,
iconview text selection,
textview text selection:focus,
-textview text selection, flowbox flowboxchild:selected, spinbutton:not(.vertical) selection:focus,
spinbutton:not(.vertical) selection,
-entry selection:focus,
+textview text selection, flowbox flowboxchild:selected, spinbutton:not(.vertical) selection,
entry selection, modelbutton.flat:selected, popover.background checkbutton:selected,
popover.background radiobutton:selected,
.menuitem.button.flat:selected, treeview.view:selected:focus, treeview.view:selected, row:selected,
calendar:selected {
@@ -4383,8 +4380,7 @@ popover.background radiobutton:selected,
iconview text:selected,
textview text:selected, .view text selection:focus, iconview text selection:focus, .view text selection,
iconview text selection,
textview text selection:focus,
- textview text selection, flowbox flowboxchild:selected, spinbutton:not(.vertical) selection:focus,
spinbutton:not(.vertical) selection,
- entry selection:focus,
+ textview text selection, flowbox flowboxchild:selected, spinbutton:not(.vertical) selection,
entry selection, modelbutton.flat:selected, popover.background checkbutton:selected,
popover.background radiobutton:selected,
.menuitem.button.flat:selected, treeview.view:selected:focus, treeview.view:selected, row:selected,
calendar:selected {
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]