[vlc-devel] [PATCH 03/30] qml: only apply shadows to local tool group in banner
Prince Gupta
guptaprince8832 at gmail.com
Mon Dec 14 14:27:41 CET 2020
---
.../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 {
--
2.25.1
More information about the vlc-devel
mailing list