blob: b12896a452a5ce869bfc8702a3c7c9755575148a [file] [log] [blame]
swissChili23958ca2022-02-21 19:23:34 -08001import QtQuick 2.0
2import QtQuick.Controls 2.15
3import QtQuick.Controls.Material 2.0
4import QtQuick.Layouts 1.0
5
6Rectangle {
7 id: root
8
9 color: Material.color(Material.Grey, Material.Shade800)
10 height: 2
11 Layout.fillWidth: true
12 Layout.topMargin: 14
13 Layout.bottomMargin: 14
14
15 transitions: Transition {
16 NumberAnimation {
17 property: "opacity"
18 duration: 100
19 easing.type: Easing.OutCubic
20 }
21 }
22
23 MouseArea {
24 id: mouseArea
25 height: 30
26 width: parent.width
27 anchors.centerIn: parent
28 hoverEnabled: true
29
30 states: [
31 State {
32 when: mouseArea.containsMouse
33 PropertyChanges {
34 target: root
35 opacity: 1
36 }
37 },
38 State {
39 when: !mouseArea.containsMouse
40 PropertyChanges {
41 target: root
42 opacity: 0
43 }
44 }
45 ]
46 }
47
48 Item {
49 id: insertRow
50 anchors.centerIn: parent
51 height: 24
52 width: 24
53
54 Button {
55 id: addButton
56 anchors.centerIn: parent
57 icon.source: "qrc:///icons/add.svg"
58 icon.color: Material.color(Material.Grey, Material.Shade400)
59 flat: true
60 }
61 }
62}