mirror of
https://github.com/mayswind/ezbookkeeping.git
synced 2026-05-20 09:44:26 +08:00
modify style
This commit is contained in:
@@ -202,6 +202,7 @@
|
|||||||
</div>
|
</div>
|
||||||
<div>
|
<div>
|
||||||
<v-progress-linear :color="item.color ? '#' + item.color : 'primary'"
|
<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"
|
:model-value="item.percent >= 0 ? item.percent : 0"
|
||||||
:height="4"></v-progress-linear>
|
:height="4"></v-progress-linear>
|
||||||
</div>
|
</div>
|
||||||
@@ -243,7 +244,7 @@
|
|||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
import { useDisplay } from 'vuetify';
|
import { useDisplay, useTheme } from 'vuetify';
|
||||||
|
|
||||||
import { mapStores } from 'pinia';
|
import { mapStores } from 'pinia';
|
||||||
import { useSettingsStore } from '@/stores/setting.js';
|
import { useSettingsStore } from '@/stores/setting.js';
|
||||||
@@ -311,6 +312,9 @@ export default {
|
|||||||
},
|
},
|
||||||
computed: {
|
computed: {
|
||||||
...mapStores(useSettingsStore, useUserStore, useAccountsStore, useTransactionCategoriesStore, useStatisticsStore),
|
...mapStores(useSettingsStore, useUserStore, useAccountsStore, useTransactionCategoriesStore, useStatisticsStore),
|
||||||
|
isDarkMode() {
|
||||||
|
return this.globalTheme.global.name.value === 'dark';
|
||||||
|
},
|
||||||
defaultCurrency() {
|
defaultCurrency() {
|
||||||
return this.userStore.currentUserDefaultCurrency;
|
return this.userStore.currentUserDefaultCurrency;
|
||||||
},
|
},
|
||||||
@@ -430,9 +434,11 @@ export default {
|
|||||||
},
|
},
|
||||||
setup() {
|
setup() {
|
||||||
const display = useDisplay();
|
const display = useDisplay();
|
||||||
|
const theme = useTheme();
|
||||||
|
|
||||||
return {
|
return {
|
||||||
display: display
|
display: display,
|
||||||
|
globalTheme: theme
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
|
|||||||
Reference in New Issue
Block a user