From 467c16465ff1520f117e6c5925ac3b9799a520d8 Mon Sep 17 00:00:00 2001 From: Stuart Breckenridge Date: Fri, 3 Jul 2020 21:43:55 +0800 Subject: [PATCH] add feed changes sorts alignment issues with monospaced fonts. --- Multiplatform/Shared/Add/AddFeedView.swift | 27 +++++++++++++++++----- 1 file changed, 21 insertions(+), 6 deletions(-) diff --git a/Multiplatform/Shared/Add/AddFeedView.swift b/Multiplatform/Shared/Add/AddFeedView.swift index 826f7f221..0481844be 100644 --- a/Multiplatform/Shared/Add/AddFeedView.swift +++ b/Multiplatform/Shared/Add/AddFeedView.swift @@ -77,15 +77,25 @@ struct AddFeedView: View { #if os(macOS) var macForm: some View { VStack(alignment: .leading) { + HStack { + Spacer() + Image(systemName: "globe").foregroundColor(.accentColor).font(.title) + Text("Add a Web Feed") + .font(.title) + Spacer() + } urlTextField .textFieldStyle(RoundedBorderTextFieldStyle()) + .help("The URL of the feed you want to add.") providedNameTextField .textFieldStyle(RoundedBorderTextFieldStyle()) + .help("The name of the feed. (Optional.)") folderPicker + .help("Pick the folder you want to add the feed to.") buttonStack } .padding() - .frame(minWidth: 400) + .frame(minWidth: 450) } #endif @@ -101,20 +111,20 @@ struct AddFeedView: View { var urlTextField: some View { HStack { - Text("Feed URL:") + Text("Feed: ").font(.system(.body, design: .monospaced)) TextField("URL", text: $viewModel.providedURL) } } var providedNameTextField: some View { HStack(alignment: .lastTextBaseline) { - Text("Name:") + Text("Name: ").font(.system(.body, design: .monospaced)) TextField("Optional", text: $viewModel.providedName) } } var folderPicker: some View { - Picker("Folder", selection: $viewModel.selectedFolderIndex, content: { + Picker("Folder:", selection: $viewModel.selectedFolderIndex, content: { ForEach(0..