mirror of
https://github.com/neon443/NearFuture.git
synced 2026-03-11 14:56:15 +00:00
update widget
to imporve readablity and add red for past bump version add whats new
This commit is contained in:
@@ -12,6 +12,6 @@ TEAM_ID = 8JGND254B7
|
|||||||
BUNDLE_ID = com.neon443.NearFuture
|
BUNDLE_ID = com.neon443.NearFuture
|
||||||
BUNDLE_ID_WIDGETS = com.neon443.NearFuture.widgets
|
BUNDLE_ID_WIDGETS = com.neon443.NearFuture.widgets
|
||||||
GROUP_ID = group.NearFuture
|
GROUP_ID = group.NearFuture
|
||||||
VERSION = 4.3
|
VERSION = 4.3.1
|
||||||
NAME = Near Future
|
NAME = Near Future
|
||||||
BUILD_NUMBER = 1
|
BUILD_NUMBER = 1
|
||||||
|
|||||||
@@ -23,6 +23,11 @@ struct WhatsNewView: View {
|
|||||||
title: "App Icons",
|
title: "App Icons",
|
||||||
subtitle: "You now get a special app icon that matches the color you choose in settings!"
|
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(
|
WhatsNewChunk(
|
||||||
symbol: settingsModel.device.sf,
|
symbol: settingsModel.device.sf,
|
||||||
title: "This Screen",
|
title: "This Screen",
|
||||||
|
|||||||
@@ -128,17 +128,17 @@ struct EventWidgetView: View {
|
|||||||
Spacer()
|
Spacer()
|
||||||
|
|
||||||
//short days till if not large widget
|
//short days till if not large widget
|
||||||
if isLarge {
|
if !isLarge {
|
||||||
Text(daysUntilEvent(event.date).long)
|
|
||||||
.font(.caption)
|
|
||||||
.multilineTextAlignment(.trailing)
|
|
||||||
.foregroundColor(event.color.color)
|
|
||||||
.padding(.trailing, -12)
|
|
||||||
} else {
|
|
||||||
Text(daysUntilEvent(event.date).short)
|
Text(daysUntilEvent(event.date).short)
|
||||||
.font(.caption)
|
.font(.caption)
|
||||||
.multilineTextAlignment(.trailing)
|
.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)
|
.padding(.trailing, -12)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user