diff --git a/web/components/ConnectionCard.module.scss b/web/components/ConnectionCard.module.scss index 1317936e8..3369c3325 100644 --- a/web/components/ConnectionCard.module.scss +++ b/web/components/ConnectionCard.module.scss @@ -1,9 +1,7 @@ -.card { - /* Compound/Light/Background */ - background: #FFFFFF; - /* Compound/Light/Quinary Content */ - border: 1px solid #E3E8F0; +.card { + background: var(--cpd-color-bg-subtle-secondary); + border: 1px solid var(--cpd-color-border-interactive-secondary); box-sizing: border-box; border-radius: 8px; @@ -15,6 +13,13 @@ cursor: pointer; + + @media (prefers-color-scheme: dark) { + img.invert { + filter: invert(100%); + } + } + img { width: 52px; height: 52px; diff --git a/web/components/ConnectionCard.tsx b/web/components/ConnectionCard.tsx index 5bd531c23..711d872be 100644 --- a/web/components/ConnectionCard.tsx +++ b/web/components/ConnectionCard.tsx @@ -2,6 +2,7 @@ import style from "./ConnectionCard.module.scss"; interface IProps { imageSrc: string; + darkImage?: boolean; serviceName: string; description: string; key: string; @@ -10,7 +11,7 @@ interface IProps { export function ConnectionCard(props: IProps) { return
{props.description}
diff --git a/web/components/RoomConfigView.tsx b/web/components/RoomConfigView.tsx index cfe587b4e..4cdc6d8df 100644 --- a/web/components/RoomConfigView.tsx +++ b/web/components/RoomConfigView.tsx @@ -37,6 +37,7 @@ interface IConnectionProps { displayName: string, description: string, icon: string, + darkIcon?: true, component: BridgeConfig, } @@ -51,6 +52,7 @@ const connections: Record