From 5814f00f3d7de9b1d7a314d4e3a9a080865aa46a Mon Sep 17 00:00:00 2001
From: zhom <2717306+zhom@users.noreply.github.com>
Date: Wed, 13 Aug 2025 09:33:56 +0400
Subject: [PATCH] style: toast colors
---
src/components/custom-toast.tsx | 80 +++++++++++----------------------
1 file changed, 27 insertions(+), 53 deletions(-)
diff --git a/src/components/custom-toast.tsx b/src/components/custom-toast.tsx
index 6c72d07..572526e 100644
--- a/src/components/custom-toast.tsx
+++ b/src/components/custom-toast.tsx
@@ -127,36 +127,38 @@ type ToastProps =
function getToastIcon(type: ToastProps["type"], stage?: string) {
switch (type) {
case "success":
- return
+
{title}
@@ -203,15 +183,15 @@ export function UnifiedToast(props: ToastProps) { stage === "downloading" && (+
{progress.percentage.toFixed(1)}% {progress.speed && ` • ${progress.speed} MB/s`} {progress.eta && ` • ${progress.eta} remaining`}
+
{progress.current_browser && ( <>Looking for updates for {progress.current_browser}> )}
+
{"hasUpdate" in props && props.hasUpdate ? "New twilight build available for download" : "Checking for twilight updates..."}
{props.browserName && ( -+
{props.browserName} • Rolling Release
)} @@ -262,13 +242,7 @@ export function UnifiedToast(props: ToastProps) { {/* Description */} {description && ( -+
{description}
)} @@ -277,17 +251,17 @@ export function UnifiedToast(props: ToastProps) { {type === "download" && !description && ( <> {stage === "extracting" && ( -+
Extracting browser files...
)} {stage === "verifying" && ( -+
Verifying browser files...
)} {stage === "downloading (twilight rolling release)" && ( -+
Downloading rolling release build...
)}