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():
|
if self.isChecked():
|
||||||
painter.setBrush(palette.highlight())
|
painter.setBrush(palette.highlight())
|
||||||
painter.setOpacity(0.35)
|
painter.setOpacity(0.8)
|
||||||
painter.drawRoundedRect(0, 0, width, height, 4, 4)
|
painter.drawRoundedRect(0, 0, width, height, 4, 4)
|
||||||
textCol = palette.highlightedText().color()
|
textCol = palette.highlightedText().color()
|
||||||
else:
|
else:
|
||||||
|
|||||||
@@ -419,7 +419,7 @@ class _ProjectListItem(QStyledItemDelegate):
|
|||||||
painter.save()
|
painter.save()
|
||||||
if opt.state & QtSelected == QtSelected:
|
if opt.state & QtSelected == QtSelected:
|
||||||
painter.setOpacity(0.25)
|
painter.setOpacity(0.25)
|
||||||
painter.fillRect(rect, QApplication.palette().highlight())
|
painter.fillRect(rect, QApplication.palette().text())
|
||||||
painter.setOpacity(1.0)
|
painter.setOpacity(1.0)
|
||||||
|
|
||||||
painter.drawPixmap(2, rect.top() + 6, self._icon)
|
painter.drawPixmap(2, rect.top() + 6, self._icon)
|
||||||
|
|||||||
Reference in New Issue
Block a user