From be3046d73dccd4daac18261f364951a1a2e91de6 Mon Sep 17 00:00:00 2001 From: Clement Lefebvre Date: Thu, 4 Jul 2024 18:08:57 +0100 Subject: [PATCH] gtksourceview: Provide a better default style Tango has two issues when the GTK theme is dark: - Starting with Mint 22, its line numbers column is hardcoded to grey and looks way too bright. - Comments are unreadable on a dark bg. Fixes https://github.com/linuxmint/mint22-beta/issues/60 Helps with https://github.com/linuxmint/mint22-beta/issues/5 --- data/meson.build | 5 ++ data/org.x.editor.gschema.xml.in | 2 +- data/xed.xml | 123 +++++++++++++++++++++++++++++++ debian/xed-common.install | 1 + 4 files changed, 130 insertions(+), 1 deletion(-) create mode 100644 data/xed.xml diff --git a/data/meson.build b/data/meson.build index 264c6ce1..15656551 100644 --- a/data/meson.build +++ b/data/meson.build @@ -40,3 +40,8 @@ install_data( 'xed.1', install_dir : join_paths(get_option('prefix'), get_option('mandir'), 'man1') ) + +install_data( + 'xed.xml', + install_dir: join_paths(datadir, 'gtksourceview-4', 'styles') +) diff --git a/data/org.x.editor.gschema.xml.in b/data/org.x.editor.gschema.xml.in index 8797612e..17a16269 100644 --- a/data/org.x.editor.gschema.xml.in +++ b/data/org.x.editor.gschema.xml.in @@ -48,7 +48,7 @@ - 'tango' + 'xed' Style Scheme The ID of a GtkSourceView Style Scheme used to color the text. diff --git a/data/xed.xml b/data/xed.xml new file mode 100644 index 00000000..40537f21 --- /dev/null +++ b/data/xed.xml @@ -0,0 +1,123 @@ + + + Xed Team + <_description>The default color scheme. + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +