nosignal-shell/widgets/AnchorText.qml
2 * r + 2 * t 01d9c31859 bar: fix alignment
Also refactor box -> styledrect + paddedrect
2025-04-29 10:53:54 +10:00

17 lines
539 B
QML

import "root:/config"
import QtQuick
StyledText {
id: root
required property Item prevAnchor
property bool vertical
anchors.left: vertical ? undefined : prevAnchor.right
anchors.leftMargin: vertical ? 0 : Appearance.padding.smaller
anchors.top: vertical ? prevAnchor.bottom : undefined
anchors.topMargin: vertical ? Appearance.padding.smaller : 0
anchors.horizontalCenter: vertical ? prevAnchor.horizontalCenter : undefined
anchors.verticalCenter: vertical ? undefined : prevAnchor.verticalCenter
}