Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Sigil

Notices

Reply
 
Thread Tools Search this Thread
Old 08-21-2025, 09:37 AM   #31
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,883
Karma: 6120478
Join Date: Nov 2009
Device: many
And since there are a number of environment variables used in PageEdit as well, I will be borrowing this new approach from Sigil and bring it to PageEdit.

Unfortunately PageEdit has no plugin capability so no gui here. But for MacOS users editing a line in a text file is so much easier than having to change a gui's launchctl, then rebooting.


Here are the PageEdit environment variables that I have found so far:

PAGEEDIT_DISABLE_NFC_NORMALIZATION
PAGEEDIT_USE_COLORSCHEME_CHANGED
PAGEEDIT_DEBUG_LOGFILE
QTWEBENGINE_CHROMIUM_FLAGS
PAGEEDIT_DISABLE_CURSOR_BLINK
PAGEEDIT_ENABLE_WORD_PASTE_CLEANUP
PAGEEDIT_PREFS_DIR
QTWEBENGINE_DICTIONARIES_PATH
PAGEEDIT_USES_DARK_MODE
KevinH is online now   Reply With Quote
Old 08-21-2025, 09:55 AM   #32
BeckyEbook
Guru
BeckyEbook ought to be getting tired of karma fortunes by now.BeckyEbook ought to be getting tired of karma fortunes by now.BeckyEbook ought to be getting tired of karma fortunes by now.BeckyEbook ought to be getting tired of karma fortunes by now.BeckyEbook ought to be getting tired of karma fortunes by now.BeckyEbook ought to be getting tired of karma fortunes by now.BeckyEbook ought to be getting tired of karma fortunes by now.BeckyEbook ought to be getting tired of karma fortunes by now.BeckyEbook ought to be getting tired of karma fortunes by now.BeckyEbook ought to be getting tired of karma fortunes by now.BeckyEbook ought to be getting tired of karma fortunes by now.
 
BeckyEbook's Avatar
 
Posts: 867
Karma: 3501146
Join Date: Jan 2017
Location: Poland
Device: Various
I still see SIGIL_USE_COLORSCHEME_CHANGED without a description. Shall we add it?
BeckyEbook is online now   Reply With Quote
Advert
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,883
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 online now   Reply With Quote
Old 08-21-2025, 10:27 AM   #34
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,883
Karma: 6120478
Join Date: Nov 2009
Device: many
Here is the snippet I just added to the User Guide.

Code:
<li><p><span class="listheading">SIGIL_USE_COLORSCHEME_CHANGED</span> 
This environment Variable is <b>Linux Only</b>. Setting this tells Sigil that your 
Linux desktop works with Qt's built-in QStyleHints::colorSchemeChanged signal 
for detecting when your desktop theme changes from light to dark and visa-versa.
</p></li>
KevinH is online now   Reply With Quote
Old 08-21-2025, 10:42 AM   #35
BeckyEbook
Guru
BeckyEbook ought to be getting tired of karma fortunes by now.BeckyEbook ought to be getting tired of karma fortunes by now.BeckyEbook ought to be getting tired of karma fortunes by now.BeckyEbook ought to be getting tired of karma fortunes by now.BeckyEbook ought to be getting tired of karma fortunes by now.BeckyEbook ought to be getting tired of karma fortunes by now.BeckyEbook ought to be getting tired of karma fortunes by now.BeckyEbook ought to be getting tired of karma fortunes by now.BeckyEbook ought to be getting tired of karma fortunes by now.BeckyEbook ought to be getting tired of karma fortunes by now.BeckyEbook ought to be getting tired of karma fortunes by now.
 
BeckyEbook's Avatar
 
Posts: 867
Karma: 3501146
Join Date: Jan 2017
Location: Poland
Device: Various
OK, I've got everything ready. Today I'll publish the official version of the plugin in a new thread.
BeckyEbook is online now   Reply With Quote
Advert
Old 08-21-2025, 10:49 AM   #36
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,883
Karma: 6120478
Join Date: Nov 2009
Device: many
Quote:
Originally Posted by BeckyEbook View Post
OK, I've got everything ready. Today I'll publish the official version of the plugin in a new thread.
Thank you!
KevinH is online now   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
sigil does'nt load txt-files ikkethuis Sigil 1 01-11-2021 01:46 PM
Filename to File Tag and Setting File Dorectory anonymust Library Management 3 11-07-2015 07:42 PM
shebang problem "/usr/bin/env python2" klonuo Development 2 10-21-2011 11:08 AM
How can i convert HTML or txt file to EPUB file ? guguqiaqia ePub 7 05-28-2010 09:15 PM
Problem & fix to Windows dev env setup ShellShock Calibre 6 12-07-2008 10:13 AM


All times are GMT -4. The time now is 11:38 AM.


MobileRead.com is a privately owned, operated and funded community.