// SPDX-FileCopyrightText: 2024 Tobias Fella // SPDX-FileCopyrightText: 2024 Carl Schwan // SPDX-License-Identifier: LGPL-2.0-or-later import QtQuick import QtQuick.Controls as QQC2 import org.kde.kirigami as Kirigami QQC2.Control { id: root property string text visible: !root.text.startsWith("https://matrix.to/") && root.text.length > 0 Kirigami.Theme.colorSet: Kirigami.Theme.View z: 20 Accessible.ignored: true contentItem: QQC2.Label { text: root.text.startsWith("https://matrix.to/") ? "" : root.text elide: Text.ElideRight Accessible.description: i18nc("@info screenreader", "The currently selected link") } background: Rectangle { color: Kirigami.Theme.backgroundColor } }