Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: support dark mode for the update page. #202

Merged
merged 1 commit into from
Dec 9, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading