Fix: Solid icons in server settings

This commit is contained in:
nizune 2021-07-06 00:06:03 +02:00
parent e64bffde22
commit 862bce7967
3 changed files with 15 additions and 7 deletions

View file

@ -33,6 +33,7 @@ export default styled.button<Props>`
} }
&:disabled { &:disabled {
cursor: not-allowed;
background: var(--primary-background); background: var(--primary-background);
} }
@ -50,6 +51,7 @@ export default styled.button<Props>`
} }
&:disabled { &:disabled {
cursor: not-allowed;
opacity: .5; opacity: .5;
} }
@ -69,6 +71,7 @@ export default styled.button<Props>`
} }
&:disabled { &:disabled {
cursor: not-allowed;
background: var(--secondary-header); background: var(--secondary-header);
} }
@ -89,6 +92,7 @@ export default styled.button<Props>`
} }
&:disabled { &:disabled {
cursor: not-allowed;
background: var(--error); background: var(--error);
} }
`} `}

View file

@ -1,10 +1,5 @@
import { import { ListUl, ListCheck } from "@styled-icons/boxicons-regular";
ListUl, import { XSquare, Share, Group } from "@styled-icons/boxicons-solid";
Share,
Group,
ListCheck,
} from "@styled-icons/boxicons-regular";
import { XSquare } from "@styled-icons/boxicons-solid";
import { Route, useHistory, useParams } from "react-router-dom"; import { Route, useHistory, useParams } from "react-router-dom";
import { Text } from "preact-i18n"; import { Text } from "preact-i18n";

View file

@ -118,6 +118,15 @@ export function Component(props: Props) {
</h4> </h4>
</div> </div>
</div> </div>
{/*<Checkbox
checked={props.settings.theme?.ligatures === true}
onChange={() =>
setTheme({
ligatures: !props.settings.theme?.ligatures,
})
}>
Use the system theme
</Checkbox>*/}
<h3> <h3>
<Text id="app.settings.pages.appearance.accent_selector" /> <Text id="app.settings.pages.appearance.accent_selector" />