Closed marmeladapk closed 1 month ago
I can confirm this behavior, but I bet it’s actually caused by the Solarized highlighting themes themselves:
https://github.com/elementary/os-patches/blob/gtksourceview3-bionic-patched/data/styles/solarized-dark.xml https://github.com/elementary/os-patches/blob/gtksourceview3-bionic-patched/data/styles/solarized-light.xml
Closing because Code now uses elementary-light and elementary-dark styles instead of solarized ones, which can highlight diffs nicely:
You'll still face this behavior if you set solarized-light
or solarized-dark
to the /io/elementary/code/settings/style-scheme
gschema key directly through gsettings command or dconf-editor, but that operation is not recommended/supported officially. Also, the solarized themes comes with gtksourceview >= 5.5.0 has been updated to highlight diffs, so this corner case should be fixed anyways once Code migrate to gtksourceview 5 (which means migration to GTK 4).
Prerequisites
Describe the bug
Diff code highlight highlights only in high contrast theme.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
Highlight should work with all themes.
Screenshots or screen recordings
Logs
Platform Information