[vlc-commits] qml: add list/grid button on topbar

Abel Tesfaye git at videolan.org
Tue Aug 20 18:21:28 CEST 2019


vlc | branch: master | Abel Tesfaye <Abeltesfaye45 at gmail.com> | Thu Aug  1 15:35:41 2019 +0300| [3acdd098762218149cad4e90de78ab73b39904b3] | committer: Jean-Baptiste Kempf

qml: add list/grid button on topbar

Signed-off-by: Jean-Baptiste Kempf <jb at videolan.org>

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=3acdd098762218149cad4e90de78ab73b39904b3
---

 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
 



More information about the vlc-commits mailing list