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 // Default Power Mode Toggle
if !powerModeManager.hasDefaultConfiguration() || isCurrentConfigDefault { HStack {
HStack { Toggle("Set as default power mode", isOn: $isDefault)
Toggle("Set as default power mode", isOn: $isDefault) .font(.system(size: 14))
.font(.system(size: 14))
InfoTip(
InfoTip( title: "Default Power Mode",
title: "Default Power Mode", message: "Default power mode is used when no specific app or website matches are found"
message: "Default power mode is used when no specific app or website matches are found" )
)
Spacer()
Spacer()
}
} }
} }
.padding(.horizontal, 20) .padding(.horizontal, 20)