Commit 811d92d1 authored by Marco Martin's avatar Marco Martin
Browse files

workaround in setting colors

for items in a repeater inheriting of Kirigami.Theme colors doesn't work
explicitly bind

parent 29f3ee38
Pipeline #207475 passed with stage
in 57 seconds
......@@ -14,6 +14,7 @@ import QtQuick.Layouts 1.0
import org.kde.kirigami 2.8 as Kirigami
Rectangle {
id: root
property int columns: cuttlefish.iconSizes.length
property bool showWatermark: false
......@@ -43,6 +44,8 @@ Rectangle {
QQC2.Label {
Layout.alignment: Qt.AlignHCenter
text: modelData
// Inheriting doesn't correctly work when in a repeater
color: root.Kirigami.Theme.textColor
Behavior on color {
ColorAnimation {
duration: Kirigami.Units.longDuration
Supports Markdown
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