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

View File

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