// The session never disappears completely. Dismissing the larger glass signal
// leaves this quiet bar-native indicator, which reopens it in one click.

import QtQuick
import qs.config
import qs.services
import qs.widgets

Pill {
    id: root

    visible: FocusSession.active
    horizontalPadding: 8
    onActivated: FocusSession.reveal()
    onSecondaryActivated: FocusSession.pauseOrResume()

    Text {
        anchors.verticalCenter: parent.verticalCenter
        text: FocusSession.paused ? "\u{F03E4}" : "\u{F051F}" // pause / timer-outline
        color: FocusSession.paused ? Theme.warn : Theme.accent
        font.family: Theme.fontMono
        font.pixelSize: 14
    }

    Text {
        anchors.verticalCenter: parent.verticalCenter
        text: FocusSession.remainingText
        color: FocusSession.paused ? Theme.barFgDim : Theme.barFg
        font.family: Theme.fontFamily
        font.features: Theme.tabularFigures
        font.pixelSize: Theme.fontSizeSmall
        font.weight: Font.Medium
    }
}
