Whalebird-desktop-client-ma.../src/renderer/App.vue

56 lines
995 B
Vue
Raw Normal View History

2018-03-07 14:28:48 +01:00
<template>
<div id="app" :style="theme">
2018-03-07 14:28:48 +01:00
<router-view></router-view>
</div>
</template>
<script>
import { mapState } from 'vuex'
export default {
name: 'Whalebird',
computed: {
...mapState({
theme: (state) => {
return {
'--theme-background-color': state.App.theme.background_color,
'--theme-primary-color': state.App.theme.primary_color
}
}
})
},
created () {
this.$store.dispatch('App/watchShortcutsEvents')
},
destroyed () {
this.$store.dispatch('App/removeShortcutsEvents')
2018-03-07 14:28:48 +01:00
}
}
2018-03-07 14:28:48 +01:00
</script>
<style lang="scss">
body { font-family: 'Noto Sans', sans-serif; }
html, body, #app {
--theme-background-color: #ffffff;
--theme-primary-color: #303133;
background-color: var(--theme-background-color);
color: var(--theme-primary-color);
}
html, body, #app, #global_header {
height: 100%;
margin: 0;
}
p {
margin: 8px 0;
}
.clearfix:after {
content:" ";
display:block;
clear:both;
}
2018-03-07 14:28:48 +01:00
</style>