Skip to content

Commit 298353d

Browse files
committed
correct some variants
1 parent 2d9d3bc commit 298353d

File tree

10 files changed

+12
-28
lines changed

10 files changed

+12
-28
lines changed

apps/desktop/src/components/CapErrorBoundary.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ export function CapErrorBoundary(props: ParentProps) {
2828
onClick={() => {
2929
location.reload();
3030
}}
31-
variant="secondary"
31+
variant="gray"
3232
>
3333
Reload
3434
</Button>

apps/desktop/src/routes/(window-chrome)/new-main/index.tsx

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,6 @@ import {
2525
Suspense,
2626
} from "solid-js";
2727
import { reconcile } from "solid-js/store";
28-
import { addEventListener } from "solid-js/web";
2928
import Tooltip from "~/components/Tooltip";
3029
import { generalSettingsStore } from "~/store";
3130
import { createSignInMutation } from "~/utils/auth";
@@ -378,7 +377,7 @@ function Page() {
378377
signIn.variables?.abort();
379378
signIn.reset();
380379
}}
381-
variant="secondary"
380+
variant="gray"
382381
class="w-full"
383382
>
384383
Cancel Sign In

apps/desktop/src/routes/(window-chrome)/settings/integrations/s3-config.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -264,7 +264,7 @@ export default function S3ConfigPage() {
264264
{deleteConfig.isPending ? "Removing..." : "Remove Config"}
265265
</Button>
266266
)}
267-
<Button variant="secondary" onClick={() => events.emit("test")}>
267+
<Button variant="gray" onClick={() => events.emit("test")}>
268268
{testConfig.isPending ? "Testing..." : "Test Connection"}
269269
</Button>
270270
</div>

apps/desktop/src/routes/(window-chrome)/settings/license.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -260,7 +260,7 @@ function CommercialLicensePurchase() {
260260
<Button
261261
onClick={() => openCommercialCheckout.mutate()}
262262
disabled={openCommercialCheckout.isPending}
263-
variant="lightdark"
263+
variant="dark"
264264
class="w-full !rounded-full mt-10 !h-[48px] text-lg font-medium"
265265
size="lg"
266266
>

apps/desktop/src/routes/(window-chrome)/setup.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -492,7 +492,7 @@ function Startup(props: { onClose: () => void }) {
492492
<Match when={ostype() !== "windows"}>
493493
<Button
494494
class="px-12 text-lg shadow-[0_0_30px_rgba(0,0,0,0.1)]"
495-
variant="secondary"
495+
variant="gray"
496496
size="lg"
497497
onClick={handleGetStarted}
498498
>

apps/desktop/src/routes/(window-chrome)/upgrade.tsx

Lines changed: 2 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,9 @@
11
import { createRive } from "@aerofoil/rive-solid-canvas";
22
import { Button } from "@cap/ui-solid";
3-
import { action, useAction } from "@solidjs/router";
43
import { createMutation, useQueryClient } from "@tanstack/solid-query";
5-
import { invoke } from "@tauri-apps/api/core";
6-
import { listen } from "@tauri-apps/api/event";
74
import { getCurrentWindow, Window } from "@tauri-apps/api/window";
8-
import { onOpenUrl } from "@tauri-apps/plugin-deep-link";
9-
import * as shell from "@tauri-apps/plugin-shell";
10-
import {
11-
type Accessor,
12-
createSignal,
13-
onCleanup,
14-
onMount,
15-
Show,
16-
} from "solid-js";
5+
import { type Accessor, createSignal, Show } from "solid-js";
176
import { generalSettingsStore } from "~/store";
18-
import { identifyUser, trackEvent } from "~/utils/analytics";
19-
import { clientEnv } from "~/utils/env";
207
import { getProPlanId } from "~/utils/plans";
218
import { createLicenseQuery } from "~/utils/queries";
229
import { commands } from "~/utils/tauri";
@@ -437,7 +424,7 @@ export default function Page() {
437424
<Button
438425
onClick={() => openCommercialCheckout.mutate()}
439426
disabled={openCommercialCheckout.isPending}
440-
variant="lightdark"
427+
variant="dark"
441428
class="w-full !rounded-full !h-[48px] text-lg font-medium"
442429
size="lg"
443430
>

apps/desktop/src/routes/editor/Editor.tsx

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@ import {
1111
createSignal,
1212
Match,
1313
on,
14-
onMount,
1514
Show,
1615
Switch,
1716
} from "solid-js";
@@ -386,7 +385,7 @@ function Dialogs() {
386385
<div class="flex flex-row items-center space-x-[0.5rem] text-gray-11">
387386
<Tooltip content="Rule of Thirds">
388387
<Button
389-
variant="secondary"
388+
variant="gray"
390389
size="xs"
391390
class={cx(
392391
"flex items-center justify-center text-center rounded-full h-[2rem] w-[2rem] border text-[0.875rem] focus:border-blue-9",

apps/desktop/src/routes/editor/ui.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -189,7 +189,7 @@ export const Dialog = {
189189
},
190190
CloseButton() {
191191
return (
192-
<KDialog.CloseButton as={Button} variant="secondary">
192+
<KDialog.CloseButton as={Button} variant="gray">
193193
Cancel
194194
</KDialog.CloseButton>
195195
);

apps/desktop/src/styles/theme.css

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -163,7 +163,6 @@
163163
box-shadow: 0 1.5px 0 0 rgba(255, 255, 255, 0.4) inset;
164164
}
165165

166-
167166
[data-transparent-window] {
168167
background: transparent !important;
169168
}

packages/ui-solid/src/Button.stories.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ export const _Button: Story = {
2626
{(size) => <option value={size}>{size}</option>}
2727
</For>
2828
</select>
29-
<table class="border-spacing-2 border-separate text-sm text-left">
29+
<table class="text-sm text-left border-separate border-spacing-2">
3030
<thead>
3131
<tr>
3232
<th />
@@ -44,7 +44,7 @@ export const _Button: Story = {
4444
</Button>
4545
</td>
4646
<td>
47-
<Button variant="secondary" size={size()}>
47+
<Button variant="gray" size={size()}>
4848
Button
4949
</Button>
5050
</td>
@@ -92,7 +92,7 @@ export const _Button: Story = {
9292
</Button>
9393
</td>
9494
<td>
95-
<Button variant="secondary" size={size()} disabled>
95+
<Button variant="gray" size={size()} disabled>
9696
Button
9797
</Button>
9898
</td>

0 commit comments

Comments
 (0)