View Single Post
Old 04-15-2024, 11:52 AM   #66
DiapDealer
Grand Sorcerer
DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.
 
DiapDealer's Avatar
 
Posts: 28,709
Karma: 205039118
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
Quote:
Originally Posted by KevinH View Post
@DiapDealer, if you agree, and get a free moment would you move the tweak drag distance to an environment variable and add the double width cursor (and SettingsStore stuff)?
Will do. I might be a little busy this week, but I will see what I can do.

For the record, I made some quick changes to see what the default windows qt dark mode would like like (starting with Qt6.5). It doesn't actually completely suck!

If anyone would like to play, I'm including the down and dirty patch (only a handful of lines changed) to main.cpp to allow it to work. There's a mass of nasty nested ifdefs there that I didn't feel like untangling just to test it out.

Note that it's required to launch sigil with the "-style fusion" command line option to get it to work. Might be that a few color tweaks here and there would make it go.

Code:
--- a/src/main.cpp	Mon Apr 15 11:32:45 2024
+++ b/src/main.cpp	Mon Apr 15 11:17:06 2024
@@ -481,7 +481,7 @@
             }
         }
         if (!darkmode_arg_exists) {
-            current_platform_args.append("darkmode=1");
+            current_platform_args.append("darkmode=2");
         }
     }
 #endif
@@ -599,12 +599,14 @@
 #else
         if (Utility::WindowsShouldUseDarkMode()) {
             // Apply custom dark style
-            app.setStyle(new SigilDarkStyle);
+            //app.setStyle(new SigilDarkStyle);
+            ;
 #if QT_VERSION <= QT_VERSION_CHECK(5, 15, 0) || QT_VERSION >= QT_VERSION_CHECK(6, 5, 0)
             // At this point, I have no idea where along the 5.15.x series this
             // being present will break dark mode. I only know the first official
             // official windows version that uses 5.15.9 needs it to be gone.
-            app.setPalette(QApplication::style()->standardPalette());
+            // app.setPalette(QApplication::style()->standardPalette());
+            ;
 #endif
         }
 #endif

Last edited by DiapDealer; 04-15-2024 at 12:52 PM.
DiapDealer is offline   Reply With Quote