Add support for rendering provider icon in sidebar

This commit is contained in:
2022-08-30 01:57:01 -04:00
parent e7bedd4048
commit 57750046f5
3 changed files with 40 additions and 3 deletions
+6 -2
View File
@@ -1,7 +1,7 @@
import QtQuick 2.12
Item {
property string name
property var provider
property bool selected: false
width: parent.width * 0.9
@@ -19,9 +19,13 @@ Item {
height: parent.height
width: parent.width * 0.02
}
Image {
source: provider.logo
anchors.verticalCenter: parent.verticalCenter
}
Text {
font.pointSize: 15
text: name
text: provider.name
color: selected ? "black" : "white"
anchors.verticalCenter: parent.verticalCenter
}