From 1665228cd9d890bfe02dc492a91651daec845dc7 Mon Sep 17 00:00:00 2001 From: 2 * r + 2 * t <61896496+soramanew@users.noreply.github.com> Date: Tue, 12 Aug 2025 00:37:38 +1000 Subject: internal: clean up old lock files --- modules/lock/Buttons.qml | 109 ----------------------------------------------- 1 file changed, 109 deletions(-) delete mode 100644 modules/lock/Buttons.qml (limited to 'modules/lock/Buttons.qml') 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 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 - } - } -} -- cgit v1.2.3-freya