noctalia-shell/Widgets/NVerticalText.qml
Ly-sec 0035fbcc4e NPill: act as loder for NVerticalPill and NHorizontalPill
NHorizontalPill: should be used for anything that expands horizontal
NVerticalPill: should be used for anything that expands vertical
2025-09-13 20:52:20 +02:00

26 lines
537 B
QML

import QtQuick
import qs.Commons
import qs.Services
Column {
id: root
property string text: ""
property real fontSize: Style.fontSizeXS
property color color: Color.mOnSurface
property int fontWeight: Style.fontWeightBold
spacing: -2 * scaling
Repeater {
model: root.text.split("")
NText {
text: modelData
font.pointSize: root.fontSize
font.weight: root.fontWeight
font.family: Settings.data.ui.fontDefault
color: root.color
horizontalAlignment: Text.AlignHCenter
}
}
}