Skip to content

Commit

Permalink
modify style
Browse files Browse the repository at this point in the history
  • Loading branch information
mayswind committed Mar 23, 2024
1 parent 09d4745 commit 8c164ec
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions src/views/desktop/statistics/TransactionPage.vue
Expand Up @@ -202,6 +202,7 @@
</div>
<div>
<v-progress-linear :color="item.color ? '#' + item.color : 'primary'"
:bg-color="isDarkMode ? '#161616' : '#f8f8f8'" :bg-opacity="1"
:model-value="item.percent >= 0 ? item.percent : 0"
:height="4"></v-progress-linear>
</div>
Expand Down Expand Up @@ -243,7 +244,7 @@
</template>

<script>
import { useDisplay } from 'vuetify';
import { useDisplay, useTheme } from 'vuetify';
import { mapStores } from 'pinia';
import { useSettingsStore } from '@/stores/setting.js';
Expand Down Expand Up @@ -311,6 +312,9 @@ export default {
},
computed: {
...mapStores(useSettingsStore, useUserStore, useAccountsStore, useTransactionCategoriesStore, useStatisticsStore),
isDarkMode() {
return this.globalTheme.global.name.value === 'dark';
},
defaultCurrency() {
return this.userStore.currentUserDefaultCurrency;
},
Expand Down Expand Up @@ -430,9 +434,11 @@ export default {
},
setup() {
const display = useDisplay();
const theme = useTheme();
return {
display: display
display: display,
globalTheme: theme
};
},
methods: {
Expand Down

0 comments on commit 8c164ec

Please sign in to comment.