Skip to content

Commit 661ca74

Browse files
committed
Add title to KDE widget
1 parent d1ae1c6 commit 661ca74

1 file changed

Lines changed: 23 additions & 0 deletions

File tree

plasmoid/contents/ui/main.qml

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -163,6 +163,29 @@ PlasmoidItem {
163163
anchors.fill: parent
164164
spacing: 0
165165

166+
// Header bar: title + refresh button
167+
RowLayout {
168+
Layout.fillWidth: true
169+
Layout.leftMargin: Kirigami.Units.smallSpacing
170+
Layout.rightMargin: Kirigami.Units.smallSpacing
171+
Layout.topMargin: Kirigami.Units.smallSpacing
172+
PlasmaExtras.Heading {
173+
Layout.fillWidth: true
174+
level: 4
175+
text: "AirPlay Devices"
176+
}
177+
Controls.ToolButton {
178+
icon.name: "view-refresh"
179+
display: Controls.ToolButton.IconOnly
180+
Controls.ToolTip.text: "Refresh devices"
181+
Controls.ToolTip.visible: hovered
182+
enabled: !root.isBusy
183+
onClicked: {
184+
root.runCtl(["discover"], "discover")
185+
}
186+
}
187+
}
188+
166189
Kirigami.Separator {
167190
Layout.fillWidth: true
168191
}

0 commit comments

Comments
 (0)