/* SPDX-FileCopyrightText: 2023 Fushan Wen SPDX-License-Identifier: GPL-2.0-or-later */ import QtQuick import org.kde.plasma.extras as PlasmaExtras import org.kde.kirigami 2.20 as Kirigami Item { // Using childrenRect.width causes a binding loop since we can only get the // actual width, not the implicitWidth--which is what we would want width: Math.max(title.implicitWidth, subtitle.implicitWidth) height: childrenRect.height HoverHandler { cursorShape: Qt.PointingHandCursor } TapHandler { onTapped: Qt.openUrlExternally("https://bugs.kde.org/") } PlasmaExtras.ShadowedLabel { id: title anchors { top: parent.top right: parent.right } z: 2 text: desktop.previewBannerTitle // Emulate the size of a level 1 heading font.pointSize: Math.round(Kirigami.Theme.defaultFont.pointSize * 1.35) } PlasmaExtras.ShadowedLabel { id: subtitle anchors { top: title.bottom right: parent.right } z: 2 text: desktop.previewBannerText } }