From 73b3d9b2345cd3b907318f1a52b3014ba278ba80 Mon Sep 17 00:00:00 2001 From: neon443 <69979447+neon443@users.noreply.github.com> Date: Wed, 14 May 2025 21:20:55 +0100 Subject: [PATCH] update widget to imporve readablity and add red for past bump version add whats new --- Config.xcconfig | 2 +- NearFuture/Views/Settings/WhatsNewView.swift | 5 +++++ NearFutureWidgets/NearFutureWidgets.swift | 16 ++++++++-------- 3 files changed, 14 insertions(+), 9 deletions(-) diff --git a/Config.xcconfig b/Config.xcconfig index 002a18d..3b0ec24 100644 --- a/Config.xcconfig +++ b/Config.xcconfig @@ -12,6 +12,6 @@ TEAM_ID = 8JGND254B7 BUNDLE_ID = com.neon443.NearFuture BUNDLE_ID_WIDGETS = com.neon443.NearFuture.widgets GROUP_ID = group.NearFuture -VERSION = 4.3 +VERSION = 4.3.1 NAME = Near Future BUILD_NUMBER = 1 diff --git a/NearFuture/Views/Settings/WhatsNewView.swift b/NearFuture/Views/Settings/WhatsNewView.swift index 21fc52a..f9effb4 100644 --- a/NearFuture/Views/Settings/WhatsNewView.swift +++ b/NearFuture/Views/Settings/WhatsNewView.swift @@ -23,6 +23,11 @@ struct WhatsNewView: View { title: "App Icons", subtitle: "You now get a special app icon that matches the color you choose in settings!" ), + WhatsNewChunk( + symbol: "apps.iphone", + title: "Widgets Day Count Fix", + subtitle: "The day count for widgets are now red for overdue events, just like the app, and are now more readable" + ), WhatsNewChunk( symbol: settingsModel.device.sf, title: "This Screen", diff --git a/NearFutureWidgets/NearFutureWidgets.swift b/NearFutureWidgets/NearFutureWidgets.swift index e4c4eb3..7129e33 100644 --- a/NearFutureWidgets/NearFutureWidgets.swift +++ b/NearFutureWidgets/NearFutureWidgets.swift @@ -128,17 +128,17 @@ struct EventWidgetView: View { Spacer() //short days till if not large widget - if isLarge { - Text(daysUntilEvent(event.date).long) - .font(.caption) - .multilineTextAlignment(.trailing) - .foregroundColor(event.color.color) - .padding(.trailing, -12) - } else { + if !isLarge { Text(daysUntilEvent(event.date).short) .font(.caption) .multilineTextAlignment(.trailing) - .foregroundColor(event.color.color) + .foregroundColor(event.date < Date() ? .red : .primary) + .padding(.trailing, -12) + } else { + Text(daysUntilEvent(event.date).long) + .font(.caption) + .multilineTextAlignment(.trailing) + .foregroundColor(event.date < Date() ? .red : .primary) .padding(.trailing, -12) } }