Last active
October 1, 2024 13:14
-
-
Save Generator/cf0ddba575bc1011680f3907176815de to your computer and use it in GitHub Desktop.
qBittorrent 5.x force Light/Dark theme
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* ==UserStyle== | |
@name qBittorrent force Light/Dark | |
@namespace gist.github.com/Generator/cf0ddba575bc1011680f3907176815de | |
@homepageURL https://gist.github.com/Generator/cf0ddba575bc1011680f3907176815de | |
@updateURL https://gist.github.com/Generator/cf0ddba575bc1011680f3907176815de/raw/qbittorrent.user.css | |
@version 1.0.0 | |
@description Force Light or Dark theme on qBittorrent >=5.0 | |
@author Generator | |
@license CC-BY-SA-4.0 | |
@preprocessor stylus | |
@var select theme "Theme" ["light:Light", "dark:Dark", "system:System"] | |
==/UserStyle== */ | |
@-moz-document url("http://127.0.0.1:8080/") { | |
/* Adaptive color palette */ | |
/* Default rules */ | |
* { | |
--color-accent-blue: hsl(210deg 65% 55%); | |
--color-text-blue: hsl(210deg 100% 55%); | |
--color-text-orange: hsl(26deg 100% 45%); | |
--color-text-red: hsl(0deg 100% 65%); | |
--color-text-green: hsl(110deg 94% 27%); | |
--color-text-white: hsl(0deg 0% 100%); | |
--color-text-disabled: hsl(0deg 0% 60%); | |
--color-text-default: hsl(0deg 0% 33%); | |
--color-background-blue: hsl(210deg 65% 55%); | |
--color-background-popup: hsl(0deg 0% 100%); | |
--color-background-default: hsl(0deg 0% 94%); | |
--color-background-hover: hsl(26deg 80% 60%); | |
--color-border-blue: hsl(210deg 42% 48%); | |
--color-border-default: hsl(0deg 0% 85%); | |
} | |
:root { | |
color-scheme: light dark; | |
} | |
/* Light corrections */ | |
if theme is light { | |
:root { | |
color-scheme: light; | |
} | |
} | |
/* Dark corrections */ | |
if theme is dark { | |
:root { | |
color-scheme: dark; | |
} | |
* { | |
--color-accent-blue: hsl(210deg 42% 48%); | |
--color-text-blue: hsl(210deg 88.1% 73.5%); | |
--color-text-orange: hsl(26deg 65% 70%); | |
--color-text-default: hsl(0deg 0% 90%); | |
--color-background-blue: hsl(210deg 42% 48%); | |
--color-background-popup: hsl(0deg 0% 20%); | |
--color-background-default: hsl(0deg 0% 25%); | |
--color-background-hover: hsl(26deg 50% 55%); | |
--color-border-default: hsl(0deg 0% 33%); | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment