closed #58
This commit is contained in:
@@ -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])
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user