[gtk/gtk-3-22] HighContrast: Honour .monospace set by GtkTextView
- From: Daniel Boles <dboles src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk/gtk-3-22] HighContrast: Honour .monospace set by GtkTextView
- Date: Thu, 29 Mar 2018 17:22:41 +0000 (UTC)
commit 0102e0f91411629b530a9a943cc94881e94a284c
Author: Daniel Boles <dboles src gmail com>
Date: Thu Mar 29 18:16:57 2018 +0100
HighContrast: Honour .monospace set by GtkTextView
Copy the line that sets a monospace family from Adwaita (same place too)
noticed at https://gitlab.gnome.org/GNOME/gtk/issues/141#note_91610
gtk/theme/HighContrast/_common.scss | 4 ++++
gtk/theme/HighContrast/gtk-contained-inverse.css | 2 ++
gtk/theme/HighContrast/gtk-contained.css | 2 ++
3 files changed, 8 insertions(+)
---
diff --git a/gtk/theme/HighContrast/_common.scss b/gtk/theme/HighContrast/_common.scss
index 331c6cc75a..254d2da5ab 100644
--- a/gtk/theme/HighContrast/_common.scss
+++ b/gtk/theme/HighContrast/_common.scss
@@ -2611,6 +2611,7 @@ levelbar {
}
}
+
// catch all extend :)
%selected_items {
@@ -2619,6 +2620,9 @@ levelbar {
&:backdrop { background-color: $borders_color; color: $selected_fg_color; }
}
+.monospace { font-family: monospace; }
+
+
/**********
* frames *
**********/
diff --git a/gtk/theme/HighContrast/gtk-contained-inverse.css
b/gtk/theme/HighContrast/gtk-contained-inverse.css
index e29d94e8ba..61b61141b6 100644
--- a/gtk/theme/HighContrast/gtk-contained-inverse.css
+++ b/gtk/theme/HighContrast/gtk-contained-inverse.css
@@ -1146,6 +1146,8 @@ levelbar block.empty:backdrop { border-color: rgba(255, 255, 255, 0.15); }
.view:backdrop:selected, textview text:backdrop:selected, iconview:backdrop:selected,
calendar:backdrop:selected, textview text:backdrop:selected:focus, iconview:backdrop:selected:focus,
calendar:backdrop:focus:selected, textview text:backdrop:selected:hover, iconview:backdrop:selected:hover,
calendar:backdrop:hover:selected, textview text selection:backdrop, flowbox flowboxchild:backdrop:selected,
label selection:backdrop, spinbutton:not(.vertical) selection:backdrop, entry selection:backdrop,
modelbutton.flat:backdrop:selected, popover.background checkbutton:backdrop:selected, popover.background
radiobutton:backdrop:selected, .menuitem.button.flat:backdrop:selected, row.activatable:backdrop:selected,
.sidebar:backdrop:selected { background-color: gray; color: #000; }
+.monospace { font-family: monospace; }
+
/********** frames * */
frame > border, .frame { border: 1px solid gray; padding: 0; }
diff --git a/gtk/theme/HighContrast/gtk-contained.css b/gtk/theme/HighContrast/gtk-contained.css
index 01be77de96..e66667a0e4 100644
--- a/gtk/theme/HighContrast/gtk-contained.css
+++ b/gtk/theme/HighContrast/gtk-contained.css
@@ -1152,6 +1152,8 @@ levelbar block.empty:backdrop { border-color: rgba(0, 0, 0, 0.15); }
.view:backdrop:selected, textview text:backdrop:selected, iconview:backdrop:selected,
calendar:backdrop:selected, textview text:backdrop:selected:focus, iconview:backdrop:selected:focus,
calendar:backdrop:focus:selected, textview text:backdrop:selected:hover, iconview:backdrop:selected:hover,
calendar:backdrop:hover:selected, textview text selection:backdrop, flowbox flowboxchild:backdrop:selected,
label selection:backdrop, spinbutton:not(.vertical) selection:backdrop, entry selection:backdrop,
modelbutton.flat:backdrop:selected, popover.background checkbutton:backdrop:selected, popover.background
radiobutton:backdrop:selected, .menuitem.button.flat:backdrop:selected, row.activatable:backdrop:selected,
.sidebar:backdrop:selected { background-color: gray; color: #fff; }
+.monospace { font-family: monospace; }
+
/********** frames * */
frame > border, .frame { border: 1px solid gray; padding: 0; }
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]