Skip to content

Commit

Permalink
Change the default navbar style from orange to light for light theme (#…
Browse files Browse the repository at this point in the history
…2288)

Signed-off-by: Florian Hotze <florianh_dev@icloud.com>
  • Loading branch information
florian-h05 authored Feb 23, 2024
1 parent 843ee90 commit a1f5091
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion bundles/org.openhab.ui/web/src/components/app.vue
Original file line number Diff line number Diff line change
Expand Up @@ -584,7 +584,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') || ((this.$theme.ios || this.$f7.darkTheme || this.themeOptions.dark === 'dark') ? 'light' : 'filled')
this.themeOptions.bars = localStorage.getItem('openhab.ui:theme.bars') || 'light'
this.themeOptions.homeNavbar = localStorage.getItem('openhab.ui:theme.home.navbar') || 'default'
this.themeOptions.homeBackground = localStorage.getItem('openhab.ui:theme.home.background') || 'default'
this.themeOptions.expandableCardAnimation = localStorage.getItem('openhab.ui:theme.home.cardanimation') || 'default'
Expand Down
10 changes: 5 additions & 5 deletions bundles/org.openhab.ui/web/src/components/theme-switcher.vue
Original file line number Diff line number Diff line change
Expand Up @@ -36,14 +36,14 @@
</f7-row>
<f7-block-title v-t="'about.navigationBarsStyle'" />
<f7-row>
<f7-col width="50" class="nav-bars-picker nav-bars-picker-fill" @click="setBarsStyle('filled')">
<div class="demo-navbar" />
<f7-checkbox checked disabled v-if="barsStyle === 'filled'" />
</f7-col>
<f7-col width="50" class="nav-bars-picker nav-bars-picker-empty" @click="setBarsStyle('light')">
<div class="demo-navbar" />
<f7-checkbox checked disabled v-if="barsStyle === 'light'" />
</f7-col>
<f7-col width="50" class="nav-bars-picker nav-bars-picker-fill" @click="setBarsStyle('filled')">
<div class="demo-navbar" />
<f7-checkbox checked disabled v-if="barsStyle === 'filled'" />
</f7-col>
</f7-row>

<f7-row>
Expand Down Expand Up @@ -147,7 +147,7 @@ export default {
return localStorage.getItem('openhab.ui:theme.dark') || 'auto'
},
barsStyle () {
return localStorage.getItem('openhab.ui:theme.bars') || ((this.$theme.ios || this.$f7.darkTheme || this.darkMode === 'dark') ? 'light' : 'filled')
return localStorage.getItem('openhab.ui:theme.bars') || 'light'
},
homePageNavbarStyle () {
return localStorage.getItem('openhab.ui:theme.home.navbar') || 'default'
Expand Down

0 comments on commit a1f5091

Please sign in to comment.