Use svg for the logo if applicable

Improve the appearance of the logo for High-DPI users.

Change-Id: I2b6e6f2c28eafddd6f958acca84eaec0d000f1c4
isekai
Func 3 years ago
parent 90976a8957
commit 5087e5781e

@ -531,11 +531,13 @@ class TimelessTemplate extends BaseTemplate {
}
if ( $part !== 'text' ) {
$logoImage = $this->getLogoImage( $config->get( 'TimelessLogo' ) );
if ( $logoImage === false && isset( $logos['icon'] ) ) {
$logoSrc = $logos['icon'];
$logoImage = Html::element( 'img', [
'src' => $logoSrc,
] );
if ( $logoImage === false ) {
$logoSrc = $logos['svg'] ?: $logos['icon'] ?: '';
if ( $logoSrc !== '' ) {
$logoImage = Html::element( 'img', [
'src' => $logoSrc,
] );
}
}
$html .= Html::rawElement(

Loading…
Cancel
Save