diff --git a/DNSecure/Views/ContentView.swift b/DNSecure/Views/ContentView.swift index b856cf6..6b35ac4 100644 --- a/DNSecure/Views/ContentView.swift +++ b/DNSecure/Views/ContentView.swift @@ -305,14 +305,12 @@ extension ContentView: View { @ToolbarContentBuilder private var toolbarContent: some ToolbarContent { ToolbarItem(placement: .topBarLeading) { - Menu { + Menu("Add", systemImage: "plus") { Button("DNS-over-TLS", action: self.addNewDoTServer) Button("DNS-over-HTTPS", action: self.addNewDoHServer) Button("Restore from Presets") { self.isRestoring = true } - } label: { - Image(systemName: "plus") } .sheet(isPresented: self.$isRestoring) { RestorationView(onAdd: self.restoreFromPresets) @@ -330,10 +328,8 @@ extension ContentView: View { Text(self.isEnabled ? "Active" : "Inactive") } if !self.isEnabled { - Button { + Button("How to Activate", systemImage: "questionmark.circle") { self.isGuidePresented = true - } label: { - Label("How to Activate", systemImage: "questionmark.circle") } .labelStyle(.titleAndIcon) .font(.caption) diff --git a/DNSecure/Views/LazyTextField.swift b/DNSecure/Views/LazyTextField.swift index 9ffdbe8..d030845 100644 --- a/DNSecure/Views/LazyTextField.swift +++ b/DNSecure/Views/LazyTextField.swift @@ -26,13 +26,12 @@ extension LazyTextField: View { TextField(self.title, text: self.$localText) .focused(self.$isFocused) if self.isFocused && !self.localText.isEmpty { - Button { + Button("Clear", systemImage: "xmark.circle.fill") { self.text.removeAll() - } label: { - Image(systemName: "xmark.circle.fill") - .foregroundStyle(Color.primary) - .opacity(0.2) } + .foregroundStyle(Color.primary) + .opacity(0.2) + .labelStyle(.iconOnly) .buttonStyle(.borderless) .hoverEffect() }