[vlc-commits] [Git][videolan/vlc][master] qml/PlaylistListView: Fix default message readability
Hugo Beauzée-Luyssen (@chouquette)
gitlab at videolan.org
Thu Oct 14 13:39:15 UTC 2021
Hugo Beauzée-Luyssen pushed to branch master at VideoLAN / VLC
Commits:
117283ed by Benjamin Arnaud at 2021-10-14T13:25:20+00:00
qml/PlaylistListView: Fix default message readability
fix #25571
- - - - -
1 changed file:
- modules/gui/qt/playlist/qml/PlaylistListView.qml
Changes:
=====================================
modules/gui/qt/playlist/qml/PlaylistListView.qml
=====================================
@@ -614,38 +614,55 @@ Control {
Column {
id: noContentInfoColumn
+
anchors.centerIn: parent
- visible: model.count === 0 && !listView.footerItem.firstItemIndicatorVisible
+
+ visible: (model.count === 0 && !listView.footerItem.firstItemIndicatorVisible)
+
+ opacity: (listView.activeFocus) ? 1.0 : 0.4
Widgets.IconLabel {
- font.pixelSize: VLCStyle.dp(48, VLCStyle.scale)
+ id: label
+
anchors.horizontalCenter: parent.horizontalCenter
+
horizontalAlignment: Text.AlignHCenter
verticalAlignment: Text.AlignVCenter
+
text: VLCIcons.playlist
- color: (listView.activeFocus) ? colors.accent : colors.text
- opacity: 0.3
+
+ color: (listView.activeFocus) ? colors.bgFocus
+ : colors.text
+
+ font.pixelSize: VLCStyle.dp(48, VLCStyle.scale)
}
Label {
- anchors.horizontalCenter: parent.horizontalCenter
anchors.topMargin: VLCStyle.margin_xlarge
- text: i18n.qtr("No content yet")
+
+ anchors.horizontalCenter: parent.horizontalCenter
+
horizontalAlignment: Text.AlignHCenter
verticalAlignment: Text.AlignVCenter
+
+ text: i18n.qtr("No content yet")
+
+ color: label.color
+
font.pixelSize: VLCStyle.fontSize_xxlarge
- color: (listView.activeFocus) ? colors.accent : colors.text
- opacity: 0.4
}
Label {
anchors.topMargin: VLCStyle.margin_normal
- text: i18n.qtr("Drag & Drop some content here!")
+
horizontalAlignment: Text.AlignHCenter
verticalAlignment: Text.AlignVCenter
+
+ text: i18n.qtr("Drag & Drop some content here!")
+
+ color: label.color
+
font.pixelSize: VLCStyle.fontSize_large
- color: (listView.activeFocus) ? colors.accent : colors.text
- opacity: 0.4
}
}
}
View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/117283ed4709d014f3b0b8b033bf1d161587d8c5
--
View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/117283ed4709d014f3b0b8b033bf1d161587d8c5
You're receiving this email because of your account on code.videolan.org.
More information about the vlc-commits
mailing list