added envs, testing color switch

This commit is contained in:
Ben Arc
2021-06-28 22:57:23 +01:00
parent c4fd7f0338
commit 8f441f32b5
6 changed files with 86 additions and 25 deletions
@@ -5,12 +5,14 @@
<q-card>
<q-card-section>
{% raw %}
<q-btn
unelevated
color="deep-purple"
@click="formDialogCopilot.show = true"
<q-btn unelevated color="primary" @click="formDialogCopilot.show = true"
>New copilot instance
</q-btn>
<q-select
v-model="theme"
:options="theOptions"
label="Standard"
></q-select>
</q-card-section>
</q-card>
@@ -463,7 +465,16 @@
data: null
},
options: ['bitcoin', 'confetti', 'rocket', 'face', 'martijn', 'rick'],
currencyOptions: ['None', 'btcusd', 'btceur', 'btcgbp']
currencyOptions: ['None', 'btcusd', 'btceur', 'btcgbp'],
theOptions: ['classic', 'dark', 'light', 'green'],
theme: ''
}
},
watch: {
theme(newValue) {
document.body.setAttribute('data-theme', newValue)
console.log(document.body.getAttribute('data-theme'))
console.log(newValue)
}
},
methods: {