mirror of
https://github.com/zoriya/noctalia-shell.git
synced 2026-08-05 13:57:36 +00:00
22 lines
545 B
QML
22 lines
545 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: hasPP ? I18n.tr("quickSettings.powerProfile.tooltip.action") : I18n.tr("quickSettings.powerProfile.tooltip.disabled")
|
|
onClicked: {
|
|
PowerProfileService.cycleProfile()
|
|
}
|
|
}
|