mirror of
https://github.com/Ranchero-Software/NetNewsWire
synced 2025-08-12 06:26:36 +00:00
makes feed icons a bit bigger
This commit is contained in:
@@ -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 {
|
||||
|
||||
@@ -27,7 +27,7 @@ struct StarredWidgetView : View {
|
||||
Spacer()
|
||||
nnwImage
|
||||
}
|
||||
VStack(alignment:.leading, spacing: 4) {
|
||||
VStack(alignment:.leading, spacing: 2) {
|
||||
ForEach(0..<maxCount(), content: { i in
|
||||
ArticleItemView(article: entry.widgetData.starredArticles[i],
|
||||
deepLink: WidgetDeepLink.starredArticle(id: entry.widgetData.starredArticles[i].id).url)
|
||||
|
||||
@@ -27,7 +27,7 @@ struct TodayWidgetView : View {
|
||||
Spacer()
|
||||
nnwImage
|
||||
}
|
||||
VStack(alignment:.leading, spacing: 4) {
|
||||
VStack(alignment:.leading, spacing: 2) {
|
||||
ForEach(0..<maxCount(), content: { i in
|
||||
ArticleItemView(article: entry.widgetData.todayArticles[i],
|
||||
deepLink: WidgetDeepLink.todayArticle(id: entry.widgetData.todayArticles[i].id).url)
|
||||
|
||||
@@ -27,7 +27,7 @@ struct UnreadWidgetView : View {
|
||||
Spacer()
|
||||
nnwImage
|
||||
}
|
||||
VStack(alignment:.leading, spacing: 4) {
|
||||
VStack(alignment:.leading, spacing: 2) {
|
||||
ForEach(0..<maxCount(), content: { i in
|
||||
ArticleItemView(article: entry.widgetData.unreadArticles[i],
|
||||
deepLink: WidgetDeepLink.unreadArticle(id: entry.widgetData.unreadArticles[i].id).url)
|
||||
|
||||
Reference in New Issue
Block a user