From 862bce7967f0e37b12558de611c6546959ef051d Mon Sep 17 00:00:00 2001 From: nizune <9-nizune@users.noreply.gitlab.insrt.uk> Date: Tue, 6 Jul 2021 00:06:03 +0200 Subject: [PATCH] Fix: Solid icons in server settings --- src/components/ui/Button.tsx | 4 ++++ src/pages/settings/ServerSettings.tsx | 9 ++------- src/pages/settings/panes/Appearance.tsx | 9 +++++++++ 3 files changed, 15 insertions(+), 7 deletions(-) diff --git a/src/components/ui/Button.tsx b/src/components/ui/Button.tsx index 5e020fc8..ecd4e799 100644 --- a/src/components/ui/Button.tsx +++ b/src/components/ui/Button.tsx @@ -33,6 +33,7 @@ export default styled.button` } &:disabled { + cursor: not-allowed; background: var(--primary-background); } @@ -50,6 +51,7 @@ export default styled.button` } &:disabled { + cursor: not-allowed; opacity: .5; } @@ -69,6 +71,7 @@ export default styled.button` } &:disabled { + cursor: not-allowed; background: var(--secondary-header); } @@ -89,6 +92,7 @@ export default styled.button` } &:disabled { + cursor: not-allowed; background: var(--error); } `} diff --git a/src/pages/settings/ServerSettings.tsx b/src/pages/settings/ServerSettings.tsx index e3b2a2e1..66c6881d 100644 --- a/src/pages/settings/ServerSettings.tsx +++ b/src/pages/settings/ServerSettings.tsx @@ -1,10 +1,5 @@ -import { - ListUl, - Share, - Group, - ListCheck, -} from "@styled-icons/boxicons-regular"; -import { XSquare } from "@styled-icons/boxicons-solid"; +import { ListUl, ListCheck } from "@styled-icons/boxicons-regular"; +import { XSquare, Share, Group } from "@styled-icons/boxicons-solid"; import { Route, useHistory, useParams } from "react-router-dom"; import { Text } from "preact-i18n"; diff --git a/src/pages/settings/panes/Appearance.tsx b/src/pages/settings/panes/Appearance.tsx index caedd903..24b0008e 100644 --- a/src/pages/settings/panes/Appearance.tsx +++ b/src/pages/settings/panes/Appearance.tsx @@ -118,6 +118,15 @@ export function Component(props: Props) { + {/* + setTheme({ + ligatures: !props.settings.theme?.ligatures, + }) + }> + Use the system theme + */}