Browse Source

add common pallete for public side

adaptive-webui
d47081 1 year ago
parent
commit
fd1b63fca0
  1. 2
      src/webui/www/public/css/login.css
  2. 2
      src/webui/www/public/css/noscript.css
  3. 24
      src/webui/www/public/css/palette.css
  4. 1
      src/webui/www/public/index.html

2
src/webui/www/public/css/login.css

@ -32,7 +32,7 @@ body {
} }
#error_msg { #error_msg {
color: #f00; color: var(--color-text-red);
} }
#login { #login {

2
src/webui/www/public/css/noscript.css

@ -3,6 +3,6 @@
} }
#noscript { #noscript {
color: #f00; color: var(--color-text-red);
text-align: center; text-align: center;
} }

24
src/webui/www/public/css/palette.css

@ -0,0 +1,24 @@
/* Adaptive color palette #19844 */
/* Default rules */
* {
--color-text-red: hsl(0deg 100% 65%);
}
:root {
color-scheme: light dark;
}
/* Light corrections */
@media (prefers-color-scheme: light) {
:root {
color-scheme: light;
}
}
/* Dark corrections */
@media (prefers-color-scheme: dark) {
:root {
color-scheme: dark;
}
}

1
src/webui/www/public/index.html

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

Loading…
Cancel
Save