mirror of
https://github.com/VueFileManager/vuefilemanager.git
synced 2026-04-18 16:22:14 +00:00
dark mode logo
This commit is contained in:
@@ -7,7 +7,7 @@
|
||||
<img
|
||||
v-if="config.app_logo_horizontal"
|
||||
class="mx-auto w-44"
|
||||
:src="$getImage(config.app_logo_horizontal)"
|
||||
:src="$getImage(logoSrc)"
|
||||
:alt="config.app_name"
|
||||
/>
|
||||
|
||||
@@ -26,7 +26,7 @@
|
||||
<img
|
||||
v-if="config.app_logo_horizontal"
|
||||
class="mx-auto w-44"
|
||||
:src="$getImage(config.app_logo_horizontal)"
|
||||
:src="$getImage(logoSrc)"
|
||||
:alt="config.app_name"
|
||||
/>
|
||||
|
||||
@@ -93,7 +93,10 @@ export default {
|
||||
Video,
|
||||
},
|
||||
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
|
||||
},
|
||||
isVideo() {
|
||||
return this.file.data.type === 'video'
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user