summaryrefslogtreecommitdiff
path: root/modules/lock/Buttons.qml
diff options
context:
space:
mode:
author2 * r + 2 * t <61896496+soramanew@users.noreply.github.com>2025-08-12 00:37:38 +1000
committer2 * r + 2 * t <61896496+soramanew@users.noreply.github.com>2025-08-12 00:37:38 +1000
commit1665228cd9d890bfe02dc492a91651daec845dc7 (patch)
treeba8c34571f3df45f5b3191d32f31b33dd311a2c0 /modules/lock/Buttons.qml
parentlock: fix input colour (diff)
downloadcaelestia-shell-1665228cd9d890bfe02dc492a91651daec845dc7.tar.gz
caelestia-shell-1665228cd9d890bfe02dc492a91651daec845dc7.tar.bz2
caelestia-shell-1665228cd9d890bfe02dc492a91651daec845dc7.zip
internal: clean up old lock files
Diffstat (limited to 'modules/lock/Buttons.qml')
-rw-r--r--modules/lock/Buttons.qml109
1 files changed, 0 insertions, 109 deletions
diff --git a/modules/lock/Buttons.qml b/modules/lock/Buttons.qml
deleted file mode 100644
index 78675ec..0000000
--- a/modules/lock/Buttons.qml
+++ /dev/null
@@ -1,109 +0,0 @@
-pragma ComponentBehavior: Bound
-
-import qs.components
-import qs.services
-import qs.config
-import Quickshell
-import QtQuick
-import QtQuick.Layouts
-
-Item {
- id: root
-
- readonly property real nonAnimMargin: handler.hovered ? Appearance.padding.large * 1.5 : Appearance.padding.large
- readonly property real nonAnimWidth: handler.hovered ? Config.lock.sizes.buttonsWidth : Config.lock.sizes.buttonsWidthSmall
- readonly property real nonAnimHeight: (nonAnimWidth + nonAnimMargin * 2) / 4
-
- implicitWidth: nonAnimWidth
- implicitHeight: nonAnimHeight
-
- Behavior on implicitWidth {
- NumberAnimation {
- duration: Appearance.anim.durations.large
- easing.type: Easing.BezierSpline
- easing.bezierCurve: Appearance.anim.curves.emphasized
- }
- }
-
- Behavior on implicitHeight {
- NumberAnimation {
- duration: Appearance.anim.durations.large
- easing.type: Easing.BezierSpline
- easing.bezierCurve: Appearance.anim.curves.emphasized
- }
- }
-
- HoverHandler {
- id: handler
-
- target: parent
- }
-
- RowLayout {
- id: layout
-
- anchors.fill: parent
- anchors.margins: root.nonAnimMargin
- anchors.rightMargin: 0
- anchors.bottomMargin: 0
- spacing: Appearance.spacing.normal
-
- SessionButton {
- icon: "logout"
- command: Config.session.commands.logout
- }
-
- SessionButton {
- icon: "power_settings_new"
- command: Config.session.commands.shutdown
- }
-
- SessionButton {
- icon: "downloading"
- command: Config.session.commands.hibernate
- }
-
- SessionButton {
- icon: "cached"
- command: Config.session.commands.reboot
- }
-
- Behavior on anchors.margins {
- NumberAnimation {
- duration: Appearance.anim.durations.large
- easing.type: Easing.BezierSpline
- easing.bezierCurve: Appearance.anim.curves.emphasized
- }
- }
- }
-
- component SessionButton: StyledRect {
- required property string icon
- required property list<string> command
-
- Layout.fillWidth: true
- Layout.preferredHeight: width
-
- radius: Appearance.rounding.large * 1.2
- color: Colours.palette.m3secondaryContainer
-
- StateLayer {
- id: stateLayer
-
- color: Colours.palette.m3onSecondaryContainer
-
- function onClicked(): void {
- Quickshell.execDetached(parent.command);
- }
- }
-
- MaterialIcon {
- anchors.centerIn: parent
-
- text: parent.icon
- color: Colours.palette.m3onSecondaryContainer
- font.pointSize: (parent.width * 0.4) || 1
- font.weight: handler.hovered ? 500 : 400
- }
- }
-}