mirror of
https://github.com/fergalmoran/ladybird.git
synced 2025-12-22 09:19:03 +00:00
Base: Support dark mode in version page
This commit is contained in:
committed by
Andreas Kling
parent
27f3305b87
commit
21c5373456
BIN
Base/res/icons/128x128/app-browser-dark.png
Normal file
BIN
Base/res/icons/128x128/app-browser-dark.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 12 KiB |
@@ -4,6 +4,13 @@
|
||||
<meta charset="UTF-8">
|
||||
<title>About %browser_name%</title>
|
||||
<style>
|
||||
/* FIXME: We should be able to remove the HTML style when "color-scheme" is supported */
|
||||
@media (prefers-color-scheme: dark) {
|
||||
html {
|
||||
background-color: rgb(20, 20, 20);
|
||||
color: rgb(235, 235, 235);
|
||||
}
|
||||
}
|
||||
img {
|
||||
float: left;
|
||||
margin-right: 10px;
|
||||
@@ -19,7 +26,10 @@
|
||||
</head>
|
||||
<body>
|
||||
<header>
|
||||
<img src="resource://icons/128x128/app-browser.png">
|
||||
<picture>
|
||||
<source srcset="resource://icons/128x128/app-browser.png" media="(prefers-color-scheme: dark)">
|
||||
<img src="resource://icons/128x128/app-browser-dark.png">
|
||||
</picture>
|
||||
<h1>About %browser_name%</h1>
|
||||
</header>
|
||||
<table>
|
||||
|
||||
Reference in New Issue
Block a user