Skip to content

Commit cdf6ea9

Browse files
18202781743deepin-bot[bot]
authored andcommitted
fix: shadow clipped for notification
Increase window's width to prevent shadows from being clipped. pms: BUG-304379 BUG-300509
1 parent f059689 commit cdf6ea9

File tree

5 files changed

+16
-11
lines changed

5 files changed

+16
-11
lines changed

panels/notification/bubble/package/main.qml

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ Window {
3131
}
3232

3333
visible: Applet.visible
34-
width: 380
34+
width: 390
3535
height: Math.max(10, bubbleView.height + bubbleView.anchors.topMargin + bubbleView.anchors.bottomMargin)
3636
DLayerShellWindow.layer: DLayerShellWindow.LayerTop
3737
DLayerShellWindow.anchors: DLayerShellWindow.AnchorBottom | DLayerShellWindow.AnchorRight
@@ -57,9 +57,11 @@ Window {
5757
width: 360
5858
height: contentHeight
5959
anchors {
60-
centerIn: parent
61-
margins: 10
62-
topMargin: 20
60+
right: parent.right
61+
bottom: parent.bottom
62+
bottomMargin: 10
63+
rightMargin: 10
64+
margins: 30
6365
}
6466

6567
spacing: 10

panels/notification/center/package/main.qml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -84,8 +84,7 @@ Window {
8484
anchors {
8585
top: parent.top
8686
left: parent.left
87-
margins: 10
88-
rightMargin: 20
87+
margins: 20
8988
bottom: parent.bottom
9089
}
9190

panels/notification/plugin/NotifyItemBackground.qml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ Control {
5959
active: control.dropShadowColor
6060
sourceComponent: BoxShadow {
6161
shadowOffsetX: 0
62-
shadowOffsetY: 6
62+
shadowOffsetY: 8
6363
shadowColor: control.ColorSelector.dropShadowColor
6464
shadowBlur: 20
6565
cornerRadius: backgroundRect.radius

panels/notification/plugin/NotifyItemContent.qml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -72,10 +72,12 @@ NotifyItem {
7272
color1: Palette {
7373
normal {
7474
common: ("transparent")
75-
crystal: Qt.rgba(240 / 255.0, 240 / 255.0, 240 / 255.0, 0.5)
75+
// TODO crystal: Qt.rgba(240 / 255.0, 240 / 255.0, 240 / 255.0, 0.5)
76+
crystal: Qt.rgba(240 / 255.0, 240 / 255.0, 240 / 255.0, 1.0)
7677
}
7778
normalDark {
78-
crystal: Qt.rgba(24 / 255.0, 24 / 255.0, 24 / 255.0, 0.5)
79+
// TODO crystal: Qt.rgba(240 / 255.0, 240 / 255.0, 240 / 255.0, 0.5)
80+
crystal: Qt.rgba(24 / 255.0, 24 / 255.0, 24 / 255.0, 1.0)
7981
}
8082
}
8183
color2: color1

panels/notification/plugin/SettingActionButton.qml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,10 +36,12 @@ ActionButton {
3636
color1: Palette {
3737
normal {
3838
common: ("transparent")
39-
crystal: Qt.rgba(240 / 255.0, 240 / 255.0, 240 / 255.0, 0.5)
39+
// TODO crystal: Qt.rgba(240 / 255.0, 240 / 255.0, 240 / 255.0, 0.5)
40+
crystal: Qt.rgba(240 / 255.0, 240 / 255.0, 240 / 255.0, 1.0)
4041
}
4142
normalDark {
42-
crystal: Qt.rgba(24 / 255.0, 24 / 255.0, 24 / 255.0, 0.5)
43+
// TODO crystal: Qt.rgba(240 / 255.0, 240 / 255.0, 240 / 255.0, 0.5)
44+
crystal: Qt.rgba(24 / 255.0, 24 / 255.0, 24 / 255.0, 1.0)
4345
}
4446
}
4547

0 commit comments

Comments
 (0)