Add icons to sidebar entries and cleanup design
This commit is contained in:
@@ -55,7 +55,12 @@ class ProviderImageProvider(QQuickImageProvider):
|
||||
print(p_str)
|
||||
print(size)
|
||||
|
||||
img = QImage.fromData(self._icon_data.encode("utf-8"))
|
||||
# img = QImage.fromData(self._icon_data.encode("utf-8"))
|
||||
import base64
|
||||
|
||||
data: bytes = base64.b64decode(self._icon_data)
|
||||
img = QImage.fromData(data)
|
||||
# img = QImage.fromData(self._icon_data.encode("utf-8"))
|
||||
|
||||
# img = QImage(300, 300, QImage.Format_RGBA8888)
|
||||
# img.fill(Qt.red)
|
||||
|
||||
Reference in New Issue
Block a user