Menu

#131 Windows 10 dark mode support

Git
closed
None
5
2023-09-06
2023-09-02
Dan W
No

Windows 10 has a dark mode. I think MComix should use a dark interface when it is enabled.

Discussion

  • Oddegamra

    Oddegamra - 2023-09-05

    It would appear that activating Dark mode using the default Adwaita theme is as simple as modifying the default Gtk settings when starting up.

    settings = Gtk.Settings.get_default()
    settings.set_property('gtk-application-prefer-dark-theme', True)
    

    Probably before the first window is constructed, though. From a quick search, the Windows registry has a key AppsUseLightTheme in HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Themes\Personalize that is set to 0 if Dark mode is enabled. This could be queried during start-up and the settings value adjusted accordingly.

     
  • Oddegamra

    Oddegamra - 2023-09-06
    • status: open --> closed
    • assigned_to: Oddegamra
     
  • Oddegamra

    Oddegamra - 2023-09-06

    I've committed changes to automatically activate the dark theme on Windows when it is set as default in Windows theme settings.

     
    • Dan W

      Dan W - 2023-09-06

      Thank you!

       

Log in to post a comment.

MongoDB Logo MongoDB