[vlc-devel] [PATCH 13/14] qml: add list/grid button on topbar

Abel Tesfaye abeltesfaye45 at gmail.com
Tue Aug 6 11:18:47 CEST 2019


From: Abel Tesfaye <Abeltesfaye45 at gmail.com>

---
 modules/gui/qt/qml/BannerSources.qml | 11 ++++++++++-
 1 file changed, 10 insertions(+), 1 deletion(-)

diff --git a/modules/gui/qt/qml/BannerSources.qml b/modules/gui/qt/qml/BannerSources.qml
index 9cac3aef95..d8b7ba4df8 100644
--- a/modules/gui/qt/qml/BannerSources.qml
+++ b/modules/gui/qt/qml/BannerSources.qml
@@ -227,12 +227,21 @@ Utils.NavigableFocusScope {
                     size: VLCStyle.icon_normal
                     Layout.minimumWidth: width
                     text: VLCIcons.topbar_next
-                    KeyNavigation.right: bar
+                    KeyNavigation.right: list_grid_btn
                     KeyNavigation.up: buttonView
                     onClicked: history.next(History.Go)
                     enabled: !history.nextEmpty
                 }
 
+                Utils.IconToolButton {
+                    id: list_grid_btn
+                    size: VLCStyle.icon_normal
+                    text: medialib.gridView ? VLCIcons.list : VLCIcons.grid
+                    onClicked: medialib.gridView = !medialib.gridView
+                    KeyNavigation.right: bar
+                    KeyNavigation.up: buttonView
+                }
+
                 TabBar {
                     id: bar
 
-- 
2.21.0



More information about the vlc-devel mailing list