Skip to content

Commit

Permalink
Merge pull request #202 from Rohithgilla12/chore/update-color
Browse files Browse the repository at this point in the history
chore: support dark mode for the update page.
  • Loading branch information
richiemcilroy authored Dec 9, 2024
2 parents 524dcda + 4c1c382 commit f1b5da8
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 @@ -17,7 +17,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 @@ -59,10 +65,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 @@ -83,7 +93,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

1 comment on commit f1b5da8

@vercel
Copy link

@vercel vercel bot commented on f1b5da8 Dec 9, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.