From 7fca7f8de97b223796702a2bd8cd7dd3066e9500 Mon Sep 17 00:00:00 2001 From: neoapps-dev Date: Mon, 14 Sep 2026 17:07:39 +0300 Subject: [PATCH] feat(DownloadOverlay): full redesign --- public/images/recess.png | Bin 0 -> 151 bytes src/components/common/AchievementToast.tsx | 2 +- src/components/layout/DownloadOverlay.tsx | 108 +++++++++++---------- src/css/index.css | 8 ++ 4 files changed, 65 insertions(+), 53 deletions(-) create mode 100644 public/images/recess.png diff --git a/public/images/recess.png b/public/images/recess.png new file mode 100644 index 0000000000000000000000000000000000000000..41d93a67b43e03be8181378cb291e2147c1d8f2f GIT binary patch literal 151 zcmeAS@N?(olHy`uVBq!ia0vp^0wB!61|;P_|4#%`jKx9jP7LeL$-D$|SkfJR9T^xl z_H+M9WCij$3p^r=85sBugD~Uq{1qucK^;#Q#}EtuWCL^a|NeUK-o5+BZ -
+
{getIcon()}
diff --git a/src/components/layout/DownloadOverlay.tsx b/src/components/layout/DownloadOverlay.tsx index 0e08d46..4848a90 100644 --- a/src/components/layout/DownloadOverlay.tsx +++ b/src/components/layout/DownloadOverlay.tsx @@ -20,15 +20,15 @@ export const DownloadOverlay = memo(function DownloadOverlay({ downloadProgress, animate={{ opacity: 1, scale: 1, y: 0 }} exit={{ opacity: 0, scale: 0.95, y: -10 }} transition={{ duration: 0.15 }} - className="absolute top-14 right-8 z-100 w-72 bg-[#1a1a1a] border-2 border-[#555] shadow-2xl" + className="absolute top-14 right-8 z-100 w-100 mc-options-bg" style={{ imageRendering: "pixelated" }} > -
- +
+ {t("download.title")}
-
+
{downloadingIds.map((id) => { const pct = downloadProgress[id] ?? 0; const edition = editions.find((e) => e.instanceId === id || e.id === id); @@ -38,62 +38,66 @@ export const DownloadOverlay = memo(function DownloadOverlay({ downloadProgress, ? id.replace(/^runner_/, "") : t("download.gameFiles")); return ( -
- {edition?.logo ? ( - edition.logo.startsWith("http") || edition.logo.startsWith("/images") ? ( - - ) : ( - - ) - ) : edition?.titleImage ? ( - edition.titleImage.startsWith("http") || edition.titleImage.startsWith("/images") ? ( - - ) : ( - - ) - ) : ( -
- - - - - -
- )} +
- +
+
+ {edition?.logo ? ( + edition.logo.startsWith("http") || edition.logo.startsWith("/images") ? ( + + ) : ( + + ) + ) : edition?.titleImage ? ( + edition.titleImage.startsWith("http") || edition.titleImage.startsWith("/images") ? ( + + ) : ( + + ) + ) : ( +
+ + + + + +
+ )} + {name} +
+ + {Math.floor(pct)}% + +
-
+
- - {Math.floor(pct)}% -
diff --git a/src/css/index.css b/src/css/index.css index 84a9595..f4cdd6c 100644 --- a/src/css/index.css +++ b/src/css/index.css @@ -72,6 +72,14 @@ image-rendering: pixelated; } +.mc-options-fg { /*neo: tysm https://leanrada.com/9-slicer/ */ + border-image: url("/images/empty.png") 30 30 30 30 fill / 30px 30px 30px 30px; + border-width: 12px; + border-style: solid; + border-color: transparent; + image-rendering: pixelated; +} + .mc-lce-tab { background: linear-gradient(180deg, #c0c0c0 0%, #a0a0a0 100%); border: 2px solid #808080;