mirror of
https://github.com/VueFileManager/vuefilemanager.git
synced 2026-04-19 00:22:15 +00:00
dark mode logo
This commit is contained in:
@@ -2,8 +2,9 @@
|
||||
<nav class="main-navigation">
|
||||
<router-link :to="{ name: 'Homepage' }" tag="div" class="logo">
|
||||
<img
|
||||
class="max-h-6"
|
||||
v-if="config.app_logo_horizontal"
|
||||
:src="$getImage(config.app_logo_horizontal)"
|
||||
:src="$getImage(logoSrc)"
|
||||
:alt="config.app_name"
|
||||
/>
|
||||
<b v-if="!config.app_logo_horizontal" class="logo-text">{{ config.app_name }}</b>
|
||||
@@ -53,7 +54,10 @@ import { mapGetters } from 'vuex'
|
||||
export default {
|
||||
name: 'IndexNavigation',
|
||||
computed: {
|
||||
...mapGetters(['config', 'index']),
|
||||
...mapGetters(['config', 'index', 'isDarkMode']),
|
||||
logoSrc() {
|
||||
return this.isDarkMode && this.config.app_logo_horizontal ? this.config.app_logo_horizontal_dark : this.config.app_logo_horizontal
|
||||
}
|
||||
},
|
||||
}
|
||||
</script>
|
||||
|
||||
@@ -3,9 +3,9 @@
|
||||
<router-link :to="{ name: 'Homepage' }" tag="div" class="logo">
|
||||
<img
|
||||
v-if="config.app_logo_horizontal"
|
||||
:src="$getImage(config.app_logo_horizontal)"
|
||||
:src="$getImage(logoSrc)"
|
||||
:alt="config.app_name"
|
||||
class="mx-auto"
|
||||
class="mx-auto max-h-6"
|
||||
/>
|
||||
<b v-if="!config.app_logo_horizontal" class="logo-text">{{ config.app_name }}</b>
|
||||
</router-link>
|
||||
@@ -38,7 +38,10 @@ import { mapGetters } from 'vuex'
|
||||
export default {
|
||||
name: 'IndexPageFooter',
|
||||
computed: {
|
||||
...mapGetters(['config']),
|
||||
...mapGetters(['config', 'isDarkMode']),
|
||||
logoSrc() {
|
||||
return this.isDarkMode && this.config.app_logo_horizontal ? this.config.app_logo_horizontal_dark : this.config.app_logo_horizontal
|
||||
},
|
||||
},
|
||||
}
|
||||
</script>
|
||||
|
||||
Reference in New Issue
Block a user