File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -202,23 +202,6 @@ def setup_resources():
202202 Gdk .Screen .get_default (), provider ,
203203 Gtk .STYLE_PROVIDER_PRIORITY_APPLICATION )
204204
205- # This is a hack to get the LinkMap to use Gtk.TextView background
206- # colour. Ideally we'd have a symbolic colour, or could more easily
207- # do this on the widget itself.
208- textview = Gtk .TextView ()
209- textview_context = textview .get_style_context ()
210- textview_context .save ()
211- textview_context .set_state (Gtk .StateFlags .NORMAL )
212- bg_colour = textview_context .get_background_color (
213- textview_context .get_state ())
214- textview_context .restore ()
215- linkmap_css = "link-map { background-color: %s; }" % bg_colour .to_string ()
216- linkmap_provider = Gtk .CssProvider ()
217- linkmap_provider .load_from_data (linkmap_css )
218- Gtk .StyleContext .add_provider_for_screen (
219- Gdk .Screen .get_default (), linkmap_provider ,
220- Gtk .STYLE_PROVIDER_PRIORITY_APPLICATION )
221-
222205 style_path = os .path .join (meld .conf .DATADIR , "styles" )
223206 GtkSource .StyleSchemeManager .get_default ().append_search_path (style_path )
224207
Original file line number Diff line number Diff line change @@ -14,6 +14,7 @@ link-map {
1414 border-width : 0 0 1px 0 ;
1515 border-style : solid;
1616 border-color: @borders ;
17+ background-color: @theme_base_color ;
1718}
1819
1920.meld-vc-console-pane {
You can’t perform that action at this time.
0 commit comments