Commit b3cf793c authored by Claudio Cambra's avatar Claudio Cambra
Browse files

Add circle to combo box display too

parent d6f16209
Pipeline #116457 passed with stage
in 7 minutes and 53 seconds
......@@ -144,6 +144,16 @@ Kirigami.ScrollablePage {
valueRole: "collectionId"
currentIndex: model && collectionId !== -1 ? CalendarManager.getCalendarSelectableIndex(root.incidenceWrapper) : -1
indicator: Rectangle {
id: indicatorDot
implicitHeight: calendarCombo.implicitHeight * 0.4
implicitWidth: implicitHeight
x: calendarCombo.mirrored ? calendarCombo.leftPadding : calendarCombo.width - (calendarCombo.leftPadding * 3) - Kirigami.Units.iconSizes.smallMedium
y: calendarCombo.topPadding + (calendarCombo.availableHeight - height) / 2
radius: width * 0.5
color: CalendarManager.getCollectionDetails(calendarCombo.currentValue).color
}
model: KDescendantsProxyModel {
displayAncestorData: true
model: {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment