This commit is contained in:
Trey t
2022-02-04 17:18:38 -06:00
parent 1671481623
commit dc360de355
2 changed files with 3 additions and 7 deletions

View File

@@ -34,8 +34,9 @@ struct ContentView: View {
@ObservedObject var viewModel = ContentModeViewModel()
init(){
UIPageControl.appearance().currentPageIndicatorTintColor = UIColor.label
UIPageControl.appearance().pageIndicatorTintColor = UIColor.black.withAlphaComponent(0.2)
UITabBar.appearance().backgroundColor = theme.secondaryBGColor
print(theme)
}
var body: some View {
@@ -264,7 +265,7 @@ struct ContentView: View {
.frame(minWidth: 0, maxWidth: .infinity)
} else {
// selection hre doesn't work ...
TabView(selection: $mainViewTopHeaderIndex) {
TabView {
SwitchableView(daysBack: 30)
.frame(height: headerHeight)
.frame(minWidth: 0, maxWidth: .infinity)
@@ -276,10 +277,6 @@ struct ContentView: View {
.contentShape(Rectangle())
}
.tabViewStyle(.page)
.onAppear {
UIPageControl.appearance().currentPageIndicatorTintColor = UIColor.label
UIPageControl.appearance().pageIndicatorTintColor = UIColor.black.withAlphaComponent(0.2)
}
.padding([.trailing, .leading])
}
}

View File

@@ -261,7 +261,6 @@ struct SettingsView: View {
ForEach(Theme.allCases, id:\.rawValue) { aTheme in
Button(action: {
theme = aTheme
print(theme)
}, label: {
VStack {
aTheme.preview