mirror of
https://github.com/noctalia-dev/noctalia-shell.git
synced 2026-05-11 17:08:27 +08:00
fix(bar): simplified floating margins ui
This commit is contained in:
+11
-9
@@ -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 || ""
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user