everything changed

This commit is contained in:
Trey t
2022-02-20 14:33:58 -06:00
parent 1cf38cb854
commit 0035f61204
50 changed files with 2155 additions and 875 deletions

View File

@@ -23,7 +23,8 @@ struct CurrentStreakTemplate: View, SharingTemplate {
@State var showSharingTemplate = false
@Environment(\.presentationMode) var presentationMode
@AppStorage(UserDefaultsStore.Keys.moodTint.rawValue, store: GroupUserDefaults.groupDefaults) private var moodTint: MoodTints = .Default
@AppStorage(UserDefaultsStore.Keys.theme.rawValue, store: GroupUserDefaults.groupDefaults) private var theme: Theme = .system
let columns = [
GridItem(.flexible(minimum: 5, maximum: .infinity), alignment: .center),
@@ -60,7 +61,7 @@ struct CurrentStreakTemplate: View, SharingTemplate {
entry.mood.icon
.resizable()
.aspectRatio(contentMode: .fit)
.foregroundColor(entry.mood.color)
.foregroundColor(moodTint.color(forMood: entry.mood))
}
}
}
@@ -72,7 +73,7 @@ struct CurrentStreakTemplate: View, SharingTemplate {
VStack {
Text(String(format: String(localized: "share_view_current_streak_template_title")))
.font(.title)
.foregroundColor(Color(UIColor.label))
.foregroundColor(theme.currentTheme.labelColor)
.frame(maxWidth: .infinity, alignment: .center)
.padding(.top)
@@ -83,7 +84,7 @@ struct CurrentStreakTemplate: View, SharingTemplate {
entry.mood.icon
.resizable()
.aspectRatio(contentMode: .fit)
.foregroundColor(entry.mood.color)
.foregroundColor(moodTint.color(forMood: entry.mood))
}
}
}
@@ -141,7 +142,8 @@ struct CurrentStreakTemplate: View, SharingTemplate {
.padding([.leading, .trailing], -20)
} else {
mainView
.padding([.leading, .trailing])
.padding([.leading, .trailing, .top])
}
}
}