summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--components/kube/contents/ui/AccountsView.qml40
1 files changed, 10 insertions, 30 deletions
diff --git a/components/kube/contents/ui/AccountsView.qml b/components/kube/contents/ui/AccountsView.qml
index 407aad0d..66fef9f7 100644
--- a/components/kube/contents/ui/AccountsView.qml
+++ b/components/kube/contents/ui/AccountsView.qml
@@ -64,41 +64,21 @@ Rectangle {
64 64
65 model: Kube.AccountsModel {} 65 model: Kube.AccountsModel {}
66 66
67 delegate: T.ItemDelegate { 67 delegate: Kube.ListDelegate {
68 id: delegateRoot 68 id: delegateRoot
69 69
70 height: Kube.Units.gridUnit * 3 70 onClicked: edit.accountId = model.accountId
71 width: listView.width
72 71
73 onClicked: { 72 Kube.Label {
74 edit.accountId = model.accountId 73 anchors {
75 } 74 verticalCenter: parent.verticalCenter
76 75 left: parent.left
77 contentItem: Item { 76 leftMargin: Kube.Units.largeSpacing
78 Kube.Label {
79 anchors {
80 verticalCenter: parent.verticalCenter
81 left: parent.left
82 leftMargin: Kube.Units.largeSpacing
83 }
84 width: parent.width - Kube.Units.largeSpacing * 2
85
86 text: model.name
87 color: edit.accountId == model.accountId ? Kube.Colors.highlightedTextColor : Kube.Colors.textColor
88 } 77 }
89 } 78 width: parent.width - Kube.Units.largeSpacing * 2
90 79
91 background: Rectangle { 80 text: model.name
92 border.color: Kube.Colors.buttonColor 81 color: delegateRoot.textColor
93 border.width: 1
94 color: Kube.Colors.viewBackgroundColor
95
96 Rectangle {
97 width: parent.width
98 height: parent.height
99 visible: edit.accountId == model.accountId
100 color: Kube.Colors.highlightColor
101 }
102 } 82 }
103 } 83 }
104 } 84 }