Changeset View
Changeset View
Standalone View
Standalone View
desktoppackage/contents/configuration/ConfigCategoryDelegate.qml
Show First 20 Lines • Show All 125 Lines • ▼ Show 20 Line(s) | 122 | QIconItem { | |||
---|---|---|---|---|---|
126 | height: width | 126 | height: width | ||
127 | icon: model.icon | 127 | icon: model.icon | ||
128 | state: current && categoriesScroll.activeFocus ? QIconItem.SelectedState : QIconItem.DefaultState | 128 | state: current && categoriesScroll.activeFocus ? QIconItem.SelectedState : QIconItem.DefaultState | ||
129 | } | 129 | } | ||
130 | 130 | | |||
131 | QtControls.Label { | 131 | QtControls.Label { | ||
132 | id: nameLabel | 132 | id: nameLabel | ||
133 | Layout.fillWidth: true | 133 | Layout.fillWidth: true | ||
134 | Layout.leftMargin: units.smallSpacing | ||||
135 | Layout.rightMargin: units.smallSpacing | ||||
134 | text: model.name | 136 | text: model.name | ||
135 | wrapMode: Text.Wrap | 137 | wrapMode: Text.Wrap | ||
136 | horizontalAlignment: Text.AlignHCenter | 138 | horizontalAlignment: Text.AlignHCenter | ||
137 | color: current && categoriesScroll.activeFocus ? Kirigami.Theme.highlightedTextColor : Kirigami.Theme.textColor | 139 | color: current && categoriesScroll.activeFocus ? Kirigami.Theme.highlightedTextColor : Kirigami.Theme.textColor | ||
138 | Behavior on color { | 140 | Behavior on color { | ||
139 | ColorAnimation { | 141 | ColorAnimation { | ||
140 | duration: units.longDuration | 142 | duration: units.longDuration | ||
141 | easing.type: Easing.InOutQuad | 143 | easing.type: Easing.InOutQuad | ||
142 | } | 144 | } | ||
143 | } | 145 | } | ||
144 | } | 146 | } | ||
145 | } | 147 | } | ||
146 | //END UI components | 148 | //END UI components | ||
147 | } | 149 | } |