mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-06-19 00:31:52 +00:00
LibWebView: Respect dark mode/light mode TaskManager windows
Suggested-By: Timothy Flynn <trflynn89@pm.me>
This commit is contained in:
parent
f91d8472ee
commit
eefd5edc84
Notes:
sideshowbarker
2024-07-17 16:42:19 +09:00
Author: https://github.com/ADKaster
Commit: eefd5edc84
Pull-request: https://github.com/SerenityOS/serenity/pull/23904
Reviewed-by: https://github.com/trflynn89 ✅
1 changed files with 18 additions and 3 deletions
|
@ -125,6 +125,24 @@ String ProcessManager::generate_html()
|
|||
<html>
|
||||
<head>
|
||||
<style>
|
||||
@media (prefers-color-scheme: dark) {
|
||||
/* FIXME: We should be able to remove the HTML style when "color-scheme" is supported */
|
||||
html {
|
||||
background-color: rgb(30, 30, 30);
|
||||
color: white;
|
||||
}
|
||||
|
||||
tr:nth-child(even) {
|
||||
background: rgb(57, 57, 57);
|
||||
}
|
||||
}
|
||||
|
||||
@media (prefers-color-scheme: light) {
|
||||
tr:nth-child(even) {
|
||||
background: #f7f7f7;
|
||||
}
|
||||
}
|
||||
|
||||
table {
|
||||
width: 100%;
|
||||
border-collapse: collapse;
|
||||
|
@ -137,9 +155,6 @@ String ProcessManager::generate_html()
|
|||
padding: 4px;
|
||||
border: 1px solid #aaa;
|
||||
}
|
||||
tr:nth-child(odd) {
|
||||
background: #f7f7f7;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue