From 58755085975e3cda9c3653f45ca3cad98fc7a238 Mon Sep 17 00:00:00 2001 From: Alex Xu Date: Mon, 30 Dec 2024 20:16:11 -0800 Subject: [PATCH] fix dark mode (#794) --- gui/KCC.ui | 2 +- kindlecomicconverter/KCC_gui.py | 1 - kindlecomicconverter/KCC_rc.py | 2 +- kindlecomicconverter/KCC_ui.py | 2 +- 4 files changed, 3 insertions(+), 4 deletions(-) diff --git a/gui/KCC.ui b/gui/KCC.ui index 0097248..e9a3e2f 100644 --- a/gui/KCC.ui +++ b/gui/KCC.ui @@ -486,7 +486,7 @@ - QListWidget#jobList {background:#ffffff;background-image:url(:/Other/icons/list_background.png);background-position:center center;background-repeat:no-repeat;color:rgb(0,0,0);} + QAbstractItemView::NoSelection diff --git a/kindlecomicconverter/KCC_gui.py b/kindlecomicconverter/KCC_gui.py index c22611d..28056b7 100644 --- a/kindlecomicconverter/KCC_gui.py +++ b/kindlecomicconverter/KCC_gui.py @@ -689,7 +689,6 @@ class KCCGUI(KCC_ui.Ui_mainWindow): # We still fill original text field with transparent content to trigger creation of horizontal scrollbar item.setForeground(QtGui.QColor('transparent')) label = QtWidgets.QLabel(message) - label.setStyleSheet('background-image:url('');background-color:rgba(0,0,0,0);color:rgb(0,0,0);') label.setOpenExternalLinks(True) GUI.jobList.addItem(item) GUI.jobList.setItemWidget(item, label) diff --git a/kindlecomicconverter/KCC_rc.py b/kindlecomicconverter/KCC_rc.py index 157c719..a8bd894 100644 --- a/kindlecomicconverter/KCC_rc.py +++ b/kindlecomicconverter/KCC_rc.py @@ -11644,7 +11644,7 @@ qt_resource_struct = b"\ \x00\x00\x012\x00\x00\x00\x00\x00\x01\x00\x01yY\ \x00\x00\x01\x88;p\xbcI\ \x00\x00\x01\x94\x00\x00\x00\x00\x00\x01\x00\x01\xd2-\ -\x00\x00\x01\x94\x18\xb3\xe7\xf7\ +\x00\x00\x01\x94\x1a\xbb\xe8\xa7\ \x00\x00\x01z\x00\x00\x00\x00\x00\x01\x00\x01\x8c\xe6\ \x00\x00\x01\x88;p\xbcH\ \x00\x00\x01\x04\x00\x00\x00\x00\x00\x01\x00\x01LR\ diff --git a/kindlecomicconverter/KCC_ui.py b/kindlecomicconverter/KCC_ui.py index ab32565..14e5628 100644 --- a/kindlecomicconverter/KCC_ui.py +++ b/kindlecomicconverter/KCC_ui.py @@ -266,7 +266,7 @@ class Ui_mainWindow(object): self.jobList = QListWidget(self.centralWidget) self.jobList.setObjectName(u"jobList") - self.jobList.setStyleSheet(u"QListWidget#jobList {background:#ffffff;background-image:url(:/Other/icons/list_background.png);background-position:center center;background-repeat:no-repeat;color:rgb(0,0,0);}") + self.jobList.setStyleSheet(u"") self.jobList.setSelectionMode(QAbstractItemView.NoSelection) self.jobList.setVerticalScrollMode(QAbstractItemView.ScrollPerPixel) self.jobList.setHorizontalScrollMode(QAbstractItemView.ScrollPerPixel)