mirror of
https://github.com/end-4/dots-hyprland.git
synced 2026-06-05 14:59:27 -05:00
hefty: bar: add power button widget
This commit is contained in:
@@ -0,0 +1,27 @@
|
||||
pragma ComponentBehavior: Bound
|
||||
import QtQuick
|
||||
|
||||
import qs
|
||||
import qs.modules.common.widgets
|
||||
import ".."
|
||||
|
||||
HBarWidgetWithPopout {
|
||||
id: root
|
||||
|
||||
HBarWidgetContent {
|
||||
id: contentRoot
|
||||
vertical: root.vertical
|
||||
atBottom: root.atBottom
|
||||
contentImplicitWidth: symbol.implicitWidth
|
||||
contentImplicitHeight: symbol.implicitHeight
|
||||
showPopup: false
|
||||
onClicked: GlobalStates.sessionOpen = true;
|
||||
|
||||
MaterialSymbol {
|
||||
id: symbol
|
||||
anchors.centerIn: parent
|
||||
iconSize: 20
|
||||
text: "power_settings_new"
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user