Add dark theme

This commit is contained in:
Ramires Viana
2020-01-02 00:48:48 +00:00
committed by Henrique Dias
parent cc7ec4f0c5
commit 55a9d945cc
9 changed files with 183 additions and 1 deletions

View File

@@ -0,0 +1,18 @@
<template>
<select v-on:change="change" :value="theme">
<option value="">{{ $t('settings.themes.light') }}</option>
<option value="dark">{{ $t('settings.themes.dark') }}</option>
</select>
</template>
<script>
export default {
name: 'themes',
props: [ 'theme' ],
methods: {
change (event) {
this.$emit('update:theme', event.target.value)
}
}
}
</script>