Compare commits

...

2 commits

Author SHA1 Message Date
Carl Schwan
df690b8d20 remove hack and don't hardcode font 2020-09-19 14:58:29 +02:00
Carl Schwan
3118be5c98 Use Kirigami header in sidebar 2020-09-19 11:07:31 +02:00

View file

@ -35,8 +35,15 @@ Kirigami.ApplicationWindow
modal: !root.wideScreen
handleVisible: !root.wideScreen
topContent: RowLayout {
width: parent.width
header: Kirigami.AbstractApplicationHeader {
topPadding: Kirigami.Units.smallSpacing
bottomPadding: Kirigami.Units.smallSpacing
leftPadding: Kirigami.Units.smallSpacing
rightPadding: Kirigami.Units.smallSpacing
contentItem: RowLayout {
anchors.fill: parent
spacing: Kirigami.Units.smallSpacing
DBusProperty {
id: announcedNameProperty
object: DaemonDbusInterface
@ -48,7 +55,6 @@ Kirigami.ApplicationWindow
id: nameField
visible: false
Layout.fillWidth: true
Layout.leftMargin: Kirigami.Units.smallSpacing
text: announcedNameProperty.value
onAccepted: {
DaemonDbusInterface.setAnnouncedName(text)
@ -56,13 +62,12 @@ Kirigami.ApplicationWindow
}
}
Label {
Kirigami.Heading {
level: 1
text: announcedNameProperty.value
visible: !nameField.visible
Layout.fillWidth: true
visible: !nameField.visible
elide: Qt.ElideRight
font.pointSize: 18
Layout.leftMargin: Kirigami.Units.smallSpacing
}
Button {
@ -73,6 +78,12 @@ Kirigami.ApplicationWindow
}
}
}
}
topContent: RowLayout {
width: parent.width
}
property var objects: [findDevicesAction]
Instantiator {