Merge branch 'develop'

This commit is contained in:
syuilo
2019-04-17 19:37:32 +09:00
33 changed files with 93 additions and 92 deletions

View File

@@ -142,7 +142,7 @@ export default Vue.extend({
if (this.file.properties.avgColor) {
anime({
targets: this.$refs.thumbnail,
backgroundColor: this.file.properties.avgColor.replace('255)', '0)'),
backgroundColor: 'transparent', // TODO fade
duration: 100,
easing: 'linear'
});

View File

@@ -87,6 +87,5 @@ export default Vue.extend({
height 100%
flex auto
overflow auto
background var(--bg)
</style>

View File

@@ -1,6 +1,6 @@
<template>
<div class="mk-ui" v-hotkey.global="keymap">
<div class="bg" v-if="$store.getters.isSignedIn && $store.state.i.wallpaperUrl" :style="style"></div>
<div class="bg" v-if="$store.getters.isSignedIn && $store.state.settings.wallpaper" :style="style"></div>
<x-header class="header" v-if="navbar == 'top'" v-show="!zenMode" ref="header"/>
<x-sidebar class="sidebar" v-if="navbar != 'top'" v-show="!zenMode" ref="sidebar"/>
<div class="content" :class="[{ sidebar: navbar != 'top', zen: zenMode }, navbar]">
@@ -33,10 +33,9 @@ export default Vue.extend({
},
style(): any {
if (!this.$store.getters.isSignedIn || this.$store.state.i.wallpaperUrl == null) return {};
if (!this.$store.getters.isSignedIn || this.$store.state.settings.wallpaper == null) return {};
return {
backgroundColor: this.$store.state.i.wallpaperColor && this.$store.state.i.wallpaperColor.length == 3 ? `rgb(${ this.$store.state.i.wallpaperColor.join(',') })` : null,
backgroundImage: `url(${ this.$store.state.i.wallpaperUrl })`
backgroundImage: `url(${ this.$store.state.settings.wallpaper })`
};
},
@@ -96,7 +95,6 @@ export default Vue.extend({
background-size cover
background-position center
background-attachment fixed
opacity 0.3
> .content.sidebar.left
padding-left 68px