diff options
Diffstat (limited to 'views/calendar/qml')
-rw-r--r-- | views/calendar/qml/View.qml | 32 |
1 files changed, 23 insertions, 9 deletions
diff --git a/views/calendar/qml/View.qml b/views/calendar/qml/View.qml index d5f26505..2a819ab6 100644 --- a/views/calendar/qml/View.qml +++ b/views/calendar/qml/View.qml | |||
@@ -97,6 +97,7 @@ RowLayout { | |||
97 | anchors { | 97 | anchors { |
98 | bottom: parent.bottom | 98 | bottom: parent.bottom |
99 | left: newEventButton.left | 99 | left: newEventButton.left |
100 | right: parent.right | ||
100 | bottomMargin: Kube.Units.largeSpacing | 101 | bottomMargin: Kube.Units.largeSpacing |
101 | } | 102 | } |
102 | 103 | ||
@@ -105,17 +106,30 @@ RowLayout { | |||
105 | Repeater { | 106 | Repeater { |
106 | model: Kube.EntityModel { | 107 | model: Kube.EntityModel { |
107 | type: "calendar" | 108 | type: "calendar" |
108 | roles: ["name"] | 109 | roles: ["name", "color"] |
109 | } | 110 | } |
110 | delegate: Row { | 111 | delegate: Item { |
111 | spacing: Kube.Units.smallSpacing | 112 | width: parent.width - Kube.Units.largeSpacing |
112 | Kube.CheckBox { | 113 | height: Kube.Units.gridUnit |
113 | opacity: 0.9 | 114 | Row { |
114 | checked: true | 115 | spacing: Kube.Units.smallSpacing |
116 | Kube.CheckBox { | ||
117 | opacity: 0.9 | ||
118 | checked: true | ||
119 | } | ||
120 | Kube.Label { | ||
121 | text: model.name | ||
122 | color: Kube.Colors.highlightedTextColor | ||
123 | } | ||
115 | } | 124 | } |
116 | Kube.Label { | 125 | Rectangle { |
117 | text: model.name | 126 | anchors.right: parent.right |
118 | color: Kube.Colors.highlightedTextColor | 127 | anchors.verticalCenter: parent.verticalCenter |
128 | width: Kube.Units.gridUnit | ||
129 | height: width | ||
130 | radius: width / 2 | ||
131 | color: model.color | ||
132 | opacity: 0.9 | ||
119 | } | 133 | } |
120 | } | 134 | } |
121 | } | 135 | } |