mirror of
https://github.com/upscayl/upscayl.git
synced 2024-11-23 23:21:05 +01:00
fixed theme and upscayl cloud modal bugs
This commit is contained in:
parent
45324c9fc1
commit
9c71552d7a
@ -1,3 +1,4 @@
|
||||
"use client"
|
||||
import { useState, useEffect, useCallback } from "react";
|
||||
import commands from "../../electron/commands";
|
||||
import { ReactCompareSlider } from "react-compare-slider";
|
||||
@ -47,7 +48,7 @@ const Home = () => {
|
||||
const [modelOptions, setModelOptions] = useAtom(modelsListAtom);
|
||||
const [scale] = useAtom(scaleAtom);
|
||||
|
||||
const [showCloudModal, setShowCloudModal] = useState(true);
|
||||
const [showCloudModal, setShowCloudModal] = useState(false);
|
||||
|
||||
const { logit } = useLog();
|
||||
|
||||
@ -169,6 +170,11 @@ const Home = () => {
|
||||
setModelOptions(uniqueModelOptions);
|
||||
}
|
||||
);
|
||||
if (!localStorage.getItem("upscaylCloudModalShown")) {
|
||||
logit("⚙️ upscayl cloud show to true");
|
||||
localStorage.setItem("upscaylCloudModalShown", "true");
|
||||
setShowCloudModal(true);
|
||||
}
|
||||
}, []);
|
||||
|
||||
useEffect(() => {
|
||||
|
@ -19,6 +19,7 @@ module.exports = {
|
||||
},
|
||||
plugins: [require("daisyui"), require("tailwind-scrollbar")],
|
||||
daisyui: {
|
||||
darkTheme: 'upscayl',
|
||||
themes: [
|
||||
{
|
||||
upscayl: {
|
||||
|
Loading…
Reference in New Issue
Block a user