Commit d5c8eb9d authored by Luci Stanescu's avatar Luci Stanescu

Fixed StreamButton alternate disabled icon

parent 1771339e
......@@ -87,6 +87,11 @@ class StreamButton(QToolButton):
for size in normal_sizes + selected_additional_sizes:
pixmap = icon.pixmap(size, QIcon.Selected, QIcon.On)
self.alternate_icon.addPixmap(pixmap, QIcon.Normal, QIcon.On)
disabled_sizes = icon.availableSizes(QIcon.Disabled, QIcon.On)
selected_additional_sizes = [size for size in selected_sizes if size not in disabled_sizes]
for size in disabled_sizes + selected_additional_sizes:
pixmap = icon.pixmap(size, QIcon.Selected, QIcon.On)
self.alternate_icon.addPixmap(pixmap, QIcon.Disabled, QIcon.On)
super(StreamButton, self).setIcon(icon)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment