![]() |
#31 |
Sigil Developer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() 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 |
![]() |
![]() |
![]() |
#32 |
Guru
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 866
Karma: 3501146
Join Date: Jan 2017
Location: Poland
Device: Various
|
I still see SIGIL_USE_COLORSCHEME_CHANGED without a description. Shall we add it?
|
![]() |
![]() |
Advert | |
|
![]() |
#33 | |
Sigil Developer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 8,883
Karma: 6120478
Join Date: Nov 2009
Device: many
|
Quote:
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 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. |
|
![]() |
![]() |
![]() |
#34 |
Sigil Developer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() 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> |
![]() |
![]() |
![]() |
#35 |
Guru
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 866
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.
|
![]() |
![]() |
Advert | |
|
![]() |
#36 |
Sigil Developer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 8,883
Karma: 6120478
Join Date: Nov 2009
Device: many
|
|
![]() |
![]() |
![]() |
|
![]() |
||||
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 |