From fa26fd565e90a305abcaa099fa66d09dd2b978a7 Mon Sep 17 00:00:00 2001 From: Stuart Breckenridge Date: Thu, 19 Nov 2020 16:32:44 +0800 Subject: [PATCH] makes feed icons a bit bigger --- NetNewsWire.xcodeproj/project.pbxproj | 4 ++-- Widget/Shared Views/ArticleItemView.swift | 7 ++++--- Widget/Widget Views/StarredWidget.swift | 2 +- Widget/Widget Views/TodayWidget.swift | 2 +- Widget/Widget Views/UnreadWidget.swift | 2 +- iOS/SceneDelegate.swift | 2 +- 6 files changed, 10 insertions(+), 9 deletions(-) diff --git a/NetNewsWire.xcodeproj/project.pbxproj b/NetNewsWire.xcodeproj/project.pbxproj index 5074575d1..41fcd9420 100644 --- a/NetNewsWire.xcodeproj/project.pbxproj +++ b/NetNewsWire.xcodeproj/project.pbxproj @@ -4487,7 +4487,7 @@ /* Begin PBXShellScriptBuildPhase section */ 515D50802326D02600EE1167 /* Run Script: Verify No Build Settings */ = { isa = PBXShellScriptBuildPhase; - buildActionMask = 12; + buildActionMask = 8; files = ( ); inputFileListPaths = ( @@ -4499,7 +4499,7 @@ ); outputPaths = ( ); - runOnlyForDeploymentPostprocessing = 0; + runOnlyForDeploymentPostprocessing = 1; shellPath = /bin/sh; shellScript = "xcrun -sdk macosx swiftc -target x86_64-macosx10.11 buildscripts/VerifyNoBuildSettings.swift -o $CONFIGURATION_TEMP_DIR/VerifyNoBS\n$CONFIGURATION_TEMP_DIR/VerifyNoBS ${PROJECT_NAME}.xcodeproj/project.pbxproj\n\n\nif [ $? -ne 0 ]\nthen\n echo \"error: Build Setting were found in the project.pbxproj file. Most likely you didn't intend to change this file and should revert it.\"\n exit 1\nfi\n"; }; diff --git a/Widget/Shared Views/ArticleItemView.swift b/Widget/Shared Views/ArticleItemView.swift index 531ba9e07..929ff96e6 100644 --- a/Widget/Shared Views/ArticleItemView.swift +++ b/Widget/Shared Views/ArticleItemView.swift @@ -19,16 +19,17 @@ struct ArticleItemView: View { // Feed Icon Image(uiImage: thumbnail(article.feedIcon)) .resizable() - .frame(width: 20, height: 20, alignment: .top) + .frame(width: 25, height: 25) .cornerRadius(4) // Title and Feed Name VStack(alignment: .leading) { Text(article.articleTitle ?? "Untitled") - .font(.caption) + .font(.footnote) .bold() .lineLimit(1) .foregroundColor(.primary) + .padding(.top, -3) HStack { Text(article.feedTitle) @@ -43,7 +44,7 @@ struct ArticleItemView: View { } } }) - }) + }).padding(.bottom, 4) } func thumbnail(_ data: Data?) -> UIImage { diff --git a/Widget/Widget Views/StarredWidget.swift b/Widget/Widget Views/StarredWidget.swift index 3704a8a7f..630669e23 100644 --- a/Widget/Widget Views/StarredWidget.swift +++ b/Widget/Widget Views/StarredWidget.swift @@ -27,7 +27,7 @@ struct StarredWidgetView : View { Spacer() nnwImage } - VStack(alignment:.leading, spacing: 4) { + VStack(alignment:.leading, spacing: 2) { ForEach(0..