View Single Post
Old 04-09-2024, 06:22 PM   #18
KevinH
Sigil Developer
KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.
 
Posts: 8,893
Karma: 6120478
Join Date: Nov 2009
Device: many
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.
KevinH is offline   Reply With Quote