From 9c71552d7a5a56c61f692ae67435f2122ba5ff3c Mon Sep 17 00:00:00 2001 From: TGS963 Date: Thu, 31 Aug 2023 23:52:58 +0530 Subject: [PATCH] fixed theme and upscayl cloud modal bugs --- renderer/pages/index.tsx | 8 +++++++- tailwind.config.js | 1 + 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/renderer/pages/index.tsx b/renderer/pages/index.tsx index fbd3446..9f374ec 100644 --- a/renderer/pages/index.tsx +++ b/renderer/pages/index.tsx @@ -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(() => { diff --git a/tailwind.config.js b/tailwind.config.js index 43c7742..c809dbe 100644 --- a/tailwind.config.js +++ b/tailwind.config.js @@ -19,6 +19,7 @@ module.exports = { }, plugins: [require("daisyui"), require("tailwind-scrollbar")], daisyui: { + darkTheme: 'upscayl', themes: [ { upscayl: {