Update UI opacity

This commit is contained in:
Beingpax 2025-06-24 16:39:28 +05:45
parent cb5a515d70
commit eedd8667da
2 changed files with 3 additions and 4 deletions

View File

@ -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

View File

@ -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)