[vlc-commits] qml: use VLCStyle's banner_icon_size constant for icon size in BannerSources
Prince Gupta
git at videolan.org
Thu Aug 27 12:43:56 CEST 2020
vlc | branch: master | Prince Gupta <guptaprince8832 at gmail.com> | Tue Aug 11 20:31:20 2020 +0530| [94c906d2456094ab818c7053301e44ab84d7ab77] | committer: Pierre Lamot
qml: use VLCStyle's banner_icon_size constant for icon size in BannerSources
Signed-off-by: Pierre Lamot <pierre at videolabs.io>
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=94c906d2456094ab818c7053301e44ab84d7ab77
---
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")
More information about the vlc-commits
mailing list