[vlc-devel] [PATCH 09/18] qml: use VLCStyle's banner_icon_size constant for icon size in BannerSources

Prince Gupta guptaprince8832 at gmail.com
Thu Aug 20 14:15:32 CEST 2020


---
 modules/gui/qt/maininterface/qml/BannerSources.qml | 9 +++++----
 modules/gui/qt/widgets/qml/SearchBox.qml           | 2 +-
 modules/gui/qt/widgets/qml/SortControl.qml         | 2 +-
 3 files changed, 7 insertions(+), 6 deletions(-)

diff --git a/modules/gui/qt/maininterface/qml/BannerSources.qml b/modules/gui/qt/maininterface/qml/BannerSources.qml
index 0ff69e38b2..00b9952e57 100644
--- a/modules/gui/qt/maininterface/qml/BannerSources.qml
+++ b/modules/gui/qt/maininterface/qml/BannerSources.qml
@@ -144,7 +144,7 @@ Widgets.NavigableFocusScope {
 
                         Widgets.IconToolButton {
                              id: history_back
-                             size: VLCStyle.icon_normal
+                             size: VLCStyle.banner_icon_size
                              iconText: VLCIcons.topbar_previous
                              text: i18n.qtr("Previous")
                              height: localToolbar.height
@@ -154,11 +154,12 @@ Widgets.NavigableFocusScope {
 
                         Widgets.IconToolButton {
                             id: list_grid_btn
-                            size: VLCStyle.icon_normal
+                            size: VLCStyle.banner_icon_size
                             iconText: medialib.gridView ? VLCIcons.list : VLCIcons.grid
                             text: i18n.qtr("List/Grid")
                             height: localToolbar.height
                             onClicked: medialib.gridView = !medialib.gridView
+                            enabled: true
                         }
 
                         Widgets.SortControl {
@@ -257,7 +258,7 @@ Widgets.NavigableFocusScope {
                         Widgets.IconToolButton {
                             id: menu_selector
 
-                            size: VLCStyle.icon_normal
+                            size: VLCStyle.banner_icon_size
                             iconText: VLCIcons.menu
                             text: i18n.qtr("Menu")
                             height: playlistGroup.height
@@ -276,7 +277,7 @@ Widgets.NavigableFocusScope {
                         Widgets.IconToolButton {
                             id: playlist_btn
 
-                            size: VLCStyle.icon_normal
+                            size: VLCStyle.banner_icon_size
                             iconText: VLCIcons.playlist
                             text: i18n.qtr("Playlist")
                             height: playlistGroup.height
diff --git a/modules/gui/qt/widgets/qml/SearchBox.qml b/modules/gui/qt/widgets/qml/SearchBox.qml
index d253a32e9b..abd2a11c1e 100644
--- a/modules/gui/qt/widgets/qml/SearchBox.qml
+++ b/modules/gui/qt/widgets/qml/SearchBox.qml
@@ -81,7 +81,7 @@ Widgets.NavigableFocusScope {
         Widgets.IconToolButton {
             id: icon
 
-            size: VLCStyle.icon_normal
+            size: VLCStyle.banner_icon_size
             iconText: VLCIcons.search
             text: i18n.qtr("Filter")
 
diff --git a/modules/gui/qt/widgets/qml/SortControl.qml b/modules/gui/qt/widgets/qml/SortControl.qml
index 9997de0fba..ef5b9449f5 100644
--- a/modules/gui/qt/widgets/qml/SortControl.qml
+++ b/modules/gui/qt/widgets/qml/SortControl.qml
@@ -53,7 +53,7 @@ Widgets.NavigableFocusScope {
     Widgets.IconToolButton {
         id: button
 
-        size: VLCStyle.icon_normal
+        size: VLCStyle.banner_icon_size
         iconText: VLCIcons.topbar_sort
         text: i18n.qtr("Sort")
 
-- 
2.25.1



More information about the vlc-devel mailing list