@@ -5,7 +5,7 @@ import LocationSelectModal from '@/components/modals/LocationSelectModal.vue';
55import { $t } from ' @/i18n' ;
66import { ArrowBackIcon , ArrowForwardIcon , BookIcon } from ' @/icons' ;
77import router from ' @/router' ;
8- import { useAuthStore , useBrowseStore } from ' @/stores' ;
8+ import { useAuthStore , useBrowseStore , useThemeStore } from ' @/stores' ;
99import { isInputFocused , isOverlayOpen } from ' @/utils' ;
1010import { useMagicKeys , whenever } from ' @vueuse/core' ;
1111import { NBadge , NButton , NFlex , NIcon } from ' naive-ui' ;
@@ -14,7 +14,6 @@ import { ref } from 'vue';
1414withDefaults (
1515 defineProps <{
1616 buttonSize? : ' small' | ' medium' | ' large' ;
17- color? : string ;
1817 }>(),
1918 {
2019 buttonSize: ' large' ,
@@ -23,6 +22,7 @@ withDefaults(
2322
2423const auth = useAuthStore ();
2524const browse = useBrowseStore ();
25+ const theme = useThemeStore ();
2626
2727const { ArrowLeft, ArrowRight } = useMagicKeys ();
2828
@@ -55,12 +55,12 @@ whenever(ArrowRight, () => {
5555 <n-flex justify =" space-between" align =" center" :wrap =" false" >
5656 <n-button
5757 quaternary
58- :color =" color"
5958 :focusable =" false"
6059 :title =" $t('browse.toolbar.tipPreviousLocation')"
6160 :size =" buttonSize"
6261 :bordered =" false"
6362 :disabled =" !browse.prevLocationId"
63+ :theme-overrides =" theme.toolbarBtnTheme"
6464 @click =" () => gotoLocation(browse.prevLocationId)"
6565 >
6666 <template #icon >
@@ -71,14 +71,14 @@ whenever(ArrowRight, () => {
7171 <n-badge value =" !" :show =" !browse.isOnDefaultLevel && !browse.loadingLocationData" >
7272 <n-button
7373 quaternary
74- :color =" color"
7574 :title ="
7675 $t('browse.toolbar.tipSelectLocation') +
7776 (!browse.isOnDefaultLevel ? ' (' + $t('browse.toolbar.tipNotOnDefaultLevel') + ')' : '')
7877 "
7978 :focusable =" false"
8079 :size =" buttonSize"
8180 :bordered =" false"
81+ :theme-overrides =" theme.toolbarBtnTheme"
8282 @click =" showLocationSelectModal = true"
8383 >
8484 <template #icon >
@@ -87,16 +87,16 @@ whenever(ArrowRight, () => {
8787 </n-button >
8888 </n-badge >
8989
90- <bookmarks-widget v-if =" !!auth.user" :button-size =" buttonSize" :color = " color " />
90+ <bookmarks-widget v-if =" !!auth.user" :button-size =" buttonSize" />
9191
9292 <n-button
9393 quaternary
94- :color =" color"
9594 :focusable =" false"
9695 :title =" $t('browse.toolbar.tipNextLocation')"
9796 :size =" buttonSize"
9897 :bordered =" false"
9998 :disabled =" !browse.nextLocationId"
99+ :theme-overrides =" theme.toolbarBtnTheme"
100100 @click =" () => gotoLocation(browse.nextLocationId)"
101101 >
102102 <template #icon >
0 commit comments