Skip to content

Commit

Permalink
chore: support dark mode for the update page.
Browse files Browse the repository at this point in the history
  • Loading branch information
Rohithgilla12 committed Dec 6, 2024
1 parent de70035 commit 4c1c382
Showing 1 changed file with 16 additions and 4 deletions.
20 changes: 16 additions & 4 deletions apps/desktop/src/routes/(window-chrome)/update.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,13 @@ export default function () {

return (
<div class="flex flex-col justify-center flex-1 items-center gap-[3rem] p-[1rem] text-[0.875rem] font-[400] h-full">
<Show when={update()} fallback="No update available" keyed>
<Show
when={update()}
fallback={
<span class="text-[--text-tertiary]">No update available</span>
}
keyed
>
{(update) => {
type UpdateStatus =
| { type: "downloading"; progress: number; contentLength?: number }
Expand Down Expand Up @@ -57,10 +63,14 @@ export default function () {

return (
<div>
<Switch fallback={<IconCapLogo class="animate-spin size-4" />}>
<Switch
fallback={
<IconCapLogo class="animate-spin size-4 text-[--text-primary]" />
}
>
<Match when={updateStatus()?.type === "done"}>
<div class="flex flex-col gap-4">
<p>
<p class="text-[--text-tertiary]">
Update has been installed. Restart Cap to finish updating.
</p>
<div class="flex flex-row">
Expand All @@ -81,7 +91,9 @@ export default function () {
>
{(status) => (
<>
<h1>Installing Update</h1>
<h1 class="text-[--text-primary] mb-4">
Installing Update
</h1>

<div class="w-full bg-gray-200 rounded-full h-2.5">
<div
Expand Down

0 comments on commit 4c1c382

Please sign in to comment.