Default health bars are now the app's primary color

This commit is contained in:
Stefan Zermatten
2022-04-08 18:40:53 +02:00
parent d9f572504d
commit c3d9ee7589
2 changed files with 11 additions and 2 deletions

View File

@@ -15,7 +15,7 @@
{{ label }}
<v-icon
:right="!!label"
:color="!!label && value"
:color="label && value"
>
mdi-format-paint
</v-icon>

View File

@@ -95,6 +95,13 @@ import chroma from 'chroma-js';
export default {
components: {
IncrementMenu
},
inject: {
theme: {
default: {
isDark: false,
},
},
},
props: {
value: Number,
@@ -102,7 +109,9 @@ import chroma from 'chroma-js';
name: String,
color: {
type: String,
default: '#66BB6A',
default() {
return this.$vuetify.theme.currentTheme.primary
},
},
midColor: {
type: String,