Remove disable power mode option and update default icon to sparkles

This commit is contained in:
Beingpax 2025-08-06 13:23:49 +05:45
parent f7987cd4bd
commit 1a59b0e5f7
2 changed files with 1 additions and 20 deletions

View File

@ -17,25 +17,6 @@ struct PowerModePopover: View {
ScrollView {
VStack(alignment: .leading, spacing: 4) {
if powerModeManager.activeConfiguration != nil {
Button(action: {
powerModeManager.setActiveConfiguration(nil)
selectedConfig = nil
}) {
HStack {
Text("Disable Power Mode")
.foregroundColor(.red.opacity(0.9))
.font(.system(size: 13))
Spacer()
Image(systemName: "xmark.circle.fill")
.foregroundColor(.red.opacity(0.9))
}
.padding(.vertical, 4)
.padding(.horizontal, 8)
}
.buttonStyle(.plain)
}
ForEach(powerModeManager.configurations) { config in
PowerModeRow(
config: config,

View File

@ -150,7 +150,7 @@ struct RecorderPowerModeButton: View {
var body: some View {
RecorderToggleButton(
isEnabled: !powerModeManager.enabledConfigurations.isEmpty,
icon: powerModeManager.currentActiveConfiguration?.emoji ?? "⚙️",
icon: powerModeManager.currentActiveConfiguration?.emoji ?? "",
color: .orange,
disabled: powerModeManager.enabledConfigurations.isEmpty
) {