kopia lustrzana https://github.com/cheeaun/phanpy
Test invert the color-scheme priority
rodzic
36ff2ce9a0
commit
b6c3b5384a
|
@ -5,7 +5,7 @@
|
|||
<link rel="icon" type="image/svg+xml" href="/favicon.svg" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
||||
<title>Compose / %PHANPY_CLIENT_NAME%</title>
|
||||
<meta name="color-scheme" content="dark light" />
|
||||
<meta name="color-scheme" content="light dark" />
|
||||
<meta name="google" content="notranslate" />
|
||||
</head>
|
||||
<body>
|
||||
|
|
|
@ -11,7 +11,7 @@
|
|||
name="description"
|
||||
content="Minimalistic opinionated Mastodon web client"
|
||||
/>
|
||||
<meta name="color-scheme" content="dark light" />
|
||||
<meta name="color-scheme" content="light dark" />
|
||||
<link rel="icon" type="image/x-icon" href="/favicon.ico" />
|
||||
<link rel="apple-touch-icon" href="/apple-touch-icon.png" />
|
||||
<meta name="apple-mobile-web-app-title" content="%PHANPY_CLIENT_NAME%" />
|
||||
|
|
|
@ -7,7 +7,7 @@
|
|||
content="width=device-width, initial-scale=1, viewport-fit=cover"
|
||||
/>
|
||||
<title>Page not found</title>
|
||||
<meta name="color-scheme" content="dark light" />
|
||||
<meta name="color-scheme" content="light dark" />
|
||||
<style>
|
||||
body {
|
||||
text-align: center;
|
||||
|
|
|
@ -278,7 +278,7 @@ if (isIOS) {
|
|||
document.documentElement.classList.add(`is-${theme}`);
|
||||
document
|
||||
.querySelector('meta[name="color-scheme"]')
|
||||
.setAttribute('content', theme || 'dark light');
|
||||
.setAttribute('content', theme || 'light dark');
|
||||
|
||||
// Enable manual theme <meta>
|
||||
const $manualMeta = document.querySelector(
|
||||
|
|
|
@ -160,7 +160,7 @@ function Settings({ onClose }) {
|
|||
.querySelector('meta[name="color-scheme"]')
|
||||
.setAttribute(
|
||||
'content',
|
||||
theme === 'auto' ? 'dark light' : theme,
|
||||
theme === 'auto' ? 'light dark' : theme,
|
||||
);
|
||||
|
||||
if (theme === 'auto') {
|
||||
|
|
Ładowanie…
Reference in New Issue