Use SVG image for WebUI favicon

This will allow browsers to get high quality icon with required
resolution instead of resizing some small raster image.
Browsers can have even more benefit from it. For example, Firefox uses
high resolution icon to display it in "Top Sites" instead of page
preview.

Nothing changes for browsers which doesn't support SVG favicons, older
PNG icon will be used in such case.
This commit is contained in:
Nick Korotysh 2020-02-08 23:52:27 +03:00
parent 8b330e3ac0
commit 536580ca6b
No known key found for this signature in database
GPG Key ID: 7D0D4117C97CCC46
2 changed files with 2 additions and 0 deletions

View File

@ -6,6 +6,7 @@
<meta http-equiv="X-UA-Compatible" content="IE=10" />
<title>qBittorrent Web UI</title>
<link rel="icon" type="image/png" href="images/skin/qbittorrent32.png" />
<link rel="icon" type="image/svg+xml" href="images/skin/qbittorrent-tray.svg" />
<link rel="stylesheet" type="text/css" href="css/dynamicTable.css?v=${CACHEID}" />
<link rel="stylesheet" type="text/css" href="css/style.css?v=${CACHEID}" />
<!--<link rel="stylesheet" type="text/css" href="css/Content.css" />-->

View File

@ -5,6 +5,7 @@
<meta charset="UTF-8" />
<title>qBittorrent QBT_TR(Web UI)QBT_TR[CONTEXT=OptionsDialog]</title>
<link rel="icon" type="image/png" href="images/skin/qbittorrent32.png" />
<link rel="icon" type="image/svg+xml" href="images/skin/qbittorrent-tray.svg" />
<link rel="stylesheet" type="text/css" href="css/login.css?v=${CACHEID}" />
<noscript>
<link rel="stylesheet" type="text/css" href="css/noscript.css?v=${CACHEID}" />