// SPDX-FileCopyrightText: 2026 Matvey Shcherbinin // SPDX-License-Identifier: GPL-3.0-only OR LicenseRef-KDE-Accepted-GPL import QtQuick import QtQuick.Controls as QQC2 import org.kde.kirigami as Kirigami import koutnet.app // A single tick does not confirm delivery; two ticks indicate a read receipt. // Use glyphs because Breeze has no double-tick icon. QQC2.Label { id: root required property bool read required property bool pending text: root.pending ? "\u231B" : (root.read ? "\u2713\u2713" : "\u2713") textFormat: Text.PlainText font: Kirigami.Theme.smallFont color: root.read ? ThemePalette.accent : AppPalette.disabledText Accessible.name: root.pending ? i18nc("@info:whatsthis state of an outgoing message", "Sending") : (root.read ? i18nc("@info:whatsthis state of an outgoing message", "Read by the recipient") : i18nc("@info:whatsthis state of an outgoing message", "Sent, delivery not confirmed")) HoverHandler { id: markHover } QQC2.ToolTip.visible: markHover.hovered QQC2.ToolTip.delay: Kirigami.Units.toolTipDelay QQC2.ToolTip.text: root.pending ? i18nc("@info:tooltip state of an outgoing message", "Sending") : (root.read ? i18nc("@info:tooltip state of an outgoing message", "Read by the recipient") : i18nc("@info:tooltip state of an outgoing message", "Sent - delivery not confirmed")) }