View Single Post
Old 08-11-2025, 01:33 PM   #580
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: 854
Karma: 3341026
Join Date: Jan 2017
Location: Poland
Device: Various
@wrCisco: If you import iswindows:

Code:
from plugin_utils import PluginApplication, QtWidgets, QtCore, Qt, iswindows
…and then an additional attribute:
Code:
    mdp = True if iswindows else False
    app = PluginApplication([], bk, app_icon=PLUGIN_ICON, match_dark_palette=mdp)

then under Windows windows will automatically support dark mode.

Recommended!

Click image for larger version

Name:	sigil-wrcisco-dark.png
Views:	21
Size:	64.0 KB
ID:	217446

EDIT: On the other hand, since your screenshot was already in dark mode you probably already did it, only there is an older version on github.

Last edited by BeckyEbook; 08-12-2025 at 11:04 AM.
BeckyEbook is online now   Reply With Quote