View Single Post
Old 03-19-2023, 01:30 PM   #880
ownedbycats
Custom User Title
ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.
 
ownedbycats's Avatar
 
Posts: 11,062
Karma: 75568269
Join Date: Oct 2018
Location: Canada
Device: Kobo Libra H2O, formerly Aura HD
To test, I changed the lines to

Code:
    def set_text_background_color(self):
        if not QApplication.instance().is_dark_theme:
            self.plain_qtextedit.setTextBackgroundColor(color_white)
            self.markdown_qtextedit.setTextBackgroundColor(color_white)
            self.html_qtextbrowser.setTextBackgroundColor(color_white)
It fixed it

EDIT: wrong screenshot, hang on

EDIT: Replaced screenshot

ANOTHER EDIT: Additional testing: It also works as expected using Calibre in System default with Windows in dark mode.
Attached Thumbnails
Click image for larger version

Name:	2023-03-19 14_35_24-JS+ GUI Tool_  Notes Viewer.png
Views:	314
Size:	34.2 KB
ID:	200486  

Last edited by ownedbycats; 03-19-2023 at 01:39 PM.
ownedbycats is offline   Reply With Quote