Fastest and only macOS Dictation app with on-device STT and custom trained AI enhancement model. Windows, iOS testflight! Android, Linux waitlist open! A local Wispr Flow alternative. Follow https://x.com/fluidvoiceapp for more
fix settings hosted theme
altic-dev25f2f6c7daf7
diff --git a/Sources/Fluid/UI/SettingsView.swift b/Sources/Fluid/UI/SettingsView.swiftindex 513b8871..a49fc0fa 100644--- a/Sources/Fluid/UI/SettingsView.swift+++ b/Sources/Fluid/UI/SettingsView.swift@@ -208,7 +208,7 @@ struct SettingsView: View {}var body: some View {- SettingsPersistentScrollView {+ SettingsPersistentScrollView(theme: self.theme, colorScheme: self.colorScheme) {VStack(spacing: 16) {// App Settings CardThemedCard(style: .standard) {@@ -2277,12 +2277,24 @@ private final class SettingsPersistentScroller: NSScroller {}private struct SettingsPersistentScrollView<Content: View>: NSViewRepresentable {+ private let theme: AppTheme+ private let colorScheme: ColorSchemeprivate let content: Content- init(@ViewBuilder content: () -> Content) {+ init(theme: AppTheme, colorScheme: ColorScheme, @ViewBuilder content: () -> Content) {+ self.theme = theme+ self.colorScheme = colorSchemeself.content = content()}+ private var hostedContent: AnyView {+ AnyView(+ self.content+ .appTheme(self.theme)+ .environment(\.colorScheme, self.colorScheme)+ )+ }+func makeNSView(context _: Context) -> NSScrollView {let scrollView = NSScrollView()scrollView.drawsBackground = false@@ -2296,7 +2308,7 @@ private struct SettingsPersistentScrollView<Content: View>: NSViewRepresentablescrollView.verticalScrollElasticity = .allowedscrollView.horizontalScrollElasticity = .none- let hostingView = NSHostingView(rootView: AnyView(self.content))+ let hostingView = NSHostingView(rootView: self.hostedContent)hostingView.translatesAutoresizingMaskIntoConstraints = falsehostingView.setContentHuggingPriority(.defaultLow, for: .horizontal)hostingView.setContentHuggingPriority(.required, for: .vertical)@@ -2313,7 +2325,7 @@ private struct SettingsPersistentScrollView<Content: View>: NSViewRepresentable}func updateNSView(_ scrollView: NSScrollView, context _: Context) {- (scrollView.documentView as? NSHostingView<AnyView>)?.rootView = AnyView(self.content)+ (scrollView.documentView as? NSHostingView<AnyView>)?.rootView = self.hostedContentscrollView.hasVerticalScroller = truescrollView.hasHorizontalScroller = falsescrollView.autohidesScrollers = false