Skip to content

Commit 431c24d

Browse files
committed
feat: sidebar add transparent effect
侧边栏添加透明效果
1 parent fad74d8 commit 431c24d

File tree

2 files changed

+4
-10
lines changed

2 files changed

+4
-10
lines changed

src/main.qml

+3-9
Original file line numberDiff line numberDiff line change
@@ -371,15 +371,9 @@ ApplicationWindow {
371371
anchors.top: parent.top
372372
color: Util.sidebarBackgroundColor
373373

374-
BoxShadow {
375-
anchors.fill: leftBgArea
376-
shadowOffsetX: 0
377-
shadowOffsetY: 4
378-
shadowColor: Qt.rgba(0, 0, 0, 0.05)
379-
shadowBlur: 10
380-
cornerRadius: leftBgArea.radius
381-
spread: 0
382-
hollow: true
374+
StyledBehindWindowBlur {
375+
control: rootWindow
376+
anchors.fill: parent
383377
}
384378

385379
Rectangle {

src/util/Util.qml

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ Item {
1010
property string mouseHoverColor: D.DTK.themeType === DI.ApplicationHelper.LightType ? Qt.rgba(255, 255, 255, 1) : Qt.rgba(255, 255, 255, 0.3)
1111
property string mousePressedColor: D.DTK.themeType === DI.ApplicationHelper.LightType ? Qt.rgba(0, 0, 0, 0.3) : Qt.rgba(255, 255, 255, 0.4)
1212
property string mouseReleasedColor: D.DTK.themeType === DI.ApplicationHelper.LightType ? Qt.rgba(0, 0, 0, 0.2) : Qt.rgba(255, 255, 255, 0.3)
13-
property string sidebarBackgroundColor: D.DTK.themeType === DI.ApplicationHelper.LightType ? "#e9e9e9" : "#252525"
13+
property string sidebarBackgroundColor: "transparent"
1414
property string sidebarRightBorderColor: D.DTK.themeType === DI.ApplicationHelper.LightType ? "#eee7e7e7" : "#ee252525"
1515
property int pageLeftPadding: 20
1616

0 commit comments

Comments
 (0)