Merge pull request #208 from ThatOneCalculator/feat/power-toggle-widget

feat: power toggle bar widget
This commit is contained in:
Lemmy
2025-09-04 15:30:56 -04:00
committed by GitHub
2 changed files with 27 additions and 0 deletions
+23
View File
@@ -0,0 +1,23 @@
import QtQuick
import QtQuick.Layouts
import Quickshell
import qs.Commons
import qs.Services
import qs.Widgets
NIconButton {
id: root
property ShellScreen screen
property real scaling: 1.0
sizeRatio: 0.8
icon: "power_settings_new"
tooltipText: "Power Settings"
colorBg: Color.mSurfaceVariant
colorFg: Color.mError
colorBorder: Color.transparent
colorBorderHover: Color.transparent
onClicked: PanelService.getPanel("powerPanel")?.toggle(screen)
}