デッキのカラムを左揃えか中央揃えか選べるように

This commit is contained in:
syuilo
2018-10-19 06:47:55 +09:00
parent e7e321e2b3
commit 6c1f1ffdb1
4 changed files with 21 additions and 6 deletions

View File

@@ -113,6 +113,11 @@
<ui-switch v-model="games_reversi_showBoardLabels">%i18n:common.show-reversi-board-labels%</ui-switch>
<ui-switch v-model="games_reversi_useContrastStones">%i18n:common.use-contrast-reversi-stones%</ui-switch>
</section>
<section>
<header>%i18n:@deck-column-align%</header>
<ui-radio v-model="deckColumnAlign" value="center">%i18n:@deck-column-align-center%</ui-radio>
<ui-radio v-model="deckColumnAlign" value="left">%i18n:@deck-column-align-left%</ui-radio>
</section>
</ui-card>
<ui-card class="web" v-show="page == 'web'">
@@ -350,6 +355,11 @@ export default Vue.extend({
set(value) { this.$store.commit('device/set', { key: 'navbar', value }); }
},
deckColumnAlign: {
get() { return this.$store.state.device.deckColumnAlign; },
set(value) { this.$store.commit('device/set', { key: 'deckColumnAlign', value }); }
},
enableSounds: {
get() { return this.$store.state.device.enableSounds; },
set(value) { this.$store.commit('device/set', { key: 'enableSounds', value }); }