mirror of
https://github.com/zhom/donutbrowser.git
synced 2026-09-22 17:30:52 +02:00
style: icons have monotonic color
This commit is contained in:
@@ -17,26 +17,20 @@ interface AppUpdateToastProps {
|
|||||||
|
|
||||||
function getStageIcon(stage?: string, isUpdating?: boolean) {
|
function getStageIcon(stage?: string, isUpdating?: boolean) {
|
||||||
if (!isUpdating) {
|
if (!isUpdating) {
|
||||||
return <FaDownload className="flex-shrink-0 w-5 h-5 text-blue-500" />;
|
return <FaDownload className="flex-shrink-0 w-5 h-5" />;
|
||||||
}
|
}
|
||||||
|
|
||||||
switch (stage) {
|
switch (stage) {
|
||||||
case "downloading":
|
case "downloading":
|
||||||
return <FaDownload className="flex-shrink-0 w-5 h-5 text-blue-500" />;
|
return <FaDownload className="flex-shrink-0 w-5 h-5" />;
|
||||||
case "extracting":
|
case "extracting":
|
||||||
return (
|
return <LuRefreshCw className="flex-shrink-0 w-5 h-5 animate-spin" />;
|
||||||
<LuRefreshCw className="flex-shrink-0 w-5 h-5 text-blue-500 animate-spin" />
|
|
||||||
);
|
|
||||||
case "installing":
|
case "installing":
|
||||||
return (
|
return <LuCog className="flex-shrink-0 w-5 h-5 animate-spin" />;
|
||||||
<LuCog className="flex-shrink-0 w-5 h-5 text-blue-500 animate-spin" />
|
|
||||||
);
|
|
||||||
case "completed":
|
case "completed":
|
||||||
return <LuCheckCheck className="flex-shrink-0 w-5 h-5 text-green-500" />;
|
return <LuCheckCheck className="flex-shrink-0 w-5 h-5" />;
|
||||||
default:
|
default:
|
||||||
return (
|
return <LuRefreshCw className="flex-shrink-0 w-5 h-5 animate-spin" />;
|
||||||
<LuRefreshCw className="flex-shrink-0 w-5 h-5 text-blue-500 animate-spin" />
|
|
||||||
);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -79,7 +73,7 @@ export function AppUpdateToast({
|
|||||||
updateProgress.stage === "completed");
|
updateProgress.stage === "completed");
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<div className="flex items-start p-4 w-full max-w-md bg-card rounded-lg border border-border shadow-lg text-card-foreground">
|
<div className="flex items-start p-4 w-full max-w-md rounded-lg border shadow-lg bg-card border-border text-card-foreground">
|
||||||
<div className="mr-3 mt-0.5">
|
<div className="mr-3 mt-0.5">
|
||||||
{getStageIcon(updateProgress?.stage, isUpdating)}
|
{getStageIcon(updateProgress?.stage, isUpdating)}
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
Reference in New Issue
Block a user