-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathDeleteButton.qml
More file actions
37 lines (33 loc) · 945 Bytes
/
DeleteButton.qml
File metadata and controls
37 lines (33 loc) · 945 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
import QtQuick 2.0
import QtQuick.Controls 2.2
import QtGraphicalEffects 1.0
import "DefaultTheme.js" as DefTheme
Button {
id: control
contentItem: Column {
anchors.centerIn: control
Text {
id: delCaption
anchors.horizontalCenter: parent.horizontalCenter
text: "DELETE"
font.bold: true
color: DefTheme.mainTextColor
font.pixelSize: 15
}
Text {
anchors.horizontalCenter: parent.horizontalCenter
text: "press and hold"
font.pixelSize: delCaption.font.pixelSize * 0.7
horizontalAlignment: Qt.AlignHCenter
color: DefTheme.mainTextColor
}
}
background: Rectangle {
color: DefTheme.mainNegativeAccent
layer.enabled: true
layer.effect: DropShadow {
transparentBorder: true
radius: down ? 1 : 4
}
}
}