mirror of
https://code.videolan.org/videolan/vlc
synced 2024-07-29 11:58:24 +02:00
qml: use AnimatedBackground in Artist list
This commit is contained in:
parent
712e5f2dc0
commit
e0e7911a05
@ -138,14 +138,16 @@ FocusScope {
|
|||||||
topPadding: VLCStyle.margin_xlarge
|
topPadding: VLCStyle.margin_xlarge
|
||||||
}
|
}
|
||||||
|
|
||||||
delegate: Rectangle {
|
delegate: Widgets.AnimatedBackground {
|
||||||
id: item
|
id: item
|
||||||
|
|
||||||
property bool _highlighted: mouseArea.containsMouse || this.activeFocus
|
property bool _highlighted: mouseArea.containsMouse || this.activeFocus
|
||||||
|
|
||||||
height: VLCStyle.play_cover_small + (VLCStyle.margin_xsmall * 2)
|
height: VLCStyle.play_cover_small + (VLCStyle.margin_xsmall * 2)
|
||||||
width: artistList.width
|
width: artistList.width
|
||||||
color: _highlighted ? VLCStyle.colors.bgHover : "transparent"
|
active: false
|
||||||
|
backgroundColor: _highlighted ? VLCStyle.colors.bgHover : "transparent"
|
||||||
|
foregroundColor: _highlighted ? VLCStyle.colors.bgHoverText : VLCStyle.colors.text
|
||||||
|
|
||||||
Widgets.CurrentIndicator {
|
Widgets.CurrentIndicator {
|
||||||
visible: item.ListView.isCurrentItem
|
visible: item.ListView.isCurrentItem
|
||||||
@ -180,7 +182,7 @@ FocusScope {
|
|||||||
|
|
||||||
Widgets.ListLabel {
|
Widgets.ListLabel {
|
||||||
text: model.name || i18n.qtr("Unknown artist")
|
text: model.name || i18n.qtr("Unknown artist")
|
||||||
color: _highlighted ? VLCStyle.colors.bgHoverText : VLCStyle.colors.text
|
color: item.foregroundColor
|
||||||
|
|
||||||
Layout.fillWidth: true
|
Layout.fillWidth: true
|
||||||
Layout.fillHeight: true
|
Layout.fillHeight: true
|
||||||
|
Loading…
Reference in New Issue
Block a user