Skip to content

Commit

Permalink
Fix performance issues coming from WebKit's grayscale implementation
Browse files Browse the repository at this point in the history
  • Loading branch information
OrigamingWasTaken committed Jul 14, 2024
1 parent fbf58e0 commit 4cc33b1
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
2 changes: 1 addition & 1 deletion frontend/src/lib/components/ui/switch/switch.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
<SwitchPrimitive.Root
bind:checked
class={cn(
"peer inline-flex h-[24px] w-[44px] shrink-0 cursor-pointer items-center rounded-full border-2 border-transparent transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 focus-visible:ring-offset-background disabled:cursor-not-allowed disabled:opacity-50 data-[state=checked]:bg-primary data-[state=unchecked]:bg-[#474747] data-[state=unchecked]:border-gray-500 data-[state=unchecked]:grayscale",
"peer inline-flex h-[24px] w-[44px] shrink-0 cursor-pointer items-center rounded-full border-2 border-transparent transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 focus-visible:ring-offset-background disabled:cursor-not-allowed disabled:opacity-50 data-[state=checked]:bg-primary data-[state=unchecked]:bg-[#474747] data-[state=unchecked]:border-gray-500",
className
)}
{...$$restProps}
Expand Down
1 change: 0 additions & 1 deletion frontend/src/windows/main/pages/Settings/Panel.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,6 @@
{:else if inter.options.type === "boolean"}
<Switch
class="ml-auto mr-4"
bind:checked={sections[section.id][inter.id]}
on:click={() => {
dispatch("switchClicked", { id: inter.id, state: !sections[section.id][inter.id] });
}}
Expand Down

0 comments on commit 4cc33b1

Please sign in to comment.