summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorꦌꦫꦶꦏ꧀ꦦꦿꦧꦮꦑꦩꦭ꧀ <erik@darapsa.co.id>2023-03-28 15:46:08 +0800
committerꦌꦫꦶꦏ꧀ꦦꦿꦧꦮꦑꦩꦭ꧀ <erik@darapsa.co.id>2023-03-28 15:46:08 +0800
commitf15ae9b09f5c01d8f6d9402ab639f0b985843e6e (patch)
treefd97ef027e7fd22aaf6f15b38b95e1d6251d4b0a
parent334044f98e4d0e96214c40d43ffa239a82ca5248 (diff)
Drop shadow for menu
-rw-r--r--Header.ui.qml15
1 files changed, 13 insertions, 2 deletions
diff --git a/Header.ui.qml b/Header.ui.qml
index d3d3845..5001647 100644
--- a/Header.ui.qml
+++ b/Header.ui.qml
@@ -3,6 +3,7 @@ import QtQuick.Controls 2.15
import QtQuick.Layouts 1.15
import QtGraphicalEffects 1.15
import Eduport 1.4
+import "DropShadow" as DrpShdw
import "Label" as Lbl
ToolBar {
@@ -87,10 +88,20 @@ ToolBar {
delegate: MenuItem {
font: Eduport.bsBtnFont
}
- background: Rectangle {
+ background: Item {
implicitWidth: 260.734
implicitHeight: 295.406
- radius: 5.2
+
+ Rectangle {
+ id: rectangle
+ anchors.fill: parent
+ radius: 5.2
+ }
+
+ DrpShdw.Box {
+ source: rectangle
+ anchors.fill: rectangle
+ }
}
Item {