night mode nur wenn das mrt an ist

This commit is contained in:
PxlLoewe
2026-01-15 22:51:10 +01:00
parent ea9c2c0f38
commit b5d67e55b4

View File

@@ -5,7 +5,7 @@ import DAY_BASE_IMG from "./images/Base_NoScreen_Day.png";
import NIGHT_BASE_IMG from "./images/Base_NoScreen_Night.png"; import NIGHT_BASE_IMG from "./images/Base_NoScreen_Night.png";
export const MrtBase = () => { export const MrtBase = () => {
const { nightMode, setNightMode } = useMrtStore((state) => state); const { nightMode, setNightMode, page } = useMrtStore((state) => state);
useEffect(() => { useEffect(() => {
const checkNightMode = () => { const checkNightMode = () => {
@@ -21,7 +21,7 @@ export const MrtBase = () => {
return ( return (
<Image <Image
src={nightMode ? NIGHT_BASE_IMG : DAY_BASE_IMG} src={nightMode && page !== "off" ? NIGHT_BASE_IMG : DAY_BASE_IMG}
alt="" alt=""
className="z-30 col-span-full row-span-full" className="z-30 col-span-full row-span-full"
/> />