mirror of
https://github.com/transmission/transmission.git
synced 2026-05-03 15:15:03 +01:00
feat: support dark mode in legacy html-based QuickLook plugin (#6101)
Signed-off-by: Dzmitry Neviadomski <nevack.d@gmail.com>
This commit is contained in:
committed by
GitHub
parent
2130eb941a
commit
af5da12a71
@@ -1,6 +1,10 @@
|
||||
:root {
|
||||
color-scheme: light dark;
|
||||
}
|
||||
|
||||
html {
|
||||
color: rgb(0,0,0);
|
||||
font-family: 'Lucida Grande', Sans-serif;
|
||||
font-family: -apple-system, BlinkMacSystemFont, 'Lucida Grande', sans-serif;
|
||||
text-align: left;
|
||||
}
|
||||
|
||||
@@ -39,3 +43,21 @@ img.icon {
|
||||
margin-right: 8px;
|
||||
vertical-align: text-bottom;
|
||||
}
|
||||
|
||||
@media (prefers-color-scheme: dark) {
|
||||
html {
|
||||
color: rgb(255,255,255);
|
||||
}
|
||||
|
||||
th {
|
||||
color: rgb(200,200,200);
|
||||
}
|
||||
|
||||
tr:nth-child(even) {
|
||||
background: rgb(50,50,50);
|
||||
}
|
||||
|
||||
td {
|
||||
color: rgb(175,175,175);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user