Okay, I think I have a way to make it all work.
I have temporarily hard coded it to use an environment variable:
QString focus_highlight = Utility::GetEnvironmentVar("SIGIL_HIGHLIGHT_FOCUS_ WIDGET");
export SIGIL_HIGHLIGHT_FOCUS_WIDGET=1
will turn it on in Settings
unset SIGIL_HIGHLIGHT_FOCUS_WIDGET
will turn it off. Note: these are checked only once at startup.
If people like it then we can fart around with the horrible Preferences code and remove the need to use an Environment variable.
All just pushed to master now.
Last edited by KevinH; 04-09-2024 at 06:49 PM.
|