From f15ae9b09f5c01d8f6d9402ab639f0b985843e6e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=EA=A6=8C=EA=A6=AB=EA=A6=B6=EA=A6=8F=EA=A7=80=EA=A6=A6?= =?UTF-8?q?=EA=A6=BF=EA=A6=A7=EA=A6=AE=EA=A6=91=EA=A6=A9=EA=A6=AD=EA=A7=80?= Date: Tue, 28 Mar 2023 15:46:08 +0800 Subject: Drop shadow for menu --- Header.ui.qml | 15 +++++++++++++-- 1 file 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 { -- cgit v1.2.3