π Changes to the color scheme are not applied in real-time
Description
When we are changing the color scheme for a particular type of text, it does not change until we switch to another theme and switch it back.
To Reproduce
- Open
CodeEdit - Open a file with syntax highlighting
- Go to
Settings,Themes - Change the color scheme of a type of text (e.g.
Keywords) - Go back to the editor, the color doesnβt change
- Change to another theme
- Change back the theme
- The changed color is now applied
https://user-images.githubusercontent.com/72877496/212936994-db072044-9ba6-44e9-b726-4d652b031cd2.mp4
Expected behavior
When we change the color scheme, it should instantly apply.
Version information
CodeEdit: 78bf33e3b87b5d9ed04317e2e01936c4fd190571 macOS: 13.1 (22C65) Xcode: 14.1 (14B47b)
Additional context
N/A
Nice find! Color values should really be updating in real-time as the user changes them so they can get instant feedback.
I was looking at these problems, and from what I can tell, there's just no function taking charge of the color scheme changes, so, the changes on the theme won't be applied to selectedTheme variable, so the only way to apply the changes has to change the theme and change it back (as the color value is applied, but the selectedTheme should be reloaded).
@Cubik65536- font updates are being handled in a PR that just merged into CodeEditTextView: https://github.com/CodeEditApp/CodeEditTextView/pull/122
You're right about the live color scheme changes needing some additional love to address..
@Cubik65536 - can you modify the scope of this issue to remove the concern about fonts, to keep things tidy / separate?
@Cubik65536 - can you modify the scope of this issue to remove the concern about fonts, to keep things tidy / separate?
I will do it later
@Cubik65536 - can you modify the scope of this issue to remove the concern about fonts, to keep things tidy / separate?
I did the modification and removed the concern about fonts.
@austincondiff - this rhymes with some of the stuff I did around line wrapping / misc text editor prefs. would be happy to nab this one.
@ben-p-commits what is the status of this one?