From b2abd05d6c43e1d50ffc4937575e3cef86411de4 Mon Sep 17 00:00:00 2001 From: Christian Mollekopf Date: Fri, 17 Aug 2018 10:26:32 +0200 Subject: Elide calendar labels --- views/calendar/qml/View.qml | 23 +++++++++++++---------- 1 file 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 { delegate: Item { width: parent.width - Kube.Units.largeSpacing height: Kube.Units.gridUnit - Row { + RowLayout { + anchors.fill: parent spacing: Kube.Units.smallSpacing Kube.CheckBox { opacity: 0.9 @@ -141,18 +142,20 @@ RowLayout { onToggled: model.checked = !checked } Kube.Label { + Layout.fillWidth: true text: model.name color: Kube.Colors.highlightedTextColor + elide: Text.ElideRight + clip: true + } + Rectangle { + anchors.verticalCenter: parent.verticalCenter + width: Kube.Units.gridUnit + height: width + radius: width / 2 + color: model.color + opacity: 0.9 } - } - Rectangle { - anchors.right: parent.right - anchors.verticalCenter: parent.verticalCenter - width: Kube.Units.gridUnit - height: width - radius: width / 2 - color: model.color - opacity: 0.9 } } } -- cgit v1.2.3