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.
This commit is contained in:
Youness Alaoui 2019-02-23 15:21:31 -05:00 committed by Curtis Gedak
parent 4fdacc24f7
commit 3f217257c4
3 changed files with 3 additions and 3 deletions

View file

@ -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)

View file

@ -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)

View file

@ -35,7 +35,7 @@
</font>
</property>
<property name="styleSheet">
<string notr="true">background:transparent;</string>
<string notr="true">QLineEdit { background:transparent; }</string>
</property>
<property name="frame">
<bool>false</bool>