Skip to content

Commit d52eb4c

Browse files
sync: from linuxdeepin/dtkdeclarative
Synchronize source files from linuxdeepin/dtkdeclarative. Source-pull-request: linuxdeepin/dtkdeclarative#534
1 parent 1e88e88 commit d52eb4c

File tree

2 files changed

+24
-3
lines changed

2 files changed

+24
-3
lines changed

qt6/src/qml/AlertToolTip.qml

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,4 +50,25 @@ ToolTip {
5050
// NumberAnimation { properties: "opacity"; from: 1.0; to: 0.0 }
5151
NumberAnimation { properties: "y"; from: control.target.height + DS.Style.control.spacing ; to: control.target.height }
5252
}
53+
54+
BoxShadow {
55+
id: line
56+
property D.Palette dropShadowColor: DS.Style.alertToolTip.connecterdropShadow
57+
property D.Palette backgroundColor: DS.Style.alertToolTip.connecterBackground
58+
property D.Palette borderColor: DS.Style.control.border
59+
y: - height * (0.75) - control.topMargin - control.topPadding
60+
width: DS.Style.alertToolTip.connectorWidth
61+
height: DS.Style.alertToolTip.connectorHeight
62+
shadowBlur: 4
63+
shadowOffsetY: 2
64+
shadowColor: D.ColorSelector.dropShadowColor
65+
cornerRadius: DS.Style.control.radius
66+
67+
Rectangle {
68+
anchors.fill: parent
69+
color: line.D.ColorSelector.backgroundColor
70+
border.color: line.D.ColorSelector.borderColor
71+
border.width: 1
72+
}
73+
}
5374
}

qt6/src/qml/FlowStyle.qml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,8 @@ QtObject {
1515
property real focusBorderPaddings: 1
1616

1717
property D.Palette border: D.Palette {
18-
normal: Qt.rgba(0, 0, 0, 0.05)
19-
normalDark: Qt.rgba(0, 0, 0, 0.05)
18+
normal: Qt.rgba(0, 0, 0, 0.1)
19+
normalDark: Qt.rgba(0, 0, 0, 0.1)
2020
}
2121

2222
function implicitWidth(control) {
@@ -635,7 +635,7 @@ QtObject {
635635

636636
property D.Palette connecterBackground: D.Palette {
637637
normal: Qt.rgba(1, 1, 1, 1)
638-
normalDark: Qt.rgba(0, 0, 0, 0.1)
638+
normalDark: Qt.rgba(51 / 255.0, 51 / 255.0, 51 / 255.0, 1)
639639
}
640640

641641
property D.Palette dropShadow: D.Palette {

0 commit comments

Comments
 (0)