mirror of
https://github.com/noctalia-dev/noctalia-shell.git
synced 2026-05-11 17:08:27 +08:00
20 lines
478 B
QML
20 lines
478 B
QML
import QtQuick.Layouts
|
|
import Quickshell
|
|
import Quickshell.Services.UPower
|
|
import qs.Commons
|
|
import qs.Services.Power
|
|
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("control-center.power-profile.tooltip-action")
|
|
onClicked: PowerProfileService.cycleProfile()
|
|
}
|