bar: power button open session
Make it actually useful (not really)
This commit is contained in:
parent
b78721ab82
commit
9743b34245
1 changed files with 17 additions and 0 deletions
|
|
@ -1,10 +1,27 @@
|
||||||
import "root:/widgets"
|
import "root:/widgets"
|
||||||
import "root:/services"
|
import "root:/services"
|
||||||
import "root:/config"
|
import "root:/config"
|
||||||
|
import Quickshell
|
||||||
|
|
||||||
MaterialIcon {
|
MaterialIcon {
|
||||||
text: "power_settings_new"
|
text: "power_settings_new"
|
||||||
color: Colours.palette.m3error
|
color: Colours.palette.m3error
|
||||||
font.bold: true
|
font.bold: true
|
||||||
font.pointSize: Appearance.font.size.normal
|
font.pointSize: Appearance.font.size.normal
|
||||||
|
|
||||||
|
StateLayer {
|
||||||
|
anchors.fill: undefined
|
||||||
|
anchors.centerIn: parent
|
||||||
|
anchors.horizontalCenterOffset: 1
|
||||||
|
|
||||||
|
implicitWidth: parent.implicitHeight + Appearance.padding.small * 2
|
||||||
|
implicitHeight: implicitWidth
|
||||||
|
|
||||||
|
radius: Appearance.rounding.full
|
||||||
|
|
||||||
|
function onClicked(): void {
|
||||||
|
const v = Visibilities.screens[QsWindow.window.screen];
|
||||||
|
v.session = !v.session;
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue