Tweak the opacity of paged sidebar buttons and welcome dialog list
This commit is contained in:
@@ -156,7 +156,7 @@ class _PagedToolButton(QToolButton):
|
||||
|
||||
if self.isChecked():
|
||||
painter.setBrush(palette.highlight())
|
||||
painter.setOpacity(0.35)
|
||||
painter.setOpacity(0.8)
|
||||
painter.drawRoundedRect(0, 0, width, height, 4, 4)
|
||||
textCol = palette.highlightedText().color()
|
||||
else:
|
||||
|
||||
@@ -419,7 +419,7 @@ class _ProjectListItem(QStyledItemDelegate):
|
||||
painter.save()
|
||||
if opt.state & QtSelected == QtSelected:
|
||||
painter.setOpacity(0.25)
|
||||
painter.fillRect(rect, QApplication.palette().highlight())
|
||||
painter.fillRect(rect, QApplication.palette().text())
|
||||
painter.setOpacity(1.0)
|
||||
|
||||
painter.drawPixmap(2, rect.top() + 6, self._icon)
|
||||
|
||||
Reference in New Issue
Block a user