iOS: allow settings light mode

This commit is contained in:
Peter Steinberger
2025-12-18 01:29:45 +01:00
parent f4b186a9d3
commit 568fcbda54
3 changed files with 73 additions and 37 deletions

View File

@@ -28,6 +28,7 @@ struct StatusPill: View {
var bridge: BridgeState
var voiceWakeEnabled: Bool
var brighten: Bool = false
var onTap: () -> Void
@State private var pulse: Bool = false
@@ -63,7 +64,7 @@ struct StatusPill: View {
.fill(.ultraThinMaterial)
.overlay {
RoundedRectangle(cornerRadius: 14, style: .continuous)
.strokeBorder(.white.opacity(0.18), lineWidth: 0.5)
.strokeBorder(.white.opacity(self.brighten ? 0.24 : 0.18), lineWidth: 0.5)
}
.shadow(color: .black.opacity(0.25), radius: 12, y: 6)
}

View File

@@ -2,6 +2,7 @@ import SwiftUI
struct VoiceWakeToast: View {
var command: String
var brighten: Bool = false
var body: some View {
HStack(spacing: 10) {
@@ -22,7 +23,7 @@ struct VoiceWakeToast: View {
.fill(.ultraThinMaterial)
.overlay {
RoundedRectangle(cornerRadius: 14, style: .continuous)
.strokeBorder(.white.opacity(0.18), lineWidth: 0.5)
.strokeBorder(.white.opacity(self.brighten ? 0.24 : 0.18), lineWidth: 0.5)
}
.shadow(color: .black.opacity(0.25), radius: 12, y: 6)
}