Default health bars are now the app's primary color
This commit is contained in:
@@ -15,7 +15,7 @@
|
|||||||
{{ label }}
|
{{ label }}
|
||||||
<v-icon
|
<v-icon
|
||||||
:right="!!label"
|
:right="!!label"
|
||||||
:color="!!label && value"
|
:color="label && value"
|
||||||
>
|
>
|
||||||
mdi-format-paint
|
mdi-format-paint
|
||||||
</v-icon>
|
</v-icon>
|
||||||
|
|||||||
@@ -95,6 +95,13 @@ import chroma from 'chroma-js';
|
|||||||
export default {
|
export default {
|
||||||
components: {
|
components: {
|
||||||
IncrementMenu
|
IncrementMenu
|
||||||
|
},
|
||||||
|
inject: {
|
||||||
|
theme: {
|
||||||
|
default: {
|
||||||
|
isDark: false,
|
||||||
|
},
|
||||||
|
},
|
||||||
},
|
},
|
||||||
props: {
|
props: {
|
||||||
value: Number,
|
value: Number,
|
||||||
@@ -102,7 +109,9 @@ import chroma from 'chroma-js';
|
|||||||
name: String,
|
name: String,
|
||||||
color: {
|
color: {
|
||||||
type: String,
|
type: String,
|
||||||
default: '#66BB6A',
|
default() {
|
||||||
|
return this.$vuetify.theme.currentTheme.primary
|
||||||
|
},
|
||||||
},
|
},
|
||||||
midColor: {
|
midColor: {
|
||||||
type: String,
|
type: String,
|
||||||
|
|||||||
Reference in New Issue
Block a user