implement default power mode quick change

This commit is contained in:
Alexey Haidamaka 2025-09-02 14:45:51 +02:00
parent 8422d07a05
commit 0ca1d78041

View File

@ -182,18 +182,16 @@ struct ConfigurationView: View {
}
// Default Power Mode Toggle
if !powerModeManager.hasDefaultConfiguration() || isCurrentConfigDefault {
HStack {
Toggle("Set as default power mode", isOn: $isDefault)
.font(.system(size: 14))
InfoTip(
title: "Default Power Mode",
message: "Default power mode is used when no specific app or website matches are found"
)
Spacer()
}
HStack {
Toggle("Set as default power mode", isOn: $isDefault)
.font(.system(size: 14))
InfoTip(
title: "Default Power Mode",
message: "Default power mode is used when no specific app or website matches are found"
)
Spacer()
}
}
.padding(.horizontal, 20)