WIP: New themes and reader preferences for iOS

This commit is contained in:
Jackson Harper
2022-10-28 09:32:00 +08:00
parent 8712a3efef
commit 467a37e8cc
17 changed files with 236 additions and 93 deletions

View File

@ -240,7 +240,8 @@ struct WebReaderContainerView: View {
}
.frame(height: readerViewNavBarHeight * navBarVisibilityRatio)
.opacity(navBarVisibilityRatio)
.background(Color.systemBackground)
.background(Color.black)
.background(Theme.fromName(themeName: ThemeManager.currentThemeName)?.bgColor ?? .clear)
.alert("Are you sure?", isPresented: $showDeleteConfirmation) {
Button("Remove Link", role: .destructive) {
Snackbar.show(message: "Link removed")
@ -301,6 +302,7 @@ struct WebReaderContainerView: View {
annotation: $annotation,
showBottomBar: $showBottomBar
)
.background(Theme.fromName(themeName: ThemeManager.currentThemeName)?.bgColor ?? .clear)
.onTapGesture {
withAnimation {
navBarVisibilityRatio = 1