blob: 00bad8b4c8b0d4dfb12f649cd6abda6d2cd00b8c [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
swissChili4b3105a2022-02-22 16:34:39 -08009 color: Material.color(Material.Grey, Material.theme == Material.Dark ? Material.Shade800 : Material.Shade300)
swissChili23958ca2022-02-21 19:23:34 -080010 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"
swissChili4b3105a2022-02-22 16:34:39 -080058 icon.color: Material.color(Material.Grey, Material.theme == Material.Dark ? Material.Shade400 : Material.Shade600)
swissChili23958ca2022-02-21 19:23:34 -080059 flat: true
60 }
61 }
62}