[gtk] Adwaita: separate '.view text' from textview>text
- From: Timm Bäder <baedert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk] Adwaita: separate '.view text' from textview>text
- Date: Sat, 27 Apr 2019 06:41:18 +0000 (UTC)
commit 8634a51aa5b98e3740e330de272f8d931144872b
Author: Timm Bäder <mail baedert org>
Date: Sat Apr 27 08:12:46 2019 +0200
Adwaita: separate '.view text' from textview>text
The first rule breaks GtkText inside GtkSearchEntry inside something
that has .view applied, as found in the file chooser when searching.
gtk/theme/Adwaita/_common.scss | 7 +++++--
gtk/theme/Adwaita/gtk-contained-dark.css | 24 +++++++++++++-----------
gtk/theme/Adwaita/gtk-contained.css | 24 +++++++++++++-----------
3 files changed, 31 insertions(+), 24 deletions(-)
---
diff --git a/gtk/theme/Adwaita/_common.scss b/gtk/theme/Adwaita/_common.scss
index c63147129d..a8fef92a96 100644
--- a/gtk/theme/Adwaita/_common.scss
+++ b/gtk/theme/Adwaita/_common.scss
@@ -122,10 +122,13 @@ image.drag-icon {
}
}
-.view,
+.view {
+ outline: none;
+}
+
textview {
outline: none;
- text {
+ > text {
@extend %view;
selection { &:focus, & { @extend %selected_items; }}
diff --git a/gtk/theme/Adwaita/gtk-contained-dark.css b/gtk/theme/Adwaita/gtk-contained-dark.css
index fe1fc4bae4..fb21424acf 100644
--- a/gtk/theme/Adwaita/gtk-contained-dark.css
+++ b/gtk/theme/Adwaita/gtk-contained-dark.css
@@ -26,17 +26,19 @@ image.drag-icon { -gtk-icon-size: 32px; }
.gtkstyle-fallback:selected { color: #ffffff; background-color: #15539e; }
-.view, iconview, .view text, iconview text, textview text { color: white; background-color: #2d2d2d; }
+.view, iconview, textview > text { color: white; background-color: #2d2d2d; }
-.view:backdrop, iconview:backdrop, .view text:backdrop, iconview text:backdrop, textview text:backdrop {
color: #d6d6d6; background-color: #303030; }
+.view:backdrop, iconview:backdrop, textview > text:backdrop { color: #d6d6d6; background-color: #303030; }
-.view:backdrop:disabled, iconview:backdrop:disabled, .view text:backdrop:disabled, iconview
text:backdrop:disabled, textview text:backdrop:disabled { color: #5b5b5b; }
+.view:backdrop:disabled, iconview:backdrop:disabled, textview > text:backdrop:disabled { color: #5b5b5b; }
-.view:disabled, iconview:disabled, .view text:disabled, iconview text:disabled, textview text:disabled {
color: #919190; background-color: #323232; }
+.view:disabled, iconview:disabled, textview > text:disabled { color: #919190; background-color: #323232; }
-.view:selected:focus, iconview:selected:focus, .view:selected, iconview:selected, .view text:selected:focus,
iconview text:selected:focus, textview text:selected:focus, .view text:selected, iconview text:selected,
textview text:selected { border-radius: 3px; }
+.view:selected:focus, iconview:selected:focus, .view:selected, iconview:selected, textview >
text:selected:focus, textview > text:selected { border-radius: 3px; }
-.view, iconview, textview { outline: none; }
+.view, iconview { outline: none; }
+
+textview { outline: none; }
textview border { background-color: #313131; }
@@ -1948,15 +1950,15 @@ button.titlebutton:backdrop { -gtk-icon-shadow: none; }
.selection-mode headerbar button.titlebutton:backdrop, .selection-mode .titlebar
button.titlebutton:backdrop, headerbar.selection-mode button.titlebutton:backdrop, .titlebar.selection-mode
button.titlebutton:backdrop { -gtk-icon-shadow: none; }
-.view:selected:focus, .view:selected, iconview:selected, .view text: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, spinbutton.vertical text selection, entry
selection, modelbutton.flat:selected, .menuitem.button.flat:selected, treeview.view:selected:focus,
treeview.view:selected, row:selected, calendar:selected { background-color: #15539e; }
+.view:selected:focus, .view:selected, iconview:selected, textview > text:selected, textview > text
selection:focus, textview > text selection, flowbox flowboxchild:selected, spinbutton:not(.vertical)
selection, spinbutton.vertical text selection, entry selection, modelbutton.flat:selected,
.menuitem.button.flat:selected, treeview.view:selected:focus, treeview.view:selected, row:selected,
calendar:selected { background-color: #15539e; }
-row:selected label, label:selected, .selection-mode button.titlebutton, .view:selected:focus,
.view:selected, iconview:selected, .view text: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, spinbutton.vertical text selection, entry selection, modelbutton.flat:selected,
.menuitem.button.flat:selected, treeview.view:selected:focus, treeview.view:selected, row:selected,
calendar:selected { color: #ffffff; }
+row:selected label, label:selected, .selection-mode button.titlebutton, .view:selected:focus,
.view:selected, iconview:selected, textview > text:selected, textview > text selection:focus, textview > text
selection, flowbox flowboxchild:selected, spinbutton:not(.vertical) selection, spinbutton.vertical text
selection, entry selection, modelbutton.flat:selected, .menuitem.button.flat:selected,
treeview.view:selected:focus, treeview.view:selected, row:selected, calendar:selected { color: #ffffff; }
-row:selected label:disabled, label:disabled:selected, .selection-mode button.titlebutton:disabled,
iconview:disabled:selected:focus, .view:disabled:selected, iconview:disabled:selected, iconview
text:disabled:selected:focus, textview text:disabled:selected:focus, .view text:disabled:selected, iconview
text:disabled:selected, textview text:disabled:selected, iconview text selection:disabled:focus, .view text
selection:disabled, iconview text selection:disabled, textview text selection:disabled, flowbox
flowboxchild:disabled:selected, label:disabled selection, spinbutton:not(.vertical) selection:disabled,
spinbutton.vertical text selection:disabled, entry selection:disabled, modelbutton.flat:disabled:selected,
.menuitem.button.flat:disabled:selected, row:disabled:selected, calendar:disabled:selected { color: #8aa9ce; }
+row:selected label:disabled, label:disabled:selected, .selection-mode button.titlebutton:disabled,
iconview:disabled:selected:focus, .view:disabled:selected, iconview:disabled:selected, textview >
text:disabled:selected:focus, textview > text:disabled:selected, textview > text selection:disabled, flowbox
flowboxchild:disabled:selected, label:disabled selection, spinbutton:not(.vertical) selection:disabled,
spinbutton.vertical text selection:disabled, entry selection:disabled, modelbutton.flat:disabled:selected,
.menuitem.button.flat:disabled:selected, row:disabled:selected, calendar:disabled:selected { color: #8aa9ce; }
-row:selected label:backdrop, label:backdrop:selected, .selection-mode button.titlebutton:backdrop,
iconview:backdrop:selected:focus, .view:backdrop:selected, iconview:backdrop:selected, iconview
text:backdrop:selected:focus, textview text:backdrop:selected:focus, .view text:backdrop:selected, iconview
text:backdrop:selected, textview text:backdrop:selected, iconview text selection:backdrop:focus, .view text
selection:backdrop, iconview text selection:backdrop, textview text selection:backdrop, flowbox
flowboxchild:backdrop:selected, label:backdrop selection, spinbutton:not(.vertical) selection:backdrop,
spinbutton.vertical text selection:backdrop, entry selection:backdrop, modelbutton.flat:backdrop:selected,
.menuitem.button.flat:backdrop:selected, row:backdrop:selected, calendar:backdrop:selected { color: #d6d6d6; }
+row:selected label:backdrop, label:backdrop:selected, .selection-mode button.titlebutton:backdrop,
iconview:backdrop:selected:focus, .view:backdrop:selected, iconview:backdrop:selected, textview >
text:backdrop:selected:focus, textview > text:backdrop:selected, textview > text selection:backdrop, flowbox
flowboxchild:backdrop:selected, label:backdrop selection, spinbutton:not(.vertical) selection:backdrop,
spinbutton.vertical text selection:backdrop, entry selection:backdrop, modelbutton.flat:backdrop:selected,
.menuitem.button.flat:backdrop:selected, row:backdrop:selected, calendar:backdrop:selected { color: #d6d6d6; }
-row:selected label:backdrop:disabled, label:backdrop:disabled:selected, .selection-mode
button.titlebutton:backdrop:disabled, .view:backdrop:disabled:selected, iconview:backdrop:disabled:selected,
.view text:backdrop:disabled:selected, iconview text:backdrop:disabled:selected, textview
text:backdrop:disabled:selected, .view text selection:backdrop:disabled, iconview text
selection:backdrop:disabled, textview text selection:backdrop:disabled, flowbox
flowboxchild:backdrop:disabled:selected, label:disabled selection:backdrop, label:backdrop
selection:disabled, spinbutton:not(.vertical) selection:backdrop:disabled, spinbutton.vertical text
selection:backdrop:disabled, entry selection:backdrop:disabled, modelbutton.flat:backdrop:disabled:selected,
.menuitem.button.flat:backdrop:disabled:selected, row:backdrop:disabled:selected,
calendar:backdrop:disabled:selected { color: #4f7aaf; }
+row:selected label:backdrop:disabled, label:backdrop:disabled:selected, .selection-mode
button.titlebutton:backdrop:disabled, .view:backdrop:disabled:selected, iconview:backdrop:disabled:selected,
textview > text:backdrop:disabled:selected, textview > text selection:backdrop:disabled, flowbox
flowboxchild:backdrop:disabled:selected, label:disabled selection:backdrop, label:backdrop
selection:disabled, spinbutton:not(.vertical) selection:backdrop:disabled, spinbutton.vertical text
selection:backdrop:disabled, entry selection:backdrop:disabled, modelbutton.flat:backdrop:disabled:selected,
.menuitem.button.flat:backdrop:disabled:selected, row:backdrop:disabled:selected,
calendar:backdrop:disabled:selected { color: #4f7aaf; }
.monospace { font-family: monospace; }
diff --git a/gtk/theme/Adwaita/gtk-contained.css b/gtk/theme/Adwaita/gtk-contained.css
index 89db9afb1d..4a99724c8a 100644
--- a/gtk/theme/Adwaita/gtk-contained.css
+++ b/gtk/theme/Adwaita/gtk-contained.css
@@ -26,17 +26,19 @@ image.drag-icon { -gtk-icon-size: 32px; }
.gtkstyle-fallback:selected { color: #ffffff; background-color: #3584e4; }
-.view, iconview, .view text, iconview text, textview text { color: black; background-color: #ffffff; }
+.view, iconview, textview > text { color: black; background-color: #ffffff; }
-.view:backdrop, iconview:backdrop, .view text:backdrop, iconview text:backdrop, textview text:backdrop {
color: #323232; background-color: #fcfcfc; }
+.view:backdrop, iconview:backdrop, textview > text:backdrop { color: #323232; background-color: #fcfcfc; }
-.view:backdrop:disabled, iconview:backdrop:disabled, .view text:backdrop:disabled, iconview
text:backdrop:disabled, textview text:backdrop:disabled { color: #d4cfca; }
+.view:backdrop:disabled, iconview:backdrop:disabled, textview > text:backdrop:disabled { color: #d4cfca; }
-.view:disabled, iconview:disabled, .view text:disabled, iconview text:disabled, textview text:disabled {
color: #929595; background-color: #faf9f8; }
+.view:disabled, iconview:disabled, textview > text:disabled { color: #929595; background-color: #faf9f8; }
-.view:selected:focus, iconview:selected:focus, .view:selected, iconview:selected, .view text:selected:focus,
iconview text:selected:focus, textview text:selected:focus, .view text:selected, iconview text:selected,
textview text:selected { border-radius: 3px; }
+.view:selected:focus, iconview:selected:focus, .view:selected, iconview:selected, textview >
text:selected:focus, textview > text:selected { border-radius: 3px; }
-.view, iconview, textview { outline: none; }
+.view, iconview { outline: none; }
+
+textview { outline: none; }
textview border { background-color: #fbfafa; }
@@ -1964,15 +1966,15 @@ button.titlebutton:backdrop { -gtk-icon-shadow: none; }
.selection-mode headerbar button.titlebutton:backdrop, .selection-mode .titlebar
button.titlebutton:backdrop, headerbar.selection-mode button.titlebutton:backdrop, .titlebar.selection-mode
button.titlebutton:backdrop { -gtk-icon-shadow: none; }
-.view:selected:focus, .view:selected, iconview:selected, .view text: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, spinbutton.vertical text selection, entry
selection, modelbutton.flat:selected, .menuitem.button.flat:selected, treeview.view:selected:focus,
treeview.view:selected, row:selected, calendar:selected { background-color: #3584e4; }
+.view:selected:focus, .view:selected, iconview:selected, textview > text:selected, textview > text
selection:focus, textview > text selection, flowbox flowboxchild:selected, spinbutton:not(.vertical)
selection, spinbutton.vertical text selection, entry selection, modelbutton.flat:selected,
.menuitem.button.flat:selected, treeview.view:selected:focus, treeview.view:selected, row:selected,
calendar:selected { background-color: #3584e4; }
-row:selected label, label:selected, .selection-mode button.titlebutton, .view:selected:focus,
.view:selected, iconview:selected, .view text: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, spinbutton.vertical text selection, entry selection, modelbutton.flat:selected,
.menuitem.button.flat:selected, treeview.view:selected:focus, treeview.view:selected, row:selected,
calendar:selected { color: #ffffff; }
+row:selected label, label:selected, .selection-mode button.titlebutton, .view:selected:focus,
.view:selected, iconview:selected, textview > text:selected, textview > text selection:focus, textview > text
selection, flowbox flowboxchild:selected, spinbutton:not(.vertical) selection, spinbutton.vertical text
selection, entry selection, modelbutton.flat:selected, .menuitem.button.flat:selected,
treeview.view:selected:focus, treeview.view:selected, row:selected, calendar:selected { color: #ffffff; }
-row:selected label:disabled, label:disabled:selected, .selection-mode button.titlebutton:disabled,
iconview:disabled:selected:focus, .view:disabled:selected, iconview:disabled:selected, iconview
text:disabled:selected:focus, textview text:disabled:selected:focus, .view text:disabled:selected, iconview
text:disabled:selected, textview text:disabled:selected, iconview text selection:disabled:focus, .view text
selection:disabled, iconview text selection:disabled, textview text selection:disabled, flowbox
flowboxchild:disabled:selected, label:disabled selection, spinbutton:not(.vertical) selection:disabled,
spinbutton.vertical text selection:disabled, entry selection:disabled, modelbutton.flat:disabled:selected,
.menuitem.button.flat:disabled:selected, row:disabled:selected, calendar:disabled:selected { color: #9ac2f2; }
+row:selected label:disabled, label:disabled:selected, .selection-mode button.titlebutton:disabled,
iconview:disabled:selected:focus, .view:disabled:selected, iconview:disabled:selected, textview >
text:disabled:selected:focus, textview > text:disabled:selected, textview > text selection:disabled, flowbox
flowboxchild:disabled:selected, label:disabled selection, spinbutton:not(.vertical) selection:disabled,
spinbutton.vertical text selection:disabled, entry selection:disabled, modelbutton.flat:disabled:selected,
.menuitem.button.flat:disabled:selected, row:disabled:selected, calendar:disabled:selected { color: #9ac2f2; }
-row:selected label:backdrop, label:backdrop:selected, .selection-mode button.titlebutton:backdrop,
iconview:backdrop:selected:focus, .view:backdrop:selected, iconview:backdrop:selected, iconview
text:backdrop:selected:focus, textview text:backdrop:selected:focus, .view text:backdrop:selected, iconview
text:backdrop:selected, textview text:backdrop:selected, iconview text selection:backdrop:focus, .view text
selection:backdrop, iconview text selection:backdrop, textview text selection:backdrop, flowbox
flowboxchild:backdrop:selected, label:backdrop selection, spinbutton:not(.vertical) selection:backdrop,
spinbutton.vertical text selection:backdrop, entry selection:backdrop, modelbutton.flat:backdrop:selected,
.menuitem.button.flat:backdrop:selected, row:backdrop:selected, calendar:backdrop:selected { color: #fcfcfc; }
+row:selected label:backdrop, label:backdrop:selected, .selection-mode button.titlebutton:backdrop,
iconview:backdrop:selected:focus, .view:backdrop:selected, iconview:backdrop:selected, textview >
text:backdrop:selected:focus, textview > text:backdrop:selected, textview > text selection:backdrop, flowbox
flowboxchild:backdrop:selected, label:backdrop selection, spinbutton:not(.vertical) selection:backdrop,
spinbutton.vertical text selection:backdrop, entry selection:backdrop, modelbutton.flat:backdrop:selected,
.menuitem.button.flat:backdrop:selected, row:backdrop:selected, calendar:backdrop:selected { color: #fcfcfc; }
-row:selected label:backdrop:disabled, label:backdrop:disabled:selected, .selection-mode
button.titlebutton:backdrop:disabled, .view:backdrop:disabled:selected, iconview:backdrop:disabled:selected,
.view text:backdrop:disabled:selected, iconview text:backdrop:disabled:selected, textview
text:backdrop:disabled:selected, .view text selection:backdrop:disabled, iconview text
selection:backdrop:disabled, textview text selection:backdrop:disabled, flowbox
flowboxchild:backdrop:disabled:selected, label:disabled selection:backdrop, label:backdrop
selection:disabled, spinbutton:not(.vertical) selection:backdrop:disabled, spinbutton.vertical text
selection:backdrop:disabled, entry selection:backdrop:disabled, modelbutton.flat:backdrop:disabled:selected,
.menuitem.button.flat:backdrop:disabled:selected, row:backdrop:disabled:selected,
calendar:backdrop:disabled:selected { color: #71a8eb; }
+row:selected label:backdrop:disabled, label:backdrop:disabled:selected, .selection-mode
button.titlebutton:backdrop:disabled, .view:backdrop:disabled:selected, iconview:backdrop:disabled:selected,
textview > text:backdrop:disabled:selected, textview > text selection:backdrop:disabled, flowbox
flowboxchild:backdrop:disabled:selected, label:disabled selection:backdrop, label:backdrop
selection:disabled, spinbutton:not(.vertical) selection:backdrop:disabled, spinbutton.vertical text
selection:backdrop:disabled, entry selection:backdrop:disabled, modelbutton.flat:backdrop:disabled:selected,
.menuitem.button.flat:backdrop:disabled:selected, row:backdrop:disabled:selected,
calendar:backdrop:disabled:selected { color: #71a8eb; }
.monospace { font-family: monospace; }
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]