mirror of
https://github.com/noctalia-dev/noctalia-shell.git
synced 2026-05-11 17:08:27 +08:00
22 lines
480 B
QML
22 lines
480 B
QML
import QtQuick.Layouts
|
|
import Quickshell
|
|
import Quickshell.Services.UPower
|
|
import qs.Commons
|
|
import qs.Services
|
|
import qs.Widgets
|
|
|
|
// Performance
|
|
NIconButtonHot {
|
|
property ShellScreen screen
|
|
|
|
readonly property bool hasPP: PowerProfileService.available
|
|
|
|
enabled: hasPP
|
|
icon: PowerProfileService.getIcon()
|
|
hot: !PowerProfileService.isDefault()
|
|
tooltipText: I18n.tr("quickSettings.powerProfile.tooltip.action")
|
|
onClicked: {
|
|
PowerProfileService.cycleProfile()
|
|
}
|
|
}
|