From: Daniel Boles Date: Thu, 29 Mar 2018 17:16:57 +0000 (+0100) Subject: HighContrast: Honour .monospace set by GtkTextView X-Git-Tag: archive/raspbian/4.4.1+ds1-2+rpi1^2~18^2~22^2~738 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=6ad33a274b0ee9a3857873cc9c244bfa6ce3dc6c;p=gtk4.git 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 --- diff --git a/gtk/theme/HighContrast/_common.scss b/gtk/theme/HighContrast/_common.scss index e0b0fac969..5e122a2d43 100644 --- a/gtk/theme/HighContrast/_common.scss +++ b/gtk/theme/HighContrast/_common.scss @@ -2581,6 +2581,7 @@ levelbar { } } + // catch all extend :) %selected_items { @@ -2589,6 +2590,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 e8455a9c1e..7c9f043707 100644 --- a/gtk/theme/HighContrast/gtk-contained-inverse.css +++ b/gtk/theme/HighContrast/gtk-contained-inverse.css @@ -1150,6 +1150,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, .frame { border: 1px solid gray; padding: 0; } diff --git a/gtk/theme/HighContrast/gtk-contained.css b/gtk/theme/HighContrast/gtk-contained.css index 5259b8e828..7f5dcd70b0 100644 --- a/gtk/theme/HighContrast/gtk-contained.css +++ b/gtk/theme/HighContrast/gtk-contained.css @@ -1156,6 +1156,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, .frame { border: 1px solid gray; padding: 0; }