Add dark theme for Web UI
This commit is contained in:
parent
18d90ecd96
commit
389536aff0
12 changed files with 98 additions and 6 deletions
|
@ -138,7 +138,10 @@ export default {
|
|||
return {
|
||||
datasets: [{
|
||||
backgroundColor: [
|
||||
'#f2f3f5'
|
||||
this.$q.dark.isActive ? '#2d2d2d' : '#f2f3f5'
|
||||
],
|
||||
borderColor: [
|
||||
this.$q.dark.isActive ? '#1d1d1d' : '#fff'
|
||||
],
|
||||
data: [1]
|
||||
}]
|
||||
|
@ -152,6 +155,11 @@ export default {
|
|||
'#db7d11',
|
||||
'#ff0039'
|
||||
],
|
||||
borderColor: [
|
||||
this.$q.dark.isActive ? '#1d1d1d' : '#fff',
|
||||
this.$q.dark.isActive ? '#1d1d1d' : '#fff',
|
||||
this.$q.dark.isActive ? '#1d1d1d' : '#fff'
|
||||
],
|
||||
data: this.getData()
|
||||
}],
|
||||
labels: [
|
||||
|
|
|
@ -27,7 +27,7 @@ export default {
|
|||
return typeof this.featureVal === 'string'
|
||||
},
|
||||
isBoolean () {
|
||||
return typeof variable === 'boolean' || this.featureVal === ''
|
||||
return typeof this.featureVal === 'boolean' || this.featureVal === ''
|
||||
},
|
||||
isTrue () {
|
||||
return this.isBoolean && this.featureVal === true
|
||||
|
@ -83,4 +83,16 @@ export default {
|
|||
}
|
||||
}
|
||||
}
|
||||
|
||||
.body--dark {
|
||||
.feature-chip-string {
|
||||
background-color: rgba( $app-text-grey, .3 );
|
||||
}
|
||||
.feature-chip-boolean {
|
||||
background-color: rgba( $negative, .3 );
|
||||
&-true {
|
||||
background-color: rgba( $positive, .3 );
|
||||
}
|
||||
}
|
||||
}
|
||||
</style>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue