mirror of
https://github.com/advplyr/audiobookshelf-app.git
synced 2025-08-02 00:54:30 +02:00
Add:Theme option setting #916
This commit is contained in:
parent
1cf01a5d12
commit
9298065934
4 changed files with 63 additions and 2 deletions
|
@ -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') {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue