Default health bars are now the app's primary color
This commit is contained in:
@@ -15,7 +15,7 @@
|
||||
{{ label }}
|
||||
<v-icon
|
||||
:right="!!label"
|
||||
:color="!!label && value"
|
||||
:color="label && value"
|
||||
>
|
||||
mdi-format-paint
|
||||
</v-icon>
|
||||
|
||||
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user