feat: add setting to show chosen character on focused search bar

* refactor: convert constant reactive property values to computed properties
This commit is contained in:
Hakadao
2023-08-10 01:22:39 +08:00
parent 3d6e1ff1cc
commit de681dfb85
6 changed files with 129 additions and 72 deletions

View File

@@ -11,6 +11,6 @@ import { settings } from '~/logic'
m="t-20vh"
>
<Logo v-if="settings.searchPageShowLogo" :size="180" :color="settings.searchPageLogoColor === 'white' ? 'white' : 'var(--bew-theme-color)'" mb-12 z-1 />
<SearchBar :darken-on-focus="settings.searchPageDarkenOnSearchFocus" />
<SearchBar :darken-on-focus="settings.searchPageDarkenOnSearchFocus" :focused-character="settings.searchPageSearchBarFocusCharacter" />
</div>
</template>