Changeset View
Changeset View
Standalone View
Standalone View
src/qmlcontrols/kcmcontrols/qml/GridDelegate.qml
Show First 20 Lines • Show All 110 Lines • ▼ Show 20 Line(s) | 106 | Kirigami.Icon { | |||
---|---|---|---|---|---|
111 | source: typeof pluginName === "string" && pluginName === "None" ? "edit-none" : "view-preview" | 111 | source: typeof pluginName === "string" && pluginName === "None" ? "edit-none" : "view-preview" | ||
112 | } | 112 | } | ||
113 | } | 113 | } | ||
114 | 114 | | |||
115 | Rectangle { | 115 | Rectangle { | ||
116 | anchors.fill: thumbnailArea | 116 | anchors.fill: thumbnailArea | ||
117 | visible: actionsRow.children.length > 0 | 117 | visible: actionsRow.children.length > 0 | ||
118 | opacity: Kirigami.Settings.isMobile || delegate.hovered || (actionsScope.focus) ? 1 : 0 | 118 | opacity: Kirigami.Settings.isMobile || delegate.hovered || (actionsScope.focus) ? 1 : 0 | ||
119 | radius: Kirigami.Units.smallSpacing | 119 | radius: delegate.thumbnailAvailable ? 0 : thumbnailArea.radius | ||
120 | color: Kirigami.Settings.isMobile ? "transparent" : Qt.rgba(1, 1, 1, 0.2) | 120 | color: Kirigami.Settings.isMobile ? "transparent" : Qt.rgba(1, 1, 1, 0.2) | ||
121 | 121 | | |||
122 | Behavior on opacity { | 122 | Behavior on opacity { | ||
123 | PropertyAnimation { | 123 | PropertyAnimation { | ||
124 | duration: Kirigami.Units.longDuration | 124 | duration: Kirigami.Units.longDuration | ||
125 | easing.type: Easing.OutQuad | 125 | easing.type: Easing.OutQuad | ||
126 | } | 126 | } | ||
127 | } | 127 | } | ||
▲ Show 20 Lines • Show All 65 Lines • Show Last 20 Lines |