Skip to content

Commit 59b9181

Browse files
authored
Merge pull request #1538 from Shadow243/fixed-dark-logo
fix logo in dark mode theme
2 parents 39d9d47 + 92804d3 commit 59b9181

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

modules/core/output_modules.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1318,7 +1318,9 @@ protected function output() {
13181318
$this->trans('Running in debug mode. See https://cypht.org/install.html Section 6 for more detail.').
13191319
'" class="debug_title">'.$this->trans('Debug').'</span>';
13201320
}
1321-
$res .= '<a href="?page=home" class="menu_home"><img class="app-logo" src="'.WEB_ROOT. 'modules/core/assets/images/logo_dark.svg"></a>';
1321+
$theme = $this->get('theme');
1322+
$logo = $theme === 'darkly' ? 'modules/core/assets/images/logo.svg' : 'modules/core/assets/images/logo_dark.svg' ;
1323+
$res .= '<a href="?page=home" class="menu_home"><img class="app-logo" src="'.WEB_ROOT.$logo.'"></a>';
13221324
$res .= '<div class="main"><ul class="folders">';
13231325
if ($this->format == 'HTML5') {
13241326
return $res;

0 commit comments

Comments
 (0)