From eedd8667da8d1804703d3e7b31e97b06c073ae0d Mon Sep 17 00:00:00 2001 From: Beingpax Date: Tue, 24 Jun 2025 16:39:28 +0545 Subject: [PATCH] Update UI opacity --- VoiceInk/Services/OllamaService.swift | 5 +---- VoiceInk/Views/EnhancementSettingsView.swift | 2 ++ 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/VoiceInk/Services/OllamaService.swift b/VoiceInk/Services/OllamaService.swift index 57d813d..ae9b9ef 100644 --- a/VoiceInk/Services/OllamaService.swift +++ b/VoiceInk/Services/OllamaService.swift @@ -52,10 +52,7 @@ class OllamaService: ObservableObject { init() { self.baseURL = UserDefaults.standard.string(forKey: "ollamaBaseURL") ?? Self.defaultBaseURL - self.selectedModel = UserDefaults.standard.string(forKey: "ollamaSelectedModel") ?? "llama2" - - // Note: Removed automatic initialization to prevent startup delays - // Connection check and model refresh will be called when actually needed + self.selectedModel = UserDefaults.standard.string(forKey: "ollamaSelectedModel") ?? "llama2" } @MainActor diff --git a/VoiceInk/Views/EnhancementSettingsView.swift b/VoiceInk/Views/EnhancementSettingsView.swift index 2906378..5fdf984 100644 --- a/VoiceInk/Views/EnhancementSettingsView.swift +++ b/VoiceInk/Views/EnhancementSettingsView.swift @@ -81,6 +81,7 @@ struct EnhancementSettingsView: View { .padding() .background(Color(.windowBackgroundColor).opacity(0.4)) .cornerRadius(10) + .opacity(enhancementService.isEnhancementEnabled ? 1.0 : 0.6) // 3. Enhancement Modes & Assistant Section VStack(alignment: .leading, spacing: 16) { @@ -110,6 +111,7 @@ struct EnhancementSettingsView: View { .padding() .background(Color(.windowBackgroundColor).opacity(0.4)) .cornerRadius(10) + .opacity(enhancementService.isEnhancementEnabled ? 1.0 : 0.6) } } .padding(24)