From 3f217257c478e8e1d26f0f08d8f824f4508fcdee Mon Sep 17 00:00:00 2001 From: Youness Alaoui Date: Sat, 23 Feb 2019 15:21:31 -0500 Subject: [PATCH] Fix background of popup menus that was transparent (black) In the properties view, the context menu on the title line would be black making its content unreadable. Same in the filter line of the "Set Custom icon" window on the outline's context menu. --- manuskript/ui/views/outlineBasics.py | 2 +- manuskript/ui/views/propertiesView_ui.py | 2 +- manuskript/ui/views/propertiesView_ui.ui | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/manuskript/ui/views/outlineBasics.py b/manuskript/ui/views/outlineBasics.py index 2dfa9ff1..17fc0cf2 100644 --- a/manuskript/ui/views/outlineBasics.py +++ b/manuskript/ui/views/outlineBasics.py @@ -203,7 +203,7 @@ class outlineBasics(QAbstractItemView): txt = QLineEdit() txt.textChanged.connect(self.filterLstIcons) txt.setPlaceholderText("Filter icons") - txt.setStyleSheet("background: transparent; border: none;") + txt.setStyleSheet("QLineEdit { background: transparent; border: none; }") act = QWidgetAction(self.menuCustomIcons) act.setDefaultWidget(txt) self.menuCustomIcons.addAction(act) diff --git a/manuskript/ui/views/propertiesView_ui.py b/manuskript/ui/views/propertiesView_ui.py index e4846fae..29014672 100644 --- a/manuskript/ui/views/propertiesView_ui.py +++ b/manuskript/ui/views/propertiesView_ui.py @@ -20,7 +20,7 @@ class Ui_propertiesView(object): font.setBold(True) font.setWeight(75) self.txtTitle.setFont(font) - self.txtTitle.setStyleSheet("background:transparent;") + self.txtTitle.setStyleSheet("QLineEdit { background:transparent; }") self.txtTitle.setFrame(False) self.txtTitle.setObjectName("txtTitle") self.verticalLayout.addWidget(self.txtTitle) diff --git a/manuskript/ui/views/propertiesView_ui.ui b/manuskript/ui/views/propertiesView_ui.ui index 4e1549fe..9f7d6019 100644 --- a/manuskript/ui/views/propertiesView_ui.ui +++ b/manuskript/ui/views/propertiesView_ui.ui @@ -35,7 +35,7 @@ - background:transparent; + QLineEdit { background:transparent; } false