diff --git a/oAI/Views/Screens/ModelSelectorView.swift b/oAI/Views/Screens/ModelSelectorView.swift index c4d51e3..34ac660 100644 --- a/oAI/Views/Screens/ModelSelectorView.swift +++ b/oAI/Views/Screens/ModelSelectorView.swift @@ -121,10 +121,7 @@ struct ModelSelectorView: View { .font(.caption) .padding(.horizontal, 10) .padding(.vertical, 6) - .glassEffect( - selectedCategory != nil ? .regular.tint(selectedCategory!.color) : .regular, - in: .rect(cornerRadius: 6) - ) + .glassEffect(.regular, in: .rect(cornerRadius: 6)) .foregroundColor(selectedCategory != nil ? selectedCategory!.color : .secondary) } .buttonStyle(.plain) @@ -144,7 +141,7 @@ struct ModelSelectorView: View { .font(.caption) .padding(.horizontal, 10) .padding(.vertical, 6) - .glassEffect(filterFavorites ? .regular.tint(.yellow) : .regular, in: .rect(cornerRadius: 6)) + .glassEffect(.regular, in: .rect(cornerRadius: 6)) .foregroundColor(filterFavorites ? .yellow : .secondary) } .buttonStyle(.plain) @@ -172,7 +169,7 @@ struct ModelSelectorView: View { .font(.caption) .padding(.horizontal, 10) .padding(.vertical, 6) - .glassEffect(sortOrder != .default ? .regular.tint(.blue) : .regular, in: .rect(cornerRadius: 6)) + .glassEffect(.regular, in: .rect(cornerRadius: 6)) .foregroundColor(sortOrder != .default ? .blue : .secondary) } .menuStyle(.borderlessButton) @@ -297,7 +294,7 @@ struct FilterToggle: View { .font(.caption) .padding(.horizontal, 10) .padding(.vertical, 6) - .glassEffect(isOn ? .regular.tint(.blue) : .regular, in: .rect(cornerRadius: 6)) + .glassEffect(.regular, in: .rect(cornerRadius: 6)) .foregroundColor(isOn ? .blue : .secondary) } .buttonStyle(.plain) diff --git a/oAI/Views/Screens/SettingsView.swift b/oAI/Views/Screens/SettingsView.swift index 6266425..7f7c181 100644 --- a/oAI/Views/Screens/SettingsView.swift +++ b/oAI/Views/Screens/SettingsView.swift @@ -639,7 +639,9 @@ It's better to admit "I need more information" or "I cannot do that" than to fak Button(action: { selectedMCPSubsection = section }) { Group { if selectedMCPSubsection == section { - mcpSidebarRowLabel(section).glassEffect(.regular.tint(.blue), in: .rect(cornerRadius: 8)) + // Untinted — see tabButton's comment on why a colored tint here renders + // as a near-opaque block instead of translucent glass. + mcpSidebarRowLabel(section).glassEffect(.regular, in: .rect(cornerRadius: 8)) } else { mcpSidebarRowLabel(section) } @@ -3322,16 +3324,18 @@ It's better to admit "I need more information" or "I cannot do that" than to fak let selected = selectedTab == tag Group { if selected { + // Untinted glass — the blue comes from the icon/text foreground color below, + // not the glass itself. A colored tint here renders as a near-opaque solid + // block rather than translucent glass (found live, see CLAUDE.md's gotcha). Button(action: { selectedTab = tag }) { tabButtonLabel(icon: icon, label: label, beta: beta, selected: true) } - .buttonStyle(.glassProminent) - .tint(.blue) + .buttonStyle(.glass) } else { Button(action: { selectedTab = tag }) { tabButtonLabel(icon: icon, label: label, beta: beta, selected: false) } - .buttonStyle(.glass) + .buttonStyle(.plain) } } .buttonBorderShape(.roundedRectangle(radius: 8))