bar: remove idle inhibitor
Use the one in the utilities panel instead
This commit is contained in:
parent
3d6e335030
commit
5fc37bbe0d
4 changed files with 0 additions and 47 deletions
|
|
@ -307,10 +307,6 @@ default, you must create it manually.
|
||||||
{
|
{
|
||||||
"id": "power",
|
"id": "power",
|
||||||
"enabled": true
|
"enabled": true
|
||||||
},
|
|
||||||
{
|
|
||||||
"id": "idleInhibitor",
|
|
||||||
"enabled": false
|
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"persistent": true,
|
"persistent": true,
|
||||||
|
|
|
||||||
|
|
@ -47,10 +47,6 @@ JsonObject {
|
||||||
{
|
{
|
||||||
id: "power",
|
id: "power",
|
||||||
enabled: true
|
enabled: true
|
||||||
},
|
|
||||||
{
|
|
||||||
id: "idleInhibitor",
|
|
||||||
enabled: false
|
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -143,12 +143,6 @@ ColumnLayout {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
DelegateChoice {
|
|
||||||
roleValue: "idleInhibitor"
|
|
||||||
delegate: WrappedLoader {
|
|
||||||
sourceComponent: IdleInhibitor {}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,33 +0,0 @@
|
||||||
import qs.components
|
|
||||||
import qs.services
|
|
||||||
import qs.config
|
|
||||||
import Quickshell
|
|
||||||
import QtQuick
|
|
||||||
|
|
||||||
StyledRect {
|
|
||||||
id: root
|
|
||||||
|
|
||||||
implicitWidth: implicitHeight
|
|
||||||
implicitHeight: icon.implicitHeight + Appearance.padding.small * 2
|
|
||||||
|
|
||||||
radius: Appearance.rounding.full
|
|
||||||
color: Qt.alpha(Colours.palette.m3primaryContainer, IdleInhibitor.enabled ? 1 : 0)
|
|
||||||
|
|
||||||
StateLayer {
|
|
||||||
function onClicked(): void {
|
|
||||||
IdleInhibitor.enabled = !IdleInhibitor.enabled;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
MaterialIcon {
|
|
||||||
id: icon
|
|
||||||
|
|
||||||
anchors.centerIn: parent
|
|
||||||
anchors.horizontalCenterOffset: -1
|
|
||||||
|
|
||||||
text: "coffee"
|
|
||||||
color: IdleInhibitor.enabled ? Colours.palette.m3onPrimaryContainer : Colours.palette.m3secondary
|
|
||||||
font.bold: true
|
|
||||||
font.pointSize: Appearance.font.size.normal
|
|
||||||
}
|
|
||||||
}
|
|
||||||
Loading…
Add table
Reference in a new issue