[gtk+] Adwaita: Update textview selection styling
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+] Adwaita: Update textview selection styling
- Date: Wed, 11 Nov 2015 03:01:36 +0000 (UTC)
commit fbd6a814c6e4fccafeccff231b76e1089498ddde
Author: Matthias Clasen <mclasen redhat com>
Date: Tue Nov 10 21:51:36 2015 -0500
Adwaita: Update textview selection styling
Use the selection name.
gtk/theme/Adwaita/_common.scss | 5 ++---
gtk/theme/Adwaita/gtk-contained-dark.css | 25 +++++++++----------------
gtk/theme/Adwaita/gtk-contained.css | 25 +++++++++----------------
3 files changed, 20 insertions(+), 35 deletions(-)
---
diff --git a/gtk/theme/Adwaita/_common.scss b/gtk/theme/Adwaita/_common.scss
index 2edeab6..9872c04 100644
--- a/gtk/theme/Adwaita/_common.scss
+++ b/gtk/theme/Adwaita/_common.scss
@@ -113,9 +113,8 @@ textview text,
color: $backdrop_text_color;
background-color: $backdrop_base_color;
}
-
- &:selected {
- border-radius: 3px;
+ & selection,
+ & selection:focus {
@extend %selected_items;
}
}
diff --git a/gtk/theme/Adwaita/gtk-contained-dark.css b/gtk/theme/Adwaita/gtk-contained-dark.css
index 5f8fc88..7b7df69 100644
--- a/gtk/theme/Adwaita/gtk-contained-dark.css
+++ b/gtk/theme/Adwaita/gtk-contained-dark.css
@@ -72,10 +72,6 @@ textview text,
.view:backdrop {
color: #d5d5d5;
background-color: #2c2c2c; }
- textview text:selected,
- .view:selected,
- calendar:selected {
- border-radius: 3px; }
.rubberband,
rubberband,
@@ -4447,25 +4443,22 @@ headerbar.selection-mode button.titlebutton,
.titlebar.selection-mode button.titlebutton:backdrop {
icon-shadow: none; }
-textview text:selected,
-.view:selected,
-calendar:selected, label selection, label selection:focus, label selection:hover, .grid-child:selected,
entry selection, spinbutton selection, entry selection:focus, spinbutton selection:focus,
modelbutton.flat:selected,
+textview text selection, textview text selection:focus,
+.view selection,
+.view selection:focus, label selection, label selection:focus, label selection:hover, .grid-child:selected,
entry selection, spinbutton selection, entry selection:focus, spinbutton selection:focus,
modelbutton.flat:selected,
.menuitem.button.flat:selected, row:selected, .sidebar :selected {
background-color: #215d9c;
color: #ffffff; }
- textview text:insensitive:selected,
- .view:insensitive:selected,
- calendar:insensitive:selected, label selection:insensitive, .grid-child:insensitive:selected, entry
selection:insensitive, spinbutton selection:insensitive, modelbutton.flat:insensitive:selected,
+ textview text selection:insensitive,
+ .view selection:insensitive, label selection:insensitive, .grid-child:insensitive:selected, entry
selection:insensitive, spinbutton selection:insensitive, modelbutton.flat:insensitive:selected,
.menuitem.button.flat:insensitive:selected, row:insensitive:selected, .sidebar :insensitive:selected,
placessidebar row:selected:insensitive label {
color: #90aece; }
- textview text:backdrop:selected,
- .view:backdrop:selected,
- calendar:backdrop:selected, label selection:backdrop, .grid-child:backdrop:selected, entry
selection:backdrop, spinbutton selection:backdrop, modelbutton.flat:backdrop:selected,
+ textview text selection:backdrop,
+ .view selection:backdrop, label selection:backdrop, .grid-child:backdrop:selected, entry
selection:backdrop, spinbutton selection:backdrop, modelbutton.flat:backdrop:selected,
.menuitem.button.flat:backdrop:selected, row:backdrop:selected, .sidebar :backdrop:selected {
color: #ffffff; }
- textview text:backdrop:insensitive:selected,
- .view:backdrop:insensitive:selected,
- calendar:backdrop:insensitive:selected, label selection:backdrop:insensitive,
.grid-child:backdrop:insensitive:selected, entry selection:backdrop:insensitive, spinbutton
selection:backdrop:insensitive, modelbutton.flat:backdrop:insensitive:selected,
+ textview text selection:backdrop:insensitive,
+ .view selection:backdrop:insensitive, label selection:backdrop:insensitive,
.grid-child:backdrop:insensitive:selected, entry selection:backdrop:insensitive, spinbutton
selection:backdrop:insensitive, modelbutton.flat:backdrop:insensitive:selected,
.menuitem.button.flat:backdrop:insensitive:selected, row:backdrop:insensitive:selected, .sidebar
:backdrop:insensitive:selected, placessidebar row:selected:insensitive label:backdrop, placessidebar
row:selected:backdrop:insensitive label {
color: #648eba; }
diff --git a/gtk/theme/Adwaita/gtk-contained.css b/gtk/theme/Adwaita/gtk-contained.css
index 3abe6da..6eced31 100644
--- a/gtk/theme/Adwaita/gtk-contained.css
+++ b/gtk/theme/Adwaita/gtk-contained.css
@@ -72,10 +72,6 @@ textview text,
.view:backdrop {
color: #333333;
background-color: white; }
- textview text:selected,
- .view:selected,
- calendar:selected {
- border-radius: 3px; }
.rubberband,
rubberband,
@@ -4619,26 +4615,23 @@ headerbar.selection-mode button.titlebutton,
.titlebar.selection-mode button.titlebutton:backdrop {
icon-shadow: none; }
-textview text:selected,
-.view:selected,
-calendar:selected, label selection, label selection:focus, label selection:hover, .grid-child:selected,
entry selection, spinbutton selection, entry selection:focus, spinbutton selection:focus,
modelbutton.flat:selected,
+textview text selection, textview text selection:focus,
+.view selection,
+.view selection:focus, label selection, label selection:focus, label selection:hover, .grid-child:selected,
entry selection, spinbutton selection, entry selection:focus, spinbutton selection:focus,
modelbutton.flat:selected,
.menuitem.button.flat:selected, row:selected, .sidebar :selected {
background-color: #4a90d9;
color: #ffffff;
outline-color: rgba(255, 255, 255, 0.3); }
- textview text:insensitive:selected,
- .view:insensitive:selected,
- calendar:insensitive:selected, label selection:insensitive, .grid-child:insensitive:selected, entry
selection:insensitive, spinbutton selection:insensitive, modelbutton.flat:insensitive:selected,
+ textview text selection:insensitive,
+ .view selection:insensitive, label selection:insensitive, .grid-child:insensitive:selected, entry
selection:insensitive, spinbutton selection:insensitive, modelbutton.flat:insensitive:selected,
.menuitem.button.flat:insensitive:selected, row:insensitive:selected, .sidebar :insensitive:selected,
placessidebar row:selected:insensitive label {
color: #a5c8ec; }
- textview text:backdrop:selected,
- .view:backdrop:selected,
- calendar:backdrop:selected, label selection:backdrop, .grid-child:backdrop:selected, entry
selection:backdrop, spinbutton selection:backdrop, modelbutton.flat:backdrop:selected,
+ textview text selection:backdrop,
+ .view selection:backdrop, label selection:backdrop, .grid-child:backdrop:selected, entry
selection:backdrop, spinbutton selection:backdrop, modelbutton.flat:backdrop:selected,
.menuitem.button.flat:backdrop:selected, row:backdrop:selected, .sidebar :backdrop:selected {
color: #ffffff; }
- textview text:backdrop:insensitive:selected,
- .view:backdrop:insensitive:selected,
- calendar:backdrop:insensitive:selected, label selection:backdrop:insensitive,
.grid-child:backdrop:insensitive:selected, entry selection:backdrop:insensitive, spinbutton
selection:backdrop:insensitive, modelbutton.flat:backdrop:insensitive:selected,
+ textview text selection:backdrop:insensitive,
+ .view selection:backdrop:insensitive, label selection:backdrop:insensitive,
.grid-child:backdrop:insensitive:selected, entry selection:backdrop:insensitive, spinbutton
selection:backdrop:insensitive, modelbutton.flat:backdrop:insensitive:selected,
.menuitem.button.flat:backdrop:insensitive:selected, row:backdrop:insensitive:selected, .sidebar
:backdrop:insensitive:selected, placessidebar row:selected:insensitive label:backdrop, placessidebar
row:selected:backdrop:insensitive label {
color: #80b1e4; }
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]