From a9367f48f12ceb5fc1c8f9013b2846fc1a97377d Mon Sep 17 00:00:00 2001 From: Evan Hahn <69474926+EvanHahn-Signal@users.noreply.github.com> Date: Fri, 4 Dec 2020 17:03:01 -0600 Subject: [PATCH] Dark theme for calling device selection --- stylesheets/_modules.scss | 8 +------- ts/components/CallingButton.tsx | 5 +++-- ts/components/CallingDeviceSelection.tsx | 8 +++++++- ts/components/CallingHeader.tsx | 9 +++++---- ts/components/ConfirmationModal.tsx | 10 ++++++++-- ts/components/IncomingCallBar.tsx | 5 +++-- ts/components/Tooltip.stories.tsx | 5 +++-- ts/components/Tooltip.tsx | 20 ++++---------------- ts/test-both/util/theme_test.ts | 16 ++++++++++++++++ ts/util/theme.ts | 20 ++++++++++++++++++++ 10 files changed, 70 insertions(+), 36 deletions(-) create mode 100644 ts/test-both/util/theme_test.ts create mode 100644 ts/util/theme.ts diff --git a/stylesheets/_modules.scss b/stylesheets/_modules.scss index 2390cad84..65ae3f7b7 100644 --- a/stylesheets/_modules.scss +++ b/stylesheets/_modules.scss @@ -9714,13 +9714,7 @@ button.module-image__border-overlay:focus { .module-calling-device-selection__close-button { @include button-reset; - @include light-theme { - @include color-svg('../images/x-shadow-16.svg', $color-gray-75); - } - - @include dark-theme { - @include color-svg('../images/x-shadow-16.svg', $color-white); - } + @include color-svg('../images/x-shadow-16.svg', $color-white); height: 16px; position: absolute; diff --git a/ts/components/CallingButton.tsx b/ts/components/CallingButton.tsx index ccdf89eee..80972b4b9 100644 --- a/ts/components/CallingButton.tsx +++ b/ts/components/CallingButton.tsx @@ -3,7 +3,8 @@ import React from 'react'; import classNames from 'classnames'; -import { Tooltip, TooltipPlacement, TooltipTheme } from './Tooltip'; +import { Tooltip, TooltipPlacement } from './Tooltip'; +import { Theme } from '../util/theme'; import { LocalizerType } from '../types/Util'; export enum CallingButtonType { @@ -63,7 +64,7 @@ export const CallingButton = ({