File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -305,14 +305,12 @@ extension ContentView: View {
305305
306306 @ToolbarContentBuilder private var toolbarContent : some ToolbarContent {
307307 ToolbarItem ( placement: . topBarLeading) {
308- Menu {
308+ Menu ( " Add " , systemImage : " plus " ) {
309309 Button ( " DNS-over-TLS " , action: self . addNewDoTServer)
310310 Button ( " DNS-over-HTTPS " , action: self . addNewDoHServer)
311311 Button ( " Restore from Presets " ) {
312312 self . isRestoring = true
313313 }
314- } label: {
315- Image ( systemName: " plus " )
316314 }
317315 . sheet ( isPresented: self . $isRestoring) {
318316 RestorationView ( onAdd: self . restoreFromPresets)
@@ -330,10 +328,8 @@ extension ContentView: View {
330328 Text ( self . isEnabled ? " Active " : " Inactive " )
331329 }
332330 if !self . isEnabled {
333- Button {
331+ Button ( " How to Activate " , systemImage : " questionmark.circle " ) {
334332 self . isGuidePresented = true
335- } label: {
336- Label ( " How to Activate " , systemImage: " questionmark.circle " )
337333 }
338334 . labelStyle ( . titleAndIcon)
339335 . font ( . caption)
Original file line number Diff line number Diff line change @@ -26,13 +26,12 @@ extension LazyTextField: View {
2626 TextField ( self . title, text: self . $localText)
2727 . focused ( self . $isFocused)
2828 if self . isFocused && !self . localText. isEmpty {
29- Button {
29+ Button ( " Clear " , systemImage : " xmark.circle.fill " ) {
3030 self . text. removeAll ( )
31- } label: {
32- Image ( systemName: " xmark.circle.fill " )
33- . foregroundStyle ( Color . primary)
34- . opacity ( 0.2 )
3531 }
32+ . foregroundStyle ( Color . primary)
33+ . opacity ( 0.2 )
34+ . labelStyle ( . iconOnly)
3635 . buttonStyle ( . borderless)
3736 . hoverEffect ( )
3837 }
You can’t perform that action at this time.
0 commit comments