Skip to content

Commit

Permalink
Fixed some things in white theme
Browse files Browse the repository at this point in the history
  • Loading branch information
OrigamingWasTaken committed Jun 30, 2024
1 parent cc8fec9 commit 5e7d571
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion frontend/src/lib/components/ui/button/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ const buttonVariants = tv({
default: "bg-primary text-primary-foreground hover:bg-primary/90",
destructive: "bg-destructive text-destructive-foreground hover:bg-destructive/90",
outline:
"border border-input bg-background hover:bg-accent hover:text-accent-foreground",
"border border-input dark:bg-background bg-neutral-700 hover:bg-accent hover:text-accent-foreground",
secondary: "bg-secondary text-secondary-foreground hover:bg-secondary/80",
ghost: "hover:bg-accent hover:text-accent-foreground",
link: "text-primary underline-offset-4 hover:underline",
Expand Down
2 changes: 1 addition & 1 deletion frontend/src/lib/components/ui/input/input.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@

<input
class={cn(
"flex h-10 w-full rounded-md border border-input bg-background px-3 py-2 text-sm ring-offset-background file:border-0 file:bg-transparent file:text-sm file:font-medium placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50",
"flex h-10 w-full rounded-md border border-input dark:bg-background px-3 py-2 text-sm ring-offset-background file:border-0 file:bg-transparent file:text-sm file:font-medium placeholder:text-neutral-800 dark:placeholder:text-muted-foreground text-black disabled:text-neutral-300 dark:text-white focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50",
className
)}
bind:value
Expand Down
6 changes: 3 additions & 3 deletions frontend/src/windows/main/pages/Settings/Panel.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -101,16 +101,16 @@
<Switch class="ml-auto mr-4" bind:checked={sections[section.id][inter.id]} />
{:else if inter.options.type === "string"}
<Input
class="dark:bg-neutral-900 bg-neutral-50 text-center border-none w-[250px] ml-auto mr-4 font-sans"
class="dark:bg-neutral-900 bg-neutral-300 text-center border-none w-[250px] ml-auto mr-4 font-sans"
bind:value={sections[section.id][inter.id]}
placeholder={inter.options.default}
/>
{:else if inter.options.type === "dropdown"}
<Select.Root items={inter.options.list} bind:selected={sections[section.id][inter.id]}>
<Select.Trigger class="w-[180px] dark:bg-neutral-900 bg-neutral-300 ml-auto mr-4 border-none">
<Select.Value placeholder={inter.options.default.label} />
<Select.Value class="text-black dark:text-white" placeholder={inter.options.default.label} />
</Select.Trigger>
<Select.Content class="bg-gray-900 grayscale border-none text-white">
<Select.Content class="dark:bg-gray-900 bg-neutral-200 grayscale border-none dark:text-white text-black">
<Select.Group>
{#each inter.options.list || [] as item}
<Select.Item value={item} label={item.label}>{item.label}</Select.Item>
Expand Down

0 comments on commit 5e7d571

Please sign in to comment.