Skip to content

Commit

Permalink
Merge pull request #236 from sbs20/development
Browse files Browse the repository at this point in the history
Improve colour selection #231
  • Loading branch information
sbs20 authored May 5, 2021
2 parents 95f24a5 + 42ecf63 commit ee98ae1
Showing 1 changed file with 14 additions and 2 deletions.
16 changes: 14 additions & 2 deletions webui/src/components/Settings.vue
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,20 @@
</template>
<template v-slot:action>
<div style="max-width: 10rem;">
<v-select :label="$t('settings.color')" v-model="settings.appColor" @change="reload"
:items="colors" item-text="text" item-value="value"></v-select>
<v-menu offset-y>
<template v-slot:activator="{ on, attrs }">
<v-btn v-bind="attrs" v-on="on">{{ $t('settings.color') }}</v-btn>
</template>
<v-list>
<v-list-item v-for="item in colors" :key="item.value"
style="min-height: 36px;"
@click="settings.appColor = item.value; reload()">
<v-list-item-content class="pl-2 pt-1 pb-1 pr-2" :class="item.value">
{{ item.text }}
</v-list-item-content>
</v-list-item>
</v-list>
</v-menu>
</div>
</template>
</settings-item>
Expand Down

0 comments on commit ee98ae1

Please sign in to comment.