update widget

to imporve readablity and add red for past
bump version
add whats new
This commit is contained in:
neon443 committed 2025-05-14 21:20:55 +01:00
1 parent 0a17ec6292
commit 73b3d9b234
3 files changed
+14 -9

No files matched your search

+8 -8
View File
@@ -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)
}
}
Reference in new issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.