summaryrefslogtreecommitdiffstats
path: root/views/calendar/qml/View.qml
diff options
context:
space:
mode:
authorChristian Mollekopf <chrigi_1@fastmail.fm>2018-08-17 10:26:32 +0200
committerChristian Mollekopf <chrigi_1@fastmail.fm>2018-08-17 10:26:32 +0200
commitb2abd05d6c43e1d50ffc4937575e3cef86411de4 (patch)
tree997de754f8396566e17c76b325aade1cb5787274 /views/calendar/qml/View.qml
parent7ef07dd413a8719a96d3e79bf36cb8698478ada1 (diff)
downloadkube-b2abd05d6c43e1d50ffc4937575e3cef86411de4.tar.gz
kube-b2abd05d6c43e1d50ffc4937575e3cef86411de4.zip
Elide calendar labels
Diffstat (limited to 'views/calendar/qml/View.qml')
-rw-r--r--views/calendar/qml/View.qml23
1 files changed, 13 insertions, 10 deletions
diff --git a/views/calendar/qml/View.qml b/views/calendar/qml/View.qml
index 05032af9..0ef87e65 100644
--- a/views/calendar/qml/View.qml
+++ b/views/calendar/qml/View.qml
@@ -133,7 +133,8 @@ RowLayout {
133 delegate: Item { 133 delegate: Item {
134 width: parent.width - Kube.Units.largeSpacing 134 width: parent.width - Kube.Units.largeSpacing
135 height: Kube.Units.gridUnit 135 height: Kube.Units.gridUnit
136 Row { 136 RowLayout {
137 anchors.fill: parent
137 spacing: Kube.Units.smallSpacing 138 spacing: Kube.Units.smallSpacing
138 Kube.CheckBox { 139 Kube.CheckBox {
139 opacity: 0.9 140 opacity: 0.9
@@ -141,18 +142,20 @@ RowLayout {
141 onToggled: model.checked = !checked 142 onToggled: model.checked = !checked
142 } 143 }
143 Kube.Label { 144 Kube.Label {
145 Layout.fillWidth: true
144 text: model.name 146 text: model.name
145 color: Kube.Colors.highlightedTextColor 147 color: Kube.Colors.highlightedTextColor
148 elide: Text.ElideRight
149 clip: true
150 }
151 Rectangle {
152 anchors.verticalCenter: parent.verticalCenter
153 width: Kube.Units.gridUnit
154 height: width
155 radius: width / 2
156 color: model.color
157 opacity: 0.9
146 } 158 }
147 }
148 Rectangle {
149 anchors.right: parent.right
150 anchors.verticalCenter: parent.verticalCenter
151 width: Kube.Units.gridUnit
152 height: width
153 radius: width / 2
154 color: model.color
155 opacity: 0.9
156 } 159 }
157 } 160 }
158 } 161 }