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">
|
<meta charset="UTF-8">
|
||||||
<title>About %browser_name%</title>
|
<title>About %browser_name%</title>
|
||||||
<style>
|
<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 {
|
img {
|
||||||
float: left;
|
float: left;
|
||||||
margin-right: 10px;
|
margin-right: 10px;
|
||||||
@@ -19,7 +26,10 @@
|
|||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
<header>
|
<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>
|
<h1>About %browser_name%</h1>
|
||||||
</header>
|
</header>
|
||||||
<table>
|
<table>
|
||||||
|
|||||||
@@ -47,6 +47,7 @@ set(48x48_ICONS
|
|||||||
)
|
)
|
||||||
set(128x128_ICONS
|
set(128x128_ICONS
|
||||||
app-browser.png
|
app-browser.png
|
||||||
|
app-browser-dark.png
|
||||||
)
|
)
|
||||||
set(BROWSER_ICONS
|
set(BROWSER_ICONS
|
||||||
clear-cache.png
|
clear-cache.png
|
||||||
|
|||||||
@@ -249,7 +249,10 @@ icons_32x32 = [
|
|||||||
|
|
||||||
icons_48x48 = [ "//Base/res/icons/48x48/app-browser.png" ]
|
icons_48x48 = [ "//Base/res/icons/48x48/app-browser.png" ]
|
||||||
|
|
||||||
icons_128x128 = [ "//Base/res/icons/128x128/app-browser.png" ]
|
icons_128x128 = [
|
||||||
|
"//Base/res/icons/128x128/app-browser.png",
|
||||||
|
"//Base/res/icons/128x128/app-browser-dark.png",
|
||||||
|
]
|
||||||
|
|
||||||
icons_browser = [
|
icons_browser = [
|
||||||
"//Base/res/icons/browser/clear-cache.png",
|
"//Base/res/icons/browser/clear-cache.png",
|
||||||
|
|||||||
Reference in New Issue
Block a user