diff --git a/public/images/background.jpg b/public/images/background.jpg deleted file mode 100644 index c7ebdcd..0000000 Binary files a/public/images/background.jpg and /dev/null differ diff --git a/public/images/cry.webp b/public/images/cry.webp new file mode 100644 index 0000000..1c0be82 Binary files /dev/null and b/public/images/cry.webp differ diff --git a/src/components/FooterBar/FooterBar.tsx b/src/components/FooterBar/FooterBar.tsx index 069b50a..c5e01d3 100644 --- a/src/components/FooterBar/FooterBar.tsx +++ b/src/components/FooterBar/FooterBar.tsx @@ -14,6 +14,7 @@ export const FooterBar = () => { display: "flex", flexDirection: "row", height: "66px", + zIndex: 1000000, }} > = ({ sx }) => { const [oldWallpaperPath, setOldWallpaperPath] = useState(null); const [targetWallpaperPath, setTargetWallpaperPath] = useState(null); const [imageBlob, setImageBlob] = useState(null); + const [noImageSelectedIcon, setNoImageSelectedIcon] = useState(null); const handleSettingsBackgroundValueChange = ( settingKey: string, @@ -124,6 +125,8 @@ export const Background: FC = ({ sx }) => { } }, [targetWallpaperPath]); + useEffect(() => {}); + return ( @@ -141,11 +144,11 @@ export const Background: FC = ({ sx }) => { > {imageBlob ? ( Image not found ) : ( = ({ sx }) => { alignItems: "center", backgroundColor: "rgba(0, 0, 0, 0.1)", display: "flex", + flexDirection: "column", height: "100%", justifyContent: "center", position: "absolute", width: "100%", }} > - No image selected + {targetWallpaperPath ? ( + + ) : ( + <> + {/* eslint-disable-next-line @next/next/no-img-element */} + Image not found + + No image selected + + + )} )} diff --git a/src/components/HeaderBar/Settings/SettingsTabs/Window.tsx b/src/components/HeaderBar/Settings/SettingsTabs/Window.tsx index 89dcf74..4fe10d2 100644 --- a/src/components/HeaderBar/Settings/SettingsTabs/Window.tsx +++ b/src/components/HeaderBar/Settings/SettingsTabs/Window.tsx @@ -44,6 +44,19 @@ export const Window: FC = ({ sx }) => { } /> + { + handleSettingsWindowValueChange(e.target.name, e.target.checked); + }} + /> + } + /> { setAppWindow(appWindow); }; + const toggleFullscreen = async () => { + appWindow?.setFullscreen(!(await appWindow?.isFullscreen())); + }; + const minimize = () => { appWindow?.minimize(); }; - const maximize = () => { + const toggleMaximize = () => { appWindow?.toggleMaximize(); }; @@ -52,6 +55,17 @@ export const WindowButtons = () => { direction="row" spacing={1} > + {settings.window.fullscreen_button && ( + + {appWindow?.isFullscreen() ? : } + + )} {settings.window.minimize_button && ( { backgroundColor: userTheme.palette.grey[800], }} > - + )} {settings.window.maximize_button && ( - + )}