dark theme updates

This commit is contained in:
Gamebrary 2020-10-14 14:48:55 -07:00
parent cef5446b50
commit f167ea44ac
6 changed files with 47 additions and 17 deletions

View file

@ -1,5 +1,11 @@
<template lang="html"> <template lang="html">
<b-card no-body class="clickable mb-2" @click="openDetails"> <b-card
no-body
class="clickable mb-2"
:bg-variant="nightMode ? 'dark' : ''"
:text-variant="nightMode ? 'white' : ''"
@click="openDetails"
>
<b-row no-gutters v-if="game && game.name"> <b-row no-gutters v-if="game && game.name">
<b-col cols="3"> <b-col cols="3">
<icon name="check-circle" <icon name="check-circle"

View file

@ -1,5 +1,11 @@
<template lang="html"> <template lang="html">
<b-card no-body class="clickable mb-2" @click="openDetails"> <b-card
no-body
class="clickable mb-2"
:bg-variant="nightMode ? 'dark' : ''"
:text-variant="nightMode ? 'white' : ''"
@click="openDetails"
>
<b-row <b-row
no-gutters no-gutters
v-if="game && game.name" v-if="game && game.name"

View file

@ -3,6 +3,8 @@
no-body no-body
class="clickable mb-2" class="clickable mb-2"
:img-src="coverUrl" :img-src="coverUrl"
:bg-variant="nightMode ? 'dark' : ''"
:text-variant="nightMode ? 'white' : ''"
img-top img-top
@click="openDetails" @click="openDetails"
> >

View file

@ -1,5 +1,10 @@
<template lang="html"> <template lang="html">
<b-card no-body class="game-card mb-1"> <b-card
no-body
class="game-card mb-1"
:bg-variant="nightMode ? 'dark' : ''"
:text-variant="nightMode ? 'white' : ''"
>
<b-row no-gutters v-if="game && game.name"> <b-row no-gutters v-if="game && game.name">
<b-col cols="3"> <b-col cols="3">
<b-card-img <b-card-img

View file

@ -1,5 +1,11 @@
<template lang="html"> <template lang="html">
<b-card no-body class="clickable mb-2" @click="openDetails"> <b-card
no-body
class="clickable mb-2"
:bg-variant="nightMode ? 'dark' : ''"
:text-variant="nightMode ? 'white' : ''"
@click="openDetails"
>
<b-row no-gutters v-if="game && game.name"> <b-row no-gutters v-if="game && game.name">
<b-card-body body-class="pt-0 pb-1 px-2"> <b-card-body body-class="pt-0 pb-1 px-2">
<small> <small>

View file

@ -5,20 +5,20 @@
<b-modal <b-modal
:id="modalId" :id="modalId"
:header-bg-variant="nightMode ? 'dark' : null"
:header-text-variant="nightMode ? 'white' : null"
:body-bg-variant="nightMode ? 'dark' : null"
:body-text-variant="nightMode ? 'white' : null"
:footer-bg-variant="nightMode ? 'dark' : null"
:footer-text-variant="nightMode ? 'white' : null"
footer-class="d-flex justify-content-between"
@show="load" @show="load"
> >
<template v-slot:modal-header="{ close }"> <template v-slot:modal-header="{ close }">
<modal-header <modal-header
:title="$t('board.list.view')" :title="$t('board.list.view')"
> @close="close"
<b-button />
variant="light"
size="sm"
@click="close"
>
<icon name="x" />
</b-button>
</modal-header>
</template> </template>
<form ref="renameListForm" @submit.prevent="save"> <form ref="renameListForm" @submit.prevent="save">
@ -69,8 +69,11 @@
</form> </form>
<template v-slot:modal-footer="{ cancel }"> <template v-slot:modal-footer="{ cancel }">
<b-button @click="cancel"> <b-button
Cancel variant="light"
@click="cancel"
>
{{ $t('global.cancel') }}
</b-button> </b-button>
<b-button <b-button
@ -79,7 +82,7 @@
@click="save" @click="save"
> >
<b-spinner small v-if="saving" /> <b-spinner small v-if="saving" />
<span v-else>Save</span> <span v-else>{{ $t('global.save') }}</span>
</b-button> </b-button>
</template> </template>
</b-modal> </b-modal>
@ -87,7 +90,7 @@
</template> </template>
<script> <script>
import { mapState } from 'vuex'; import { mapState, mapGetters } from 'vuex';
import GameCardDefault from '@/components/GameCards/GameCardDefault'; import GameCardDefault from '@/components/GameCards/GameCardDefault';
import GameCardGrid from '@/components/GameCards/GameCardGrid'; import GameCardGrid from '@/components/GameCards/GameCardGrid';
import GameCardCompact from '@/components/GameCards/GameCardCompact'; import GameCardCompact from '@/components/GameCards/GameCardCompact';
@ -100,6 +103,7 @@ export default {
GameCardCompact, GameCardCompact,
GameCardText, GameCardText,
}, },
props: { props: {
listIndex: Number, listIndex: Number,
list: Object, list: Object,
@ -122,6 +126,7 @@ export default {
computed: { computed: {
...mapState(['games']), ...mapState(['games']),
...mapGetters(['nightMode']),
modalId() { modalId() {
return `add-game-${this.listIndex}`; return `add-game-${this.listIndex}`;