// A single status icon in StatusCluster. Fixed width so the cluster doesn't
// shuffle sideways every time a glyph swaps for a wider one.

import QtQuick
import qs.config

Text {
    id: root

    required property string glyph

    anchors.verticalCenter: parent?.verticalCenter ?? undefined

    text: root.glyph
    font.family: Theme.fontMono
    font.pixelSize: Theme.fontSizeLarge
    horizontalAlignment: Text.AlignHCenter
    width: 18
    color: Theme.barFg

    Behavior on color {
        ColorAnimation {
            duration: Theme.durFast
        }
    }
}
