Add:Theme option setting #916

This commit is contained in:
advplyr 2023-12-11 18:11:17 -06:00
parent 1cf01a5d12
commit 9298065934
4 changed files with 63 additions and 2 deletions

View file

@ -245,6 +245,13 @@ export default ({ store, app }, inject) => {
const eventBus = new Vue()
inject('eventBus', eventBus)
// Set theme
app.$localStore?.getTheme()?.then((theme) => {
if (theme) {
document.documentElement.dataset.theme = theme
}
})
// iOS Only
// backButton event does not work with iOS swipe navigation so use this workaround
if (app.router && Capacitor.getPlatform() === 'ios') {