From 37b800b7701a590b0264f58883a9c0ea64348da0 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: Wed, 29 Mar 2023 17:28:46 +0800 Subject: Fix detail background & shadow --- Course/Detail/Classic/Content/Main.ui.qml | 30 ++++++++++++++++++------------ 1 file changed, 18 insertions(+), 12 deletions(-) (limited to 'Course/Detail/Classic') diff --git a/Course/Detail/Classic/Content/Main.ui.qml b/Course/Detail/Classic/Content/Main.ui.qml index b00fe1d..625038f 100644 --- a/Course/Detail/Classic/Content/Main.ui.qml +++ b/Course/Detail/Classic/Content/Main.ui.qml @@ -2,6 +2,8 @@ import QtQuick 2.15 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 import "../../../../Button/NavLink" as NavLink import "Main/TabContents" as MainTabContents @@ -14,27 +16,31 @@ ColumnLayout { Layout.fillWidth: true Layout.leftMargin: 15 Layout.rightMargin: 15 - implicitHeight: rectangle.height - - DropShadow { - source: rectangle - color: "#4d000000" - verticalOffset: 4 - radius: 12 - samples: 12 - anchors.fill: rectangle - } + implicitHeight: content.height Rectangle { - id: rectangle - radius: 5.2 + id: content + color: Eduport.bsBodyBg anchors { left: parent.left right: parent.right } implicitHeight: tabs.height + tabContents.height + 83.2 + DrpShdw.Box { + source: rectangle + anchors.fill: rectangle + } + + Rectangle { + id: rectangle + anchors.fill: container + color: Eduport.bsCardBg + radius: 5.2 + } + ColumnLayout { + id: container anchors { left: parent.left right: parent.right -- cgit v1.2.3