View Single Post
Old 08-21-2025, 10:18 AM   #33
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,906
Karma: 6120478
Join Date: Nov 2009
Device: many
Quote:
Originally Posted by BeckyEbook View Post
I still see SIGIL_USE_COLORSCHEME_CHANGED without a description. Shall we add it?
Yes we need to add it. FWIW, it is really a Linux Only env var.

Code:
#if QT_VERSION >= QT_VERSION_CHECK(6,5,0)
#if defined(Q_OS_WIN32) || defined(Q_OS_MAC)
    m_UseAppPaletteEvent=false;
#else 
    if (qEnvironmentVariableIsSet("SIGIL_USE_COLORSCHEME_CHANGED")) m_UseAppPaletteEvent=false;
#endif
#endif
Neither Mac nor Windows use this as it is default for them to use the Qt ColorScheme Changed signal to know when the user has charged from a dark to light scheme or visa-versa.

But this signal really only works on very up to date Linux distributions like an Arch or Manjaro based KDE Plasma 6.3 and later and for some other desktops.

Our old way of looking for a palette change event in MainApplication still works and all Linux boxes default to that method unless the user overrides it with this environment variable.

I use it since I know my Manjaro Linux box with the latest KDE desktop actually works with it but most Linux boxes will probably not.

I will add it to the sigil-user-guide.

Last edited by KevinH; 08-21-2025 at 11:40 AM.
KevinH is offline   Reply With Quote