Skip to content
This repository has been archived by the owner on May 24, 2021. It is now read-only.

Commit

Permalink
feat(app-background): Use white background to cover alpha levels
Browse files Browse the repository at this point in the history
  • Loading branch information
alexander-heimbuch committed Jul 30, 2017
1 parent 336cee5 commit 162a980
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 3 deletions.
12 changes: 10 additions & 2 deletions src/components/App.vue
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<template>
<div class="podlove" :class="{[display]: display, [runtime.platform]: runtime.platform}">
<div class="podlove" :class="{[display]: display, [runtime.platform]: runtime.platform}" :style="appStyle">
<HeaderComponent></HeaderComponent>
<PlayerComponent></PlayerComponent>
<TabsComponent></TabsComponent>
Expand All @@ -19,7 +19,8 @@
return {
display: this.$select('display'),
runtime: this.$select('runtime')
runtime: this.$select('runtime'),
theme: this.$select('theme')
}
},
watch: {
Expand All @@ -28,6 +29,13 @@
this.$i18n.locale = runtime.language
}
},
computed: {
appStyle () {
return {
background: this.theme.background
}
}
},
components: {
HeaderComponent,
PlayerComponent,
Expand Down
1 change: 1 addition & 0 deletions src/store/reducers/theme.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ const themeColors = (colors = {}) => {
const fallbackColor = (first, second) => first || second

return {
background: light,
player: {
background: main,
poster: negative ? light : dark,
Expand Down
2 changes: 1 addition & 1 deletion src/webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ const config = {
noInfo: true,
overlay: true,
inline: true,
hotOnly: true,
hot: true,
contentBase: path.resolve(__dirname, '..', 'dist')
},
performance: {
Expand Down

0 comments on commit 162a980

Please sign in to comment.