[vlc-commits] qml: only apply shadows to local tool group in banner
Prince Gupta
git at videolan.org
Thu Dec 17 14:57:02 UTC 2020
vlc | branch: master | Prince Gupta <guptaprince8832 at gmail.com> | Tue Nov 3 23:31:48 2020 +0530| [a3fe07357573a6ab20778de0048e598344918101] | committer: Pierre Lamot
qml: only apply shadows to local tool group in banner
Signed-off-by: Pierre Lamot <pierre at videolabs.io>
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=a3fe07357573a6ab20778de0048e598344918101
---
modules/gui/qt/maininterface/qml/BannerSources.qml | 44 ++++++++--------------
1 file changed, 16 insertions(+), 28 deletions(-)
diff --git a/modules/gui/qt/maininterface/qml/BannerSources.qml b/modules/gui/qt/maininterface/qml/BannerSources.qml
index 7a9a0c5617..ec77ab7a15 100644
--- a/modules/gui/qt/maininterface/qml/BannerSources.qml
+++ b/modules/gui/qt/maininterface/qml/BannerSources.qml
@@ -61,32 +61,6 @@ Widgets.NavigableFocusScope {
searchBox.expanded = true
}
- DropShadow {
- id: primaryShadow
-
- anchors.fill: pLBannerSources
- source: pLBannerSources
- horizontalOffset: 0
- verticalOffset: VLCStyle.dp(1, VLCStyle.scale)
- radius: VLCStyle.dp(9, VLCStyle.scale)
- spread: 0
- samples: ( radius * 2 ) + 1
- color: Qt.rgba(0, 0, 0, .22)
- }
-
- DropShadow {
- id: secondaryShadow
-
- anchors.fill: pLBannerSources
- source: pLBannerSources
- horizontalOffset: 0
- verticalOffset: VLCStyle.dp(0, VLCStyle.scale)
- radius: VLCStyle.dp(2, VLCStyle.scale)
- spread: 0
- samples: ( radius * 2 ) + 1
- color: Qt.rgba(0, 0, 0, .18)
- }
-
Rectangle {
id: pLBannerSources
@@ -200,13 +174,27 @@ Widgets.NavigableFocusScope {
}
}
- Rectangle {
+ Item {
id: localToolbar
- color: VLCStyle.colors.bg
width: parent.width
height: VLCStyle.localToolbar_height
+ Rectangle {
+ id: localToolbarBg
+ color: VLCStyle.colors.bg
+ anchors.fill: parent
+ }
+
+ Widgets.CoverShadow {
+ anchors.fill: localToolbarBg
+ source: localToolbarBg
+ primaryVerticalOffset: VLCStyle.dp(1)
+ primaryRadius: VLCStyle.dp(9)
+ secondaryVerticalOffset: VLCStyle.dp(0)
+ secondaryRadius: VLCStyle.dp(2)
+ }
+
Widgets.NavigableRow {
id: localContextGroup
anchors {
More information about the vlc-commits
mailing list