style/about dialog: add a different background color for nightly builds

This commit is contained in:
Adorian Doran
2026-04-16 20:59:05 +03:00
parent 262c89d252
commit 12a83510ed
2 changed files with 10 additions and 1 deletions

View File

@@ -2,10 +2,18 @@
body.light-theme & {
--donate-button-color: #e33f3b;
&.nightly {
--modal-background-color: #f2e1ff;
}
}
body.dark-theme & {
--donate-button-color: #fba6a5;
&.nightly {
--modal-background-color: #23182b;
}
}
--bs-modal-width: 680px;

View File

@@ -15,6 +15,7 @@ import { Fragment } from "preact/jsx-runtime";
import { ComponentChildren } from "preact";
import { useMemo } from "react";
import { memo } from "preact/compat";
import clsx from "clsx";
export default function AboutDialog() {
const [appInfo, setAppInfo] = useState<AppInfo | null>(null);
@@ -65,7 +66,7 @@ export default function AboutDialog() {
return (
<Modal
className={"about-dialog"}
className={clsx(["about-dialog", {"nightly": isNightly}])}
size="md"
show={shown}
onHidden={() => setShown(false)}