summaryrefslogtreecommitdiff
path: root/modules/utilities
diff options
context:
space:
mode:
authorFreya Murphy <freya@freyacat.org>2026-01-21 14:34:21 -0500
committerFreya Murphy <freya@freyacat.org>2026-01-21 14:34:21 -0500
commit2c0dd689145e48e9d3683dfd3556723895fa54aa (patch)
treeb2c37ae5136ec90c0f1fea16da6266857f886573 /modules/utilities
parentremove config saving, make background scale properly, and add quickshell desk... (diff)
downloadcaelestia-shell-2c0dd689145e48e9d3683dfd3556723895fa54aa.tar.gz
caelestia-shell-2c0dd689145e48e9d3683dfd3556723895fa54aa.tar.bz2
caelestia-shell-2c0dd689145e48e9d3683dfd3556723895fa54aa.zip
remove lockscreenHEADmain
Diffstat (limited to '')
-rw-r--r--modules/utilities/Content.qml2
-rw-r--r--modules/utilities/cards/IdleInhibit.qml125
2 files changed, 0 insertions, 127 deletions
diff --git a/modules/utilities/Content.qml b/modules/utilities/Content.qml
index f6d8d63..770a774 100644
--- a/modules/utilities/Content.qml
+++ b/modules/utilities/Content.qml
@@ -19,8 +19,6 @@ Item {
anchors.fill: parent
spacing: Appearance.spacing.normal
- IdleInhibit {}
-
Toggles {
visibilities: root.visibilities
popouts: root.popouts
diff --git a/modules/utilities/cards/IdleInhibit.qml b/modules/utilities/cards/IdleInhibit.qml
deleted file mode 100644
index 0344e3a..0000000
--- a/modules/utilities/cards/IdleInhibit.qml
+++ /dev/null
@@ -1,125 +0,0 @@
-import qs.components
-import qs.components.controls
-import qs.services
-import qs.config
-import QtQuick
-import QtQuick.Layouts
-
-StyledRect {
- id: root
-
- Layout.fillWidth: true
- implicitHeight: layout.implicitHeight + (IdleInhibitor.enabled ? activeChip.implicitHeight + activeChip.anchors.topMargin : 0) + Appearance.padding.large * 2
-
- radius: Appearance.rounding.normal
- color: Colours.tPalette.m3surfaceContainer
- clip: true
-
- RowLayout {
- id: layout
-
- anchors.top: parent.top
- anchors.left: parent.left
- anchors.right: parent.right
- anchors.margins: Appearance.padding.large
- spacing: Appearance.spacing.normal
-
- StyledRect {
- implicitWidth: implicitHeight
- implicitHeight: icon.implicitHeight + Appearance.padding.smaller * 2
-
- radius: Appearance.rounding.full
- color: IdleInhibitor.enabled ? Colours.palette.m3secondary : Colours.palette.m3secondaryContainer
-
- MaterialIcon {
- id: icon
-
- anchors.centerIn: parent
- text: "coffee"
- color: IdleInhibitor.enabled ? Colours.palette.m3onSecondary : Colours.palette.m3onSecondaryContainer
- font.pointSize: Appearance.font.size.large
- }
- }
-
- ColumnLayout {
- Layout.fillWidth: true
- spacing: 0
-
- StyledText {
- Layout.fillWidth: true
- text: qsTr("Keep Awake")
- font.pointSize: Appearance.font.size.normal
- elide: Text.ElideRight
- }
-
- StyledText {
- Layout.fillWidth: true
- text: IdleInhibitor.enabled ? qsTr("Preventing sleep mode") : qsTr("Normal power management")
- color: Colours.palette.m3onSurfaceVariant
- font.pointSize: Appearance.font.size.small
- elide: Text.ElideRight
- }
- }
-
- StyledSwitch {
- checked: IdleInhibitor.enabled
- onToggled: IdleInhibitor.enabled = checked
- }
- }
-
- Loader {
- id: activeChip
-
- anchors.bottom: parent.bottom
- anchors.left: parent.left
- anchors.topMargin: Appearance.spacing.larger
- anchors.bottomMargin: IdleInhibitor.enabled ? Appearance.padding.large : -implicitHeight
- anchors.leftMargin: Appearance.padding.large
-
- opacity: IdleInhibitor.enabled ? 1 : 0
- scale: IdleInhibitor.enabled ? 1 : 0.5
-
- Component.onCompleted: active = Qt.binding(() => opacity > 0)
-
- sourceComponent: StyledRect {
- implicitWidth: activeText.implicitWidth + Appearance.padding.normal * 2
- implicitHeight: activeText.implicitHeight + Appearance.padding.small * 2
-
- radius: Appearance.rounding.full
- color: Colours.palette.m3primary
-
- StyledText {
- id: activeText
-
- anchors.centerIn: parent
- text: qsTr("Active since %1").arg(Qt.formatTime(IdleInhibitor.enabledSince, Config.services.useTwelveHourClock ? "hh:mm a" : "hh:mm"))
- color: Colours.palette.m3onPrimary
- font.pointSize: Math.round(Appearance.font.size.small * 0.9)
- }
- }
-
- Behavior on anchors.bottomMargin {
- Anim {
- duration: Appearance.anim.durations.expressiveDefaultSpatial
- easing.bezierCurve: Appearance.anim.curves.expressiveDefaultSpatial
- }
- }
-
- Behavior on opacity {
- Anim {
- duration: Appearance.anim.durations.small
- }
- }
-
- Behavior on scale {
- Anim {}
- }
- }
-
- Behavior on implicitHeight {
- Anim {
- duration: Appearance.anim.durations.expressiveDefaultSpatial
- easing.bezierCurve: Appearance.anim.curves.expressiveDefaultSpatial
- }
- }
-}