mirror of
https://github.com/streetwriters/notesnook.git
synced 2026-02-24 04:00:59 +01:00
web: fix toggle colors
This commit is contained in:
@@ -47,7 +47,7 @@ function Toggle(props) {
|
||||
{label}
|
||||
</Text>
|
||||
<Switch
|
||||
sx={{ m: 0, bg: isOn ? "accent" : "icon" }}
|
||||
sx={{ m: 0, bg: isOn ? "accent" : "icon-secondary" }}
|
||||
onClick={() => onToggle(!isOn)}
|
||||
checked={isOn}
|
||||
/>
|
||||
|
||||
@@ -462,7 +462,12 @@ function SettingItem(props: { item: Setting }) {
|
||||
case "toggle":
|
||||
return (
|
||||
<Switch
|
||||
sx={{ m: 0, background: "accent" }}
|
||||
sx={{
|
||||
m: 0,
|
||||
background: component.isToggled()
|
||||
? "accent"
|
||||
: "icon-secondary"
|
||||
}}
|
||||
disabled={isWorking}
|
||||
onChange={() => workWithLoading(component.toggle)}
|
||||
checked={component.isToggled()}
|
||||
|
||||
Reference in New Issue
Block a user