fix(bar): simplified floating margins ui

This commit is contained in:
Lemmy
2026-03-08 12:57:54 -04:00
parent 3e89e17031
commit 4d07c8ad18
22 changed files with 88 additions and 103 deletions
+11 -9
View File
@@ -35,21 +35,23 @@ ColumnLayout {
}
NText {
Layout.fillWidth: !root.showIndicator
id: labelText
Layout.fillWidth: true
text: root.label
pointSize: Style.fontSizeL
font.weight: Style.fontWeightSemiBold
color: labelColor
wrapMode: Text.WordWrap
}
// Settings indicator
Loader {
active: root.showIndicator
sourceComponent: NSettingsIndicator {
show: true
tooltipText: root.indicatorTooltip || ""
Layout.alignment: Qt.AlignVCenter
// Settings indicator dot positioned right after the text content
Loader {
active: root.showIndicator
x: labelText.contentWidth + Style.marginXS
anchors.verticalCenter: parent.verticalCenter
sourceComponent: NSettingsIndicator {
show: true
tooltipText: root.indicatorTooltip || ""
}
}
}
}