mirror of
https://github.com/romancm/gamebrary
synced 2024-12-18 15:23:14 +00:00
dark theme updates
This commit is contained in:
parent
cef5446b50
commit
f167ea44ac
6 changed files with 47 additions and 17 deletions
|
@ -1,5 +1,11 @@
|
|||
<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-col cols="3">
|
||||
<icon name="check-circle"
|
||||
|
|
|
@ -1,5 +1,11 @@
|
|||
<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"
|
||||
|
|
|
@ -3,6 +3,8 @@
|
|||
no-body
|
||||
class="clickable mb-2"
|
||||
:img-src="coverUrl"
|
||||
:bg-variant="nightMode ? 'dark' : ''"
|
||||
:text-variant="nightMode ? 'white' : ''"
|
||||
img-top
|
||||
@click="openDetails"
|
||||
>
|
||||
|
|
|
@ -1,5 +1,10 @@
|
|||
<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-col cols="3">
|
||||
<b-card-img
|
||||
|
|
|
@ -1,5 +1,11 @@
|
|||
<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-card-body body-class="pt-0 pb-1 px-2">
|
||||
<small>
|
||||
|
|
|
@ -5,20 +5,20 @@
|
|||
|
||||
<b-modal
|
||||
: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"
|
||||
>
|
||||
<template v-slot:modal-header="{ close }">
|
||||
<modal-header
|
||||
:title="$t('board.list.view')"
|
||||
>
|
||||
<b-button
|
||||
variant="light"
|
||||
size="sm"
|
||||
@click="close"
|
||||
>
|
||||
<icon name="x" />
|
||||
</b-button>
|
||||
</modal-header>
|
||||
@close="close"
|
||||
/>
|
||||
</template>
|
||||
|
||||
<form ref="renameListForm" @submit.prevent="save">
|
||||
|
@ -69,8 +69,11 @@
|
|||
</form>
|
||||
|
||||
<template v-slot:modal-footer="{ cancel }">
|
||||
<b-button @click="cancel">
|
||||
Cancel
|
||||
<b-button
|
||||
variant="light"
|
||||
@click="cancel"
|
||||
>
|
||||
{{ $t('global.cancel') }}
|
||||
</b-button>
|
||||
|
||||
<b-button
|
||||
|
@ -79,7 +82,7 @@
|
|||
@click="save"
|
||||
>
|
||||
<b-spinner small v-if="saving" />
|
||||
<span v-else>Save</span>
|
||||
<span v-else>{{ $t('global.save') }}</span>
|
||||
</b-button>
|
||||
</template>
|
||||
</b-modal>
|
||||
|
@ -87,7 +90,7 @@
|
|||
</template>
|
||||
|
||||
<script>
|
||||
import { mapState } from 'vuex';
|
||||
import { mapState, mapGetters } from 'vuex';
|
||||
import GameCardDefault from '@/components/GameCards/GameCardDefault';
|
||||
import GameCardGrid from '@/components/GameCards/GameCardGrid';
|
||||
import GameCardCompact from '@/components/GameCards/GameCardCompact';
|
||||
|
@ -100,6 +103,7 @@ export default {
|
|||
GameCardCompact,
|
||||
GameCardText,
|
||||
},
|
||||
|
||||
props: {
|
||||
listIndex: Number,
|
||||
list: Object,
|
||||
|
@ -122,6 +126,7 @@ export default {
|
|||
|
||||
computed: {
|
||||
...mapState(['games']),
|
||||
...mapGetters(['nightMode']),
|
||||
|
||||
modalId() {
|
||||
return `add-game-${this.listIndex}`;
|
||||
|
|
Loading…
Reference in a new issue