diff --git a/bundles/org.openhab.ui/web/src/components/app.vue b/bundles/org.openhab.ui/web/src/components/app.vue index f1f4b9c104..5e258fea52 100644 --- a/bundles/org.openhab.ui/web/src/components/app.vue +++ b/bundles/org.openhab.ui/web/src/components/app.vue @@ -539,7 +539,7 @@ export default { updateThemeOptions () { this.themeOptions.dark = localStorage.getItem('openhab.ui:theme.dark') || ((window.OHApp && window.OHApp.preferDarkMode) ? window.OHApp.preferDarkMode().toString() : (this.$f7.darkTheme ? 'dark' : 'light')) this.themeOptions.bars = localStorage.getItem('openhab.ui:theme.bars') || 'light' - this.themeOptions.homeNavbar = localStorage.getItem('openhab.ui:theme.home.navbar') || 'default' + this.themeOptions.homeNavbar = localStorage.getItem('openhab.ui:theme.home.navbar') || (this.$f7.device.desktop ? 'large' : 'simple') this.themeOptions.homeBackground = localStorage.getItem('openhab.ui:theme.home.background') || 'default' this.themeOptions.expandableCardAnimation = localStorage.getItem('openhab.ui:theme.home.cardanimation') || 'default' if (this.themeOptions.dark === 'dark') { diff --git a/bundles/org.openhab.ui/web/src/components/theme-switcher.vue b/bundles/org.openhab.ui/web/src/components/theme-switcher.vue index 7ebb8f8b45..b5d1ea8108 100644 --- a/bundles/org.openhab.ui/web/src/components/theme-switcher.vue +++ b/bundles/org.openhab.ui/web/src/components/theme-switcher.vue @@ -111,7 +111,7 @@ export default { location.reload() }, setHomePageNavbarStyle (value) { - localStorage.setItem('openhab.ui:theme.home.navbar', (value) ? 'simple' : 'default') + localStorage.setItem('openhab.ui:theme.home.navbar', (value) ? 'simple' : 'large') location.reload() }, setHomePageBackground (value) { @@ -150,7 +150,7 @@ export default { return localStorage.getItem('openhab.ui:theme.bars') || 'light' }, homePageNavbarStyle () { - return localStorage.getItem('openhab.ui:theme.home.navbar') || 'default' + return localStorage.getItem('openhab.ui:theme.home.navbar') || (this.$f7.device.desktop ? 'large' : 'simple') }, homePageBackground () { return localStorage.getItem('openhab.ui:theme.home.background') || 'default' diff --git a/bundles/org.openhab.ui/web/src/pages/home.vue b/bundles/org.openhab.ui/web/src/pages/home.vue index bb1a4ef031..57e58f56ee 100644 --- a/bundles/org.openhab.ui/web/src/pages/home.vue +++ b/bundles/org.openhab.ui/web/src/pages/home.vue @@ -1,10 +1,10 @@