mirror of
https://github.com/zadam/trilium.git
synced 2026-05-07 14:47:27 +02:00
style/about dialog: add a different background color for nightly builds
This commit is contained in:
@@ -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;
|
||||
|
||||
@@ -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)}
|
||||
|
||||
Reference in New Issue
Block a user