Add support for dark theme

This commit is contained in:
Chocobo1 2024-02-11 23:30:59 +08:00
parent 16a91f26fb
commit 1afb3ff433

View file

@ -1157,7 +1157,7 @@ const initializeWindows = function() {
url: 'api/v2/app/shutdown', url: 'api/v2/app/shutdown',
method: 'post', method: 'post',
onSuccess: function() { onSuccess: function() {
document.write('<!doctype html><html lang="${LANG}"><head> <meta charset="UTF-8"> <title>QBT_TR(qBittorrent has been shutdown)QBT_TR[CONTEXT=HttpServer]</title></head><body> <h1 style="text-align: center;">QBT_TR(qBittorrent has been shutdown)QBT_TR[CONTEXT=HttpServer]</h1></body></html>'); document.write('<!doctype html><html lang="${LANG}"><head> <meta charset="UTF-8"> <meta name="color-scheme" content="light dark" /> <title>QBT_TR(qBittorrent has been shutdown)QBT_TR[CONTEXT=HttpServer]</title></head><body> <h1 style="text-align: center;">QBT_TR(qBittorrent has been shutdown)QBT_TR[CONTEXT=HttpServer]</h1></body></html>');
document.close(); document.close();
stop(); stop();
} }