built out themes a bit more

This commit is contained in:
Trey t
2022-02-06 14:15:16 -06:00
parent ea8ce75058
commit 3c6adce544
6 changed files with 108 additions and 80 deletions

View File

@@ -203,7 +203,7 @@ struct ContentView: View {
)
}
.background(
Color(theme.secondaryBGColor)
Color(theme.currentTheme.secondaryBGColor)
)
.coordinateSpace(name: "scroll")
.onPreferenceChange(ViewOffsetKey.self) { value in
@@ -223,7 +223,7 @@ struct ContentView: View {
.frame(maxWidth: .infinity, alignment: .leading)
.padding()
.background(
Color(theme.secondaryBGColor)
Color(theme.currentTheme.secondaryBGColor)
)
}
@@ -305,7 +305,7 @@ struct ContentView: View {
private var emptyView: some View {
ZStack {
Color(theme.secondaryBGColor)
Color(theme.currentTheme.secondaryBGColor)
VStack {
Text(String(localized: "content_view_empty_title"))
@@ -347,7 +347,7 @@ struct ContentView: View {
VStack {
SmallRollUpHeaderView(fakeData: false, backDays: 30)
.background(
Color(theme.secondaryBGColor)
Color(theme.currentTheme.secondaryBGColor)
)
.cornerRadius(10, corners: [.topLeft, .topRight, .bottomLeft, .bottomRight])
.padding()
@@ -365,7 +365,7 @@ struct ContentView: View {
}
.padding(.bottom, 5)
.background(
theme.bg
theme.currentTheme.bg
.edgesIgnoringSafeArea(.all)
)
}