NIcon new widget to simplify icons display
This commit is contained in:
parent
9bb9e7e015
commit
ac8b4793d8
21 changed files with 64 additions and 127 deletions
|
|
@ -37,9 +37,8 @@ NBox {
|
|||
Layout.fillHeight: true
|
||||
}
|
||||
|
||||
NText {
|
||||
NIcon {
|
||||
text: "album"
|
||||
font.family: "Material Symbols Outlined"
|
||||
font.pointSize: Style.fontSizeXXL * 2.5 * scaling
|
||||
color: Color.mPrimary
|
||||
Layout.alignment: Qt.AlignHCenter
|
||||
|
|
@ -93,11 +92,10 @@ NBox {
|
|||
elide: Text.ElideRight
|
||||
}
|
||||
|
||||
indicator: Text {
|
||||
indicator: NIcon {
|
||||
x: playerSelector.width - width
|
||||
y: playerSelector.topPadding + (playerSelector.availableHeight - height) / 2
|
||||
text: "arrow_drop_down"
|
||||
font.family: "Material Symbols Outlined"
|
||||
font.pointSize: Style.fontSizeXL * scaling
|
||||
color: Color.mOnSurface
|
||||
horizontalAlignment: Text.AlignRight
|
||||
|
|
@ -180,13 +178,12 @@ NBox {
|
|||
}
|
||||
|
||||
// Fallback icon when no album art available
|
||||
NText {
|
||||
anchors.centerIn: parent
|
||||
NIcon {
|
||||
text: "album"
|
||||
color: Color.mPrimary
|
||||
font.family: "Material Symbols Outlined"
|
||||
font.pointSize: Style.fontSizeLarge * 12 * scaling
|
||||
visible: !trackArt.visible
|
||||
anchors.centerIn: parent
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue