Changeset View
Changeset View
Standalone View
Standalone View
src/controls/InlineMessage.qml
Show First 20 Lines • Show All 212 Lines • ▼ Show 20 Line(s) | 212 | } else if (root.type == Kirigami.MessageType.Warning) { | |||
---|---|---|---|---|---|
213 | return "dialog-warning"; | 213 | return "dialog-warning"; | ||
214 | } else if (root.type == Kirigami.MessageType.Error) { | 214 | } else if (root.type == Kirigami.MessageType.Error) { | ||
215 | return "dialog-error"; | 215 | return "dialog-error"; | ||
216 | } | 216 | } | ||
217 | 217 | | |||
218 | return "dialog-information"; | 218 | return "dialog-information"; | ||
219 | } | 219 | } | ||
220 | 220 | | |||
221 | color: root.icon.color | 221 | color: Qt.tint(Kirigami.Theme.textColor, Qt.rgba(bgBorderRect.color.r, bgBorderRect.color.g, bgBorderRect.color.b, 0.4)) | ||
222 | } | 222 | } | ||
223 | 223 | | |||
224 | MouseArea { | 224 | MouseArea { | ||
225 | implicitHeight: text.implicitHeight | 225 | implicitHeight: text.implicitHeight | ||
226 | 226 | | |||
227 | Layout.fillWidth: true | 227 | Layout.fillWidth: true | ||
228 | Layout.alignment: text.lineCount > 1 ? Qt.AlignTop : Qt.AlignVCenter | 228 | Layout.alignment: text.lineCount > 1 ? Qt.AlignTop : Qt.AlignVCenter | ||
229 | Layout.row: 0 | 229 | Layout.row: 0 | ||
230 | Layout.column: 1 | 230 | Layout.column: 1 | ||
231 | 231 | | |||
232 | cursorShape: text.hoveredLink ? Qt.PointingHandCursor : Qt.ArrowCursor | 232 | cursorShape: text.hoveredLink ? Qt.PointingHandCursor : Qt.ArrowCursor | ||
233 | 233 | | |||
234 | Controls.Label { | 234 | Controls.Label { | ||
235 | id: text | 235 | id: text | ||
236 | 236 | | |||
237 | width: parent.width | 237 | width: parent.width | ||
238 | 238 | | |||
239 | color: Kirigami.Theme.textColor | 239 | color: Qt.tint(Kirigami.Theme.textColor, Qt.rgba(bgBorderRect.color.r, bgBorderRect.color.g, bgBorderRect.color.b, 0.4)) | ||
240 | wrapMode: Text.WordWrap | 240 | wrapMode: Text.WordWrap | ||
241 | elide: Text.ElideRight | 241 | elide: Text.ElideRight | ||
242 | 242 | | |||
243 | text: root.text | 243 | text: root.text | ||
244 | 244 | | |||
245 | onLinkHovered: root.linkHovered(link) | 245 | onLinkHovered: root.linkHovered(link) | ||
246 | onLinkActivated: root.linkActivated(link) | 246 | onLinkActivated: root.linkActivated(link) | ||
247 | } | 247 | } | ||
▲ Show 20 Lines • Show All 53 Lines • Show Last 20 Lines |