mirror of
https://github.com/zoriya/noctalia-shell.git
synced 2026-08-15 10:33:34 +00:00
QuickSettings: customization!?
This commit is contained in:
@@ -6,17 +6,20 @@ import qs.Services
|
||||
import qs.Widgets
|
||||
|
||||
// Performance
|
||||
NButton {
|
||||
NQuickSetting {
|
||||
property ShellScreen screen
|
||||
property real scaling: 1.0
|
||||
readonly property bool hasPP: PowerProfileService.available
|
||||
|
||||
enabled: hasPP
|
||||
outlined: true
|
||||
text: PowerProfileService.getName()
|
||||
fontSize: Style.fontSizeS * scaling
|
||||
fontWeight: Style.fontWeightRegular
|
||||
fontWeight: Style.fontWeightMedium
|
||||
icon: PowerProfileService.getIcon()
|
||||
active: hasPP
|
||||
tooltipText: hasPP ? "Current: " + PowerProfileService.getName() : "Power profiles not available"
|
||||
style: Settings.data.controlCenter.quickSettingsStyle || "modern"
|
||||
|
||||
onClicked: {
|
||||
PowerProfileService.cycleProfile()
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user