mirror of
https://code.videolan.org/videolan/vlc
synced 2024-10-03 01:31:53 +02:00
qml: add fallback widget for player toolbar
This commit is contained in:
parent
207fcd9205
commit
4413d1e1ef
@ -104,9 +104,35 @@ Item{
|
||||
case ControlListModel.PLAYER_SWITCH_BUTTON: return playerSwitchBtnDelegate
|
||||
case ControlListModel.ARTWORK_INFO: return artworkInfoDelegate
|
||||
case ControlListModel.PLAYBACK_SPEED_BUTTON: return playbackSpeedButtonDelegate
|
||||
default:
|
||||
console.log("button delegate id " + inpID + " doesn't exists")
|
||||
return fallbackDelegate
|
||||
}
|
||||
}
|
||||
|
||||
Component {
|
||||
id: fallbackDelegate
|
||||
|
||||
Widgets.AnimatedBackground {
|
||||
implicitWidth: fbLabel.width + VLCStyle.focus_border * 2
|
||||
implicitHeight: fbLabel.height + VLCStyle.focus_border * 2
|
||||
|
||||
activeBorderColor: colors.bgFocus
|
||||
|
||||
property bool paintOnly: false
|
||||
property VLCColors colors: VLCStyle.colors
|
||||
|
||||
Widgets.MenuLabel {
|
||||
id: fbLabel
|
||||
|
||||
anchors.centerIn: parent
|
||||
|
||||
text: i18n.qtr("WIDGET\nNOT\nFOUND")
|
||||
horizontalAlignment: Text.AlignHCenter
|
||||
|
||||
color: colors.text
|
||||
}
|
||||
}
|
||||
console.log("button delegate id " + inpID + " doesn't exists")
|
||||
return spacerDelegate
|
||||
}
|
||||
|
||||
Component{
|
||||
|
Loading…
Reference in New Issue
Block a user