summaryrefslogtreecommitdiffhomepage
path: root/desktop
diff options
context:
space:
mode:
authorOliver <oliver@mohlin.dev>2025-04-29 11:41:08 +0200
committerTobias Järvelöv <tobias.jarvelov@mullvad.net>2025-05-19 14:28:48 +0200
commit6e7943f7a05a4ac76c82fd472fd33e18e804ebbf (patch)
tree05aebc05e0c7c5c71c16bdb7b3505f01f0eea683 /desktop
parent003b3e5a9533117196543a9d1ecc286665b8b537 (diff)
downloadmullvadvpn-6e7943f7a05a4ac76c82fd472fd33e18e804ebbf.tar.xz
mullvadvpn-6e7943f7a05a4ac76c82fd472fd33e18e804ebbf.zip
Use new colors in NotificationBanner
Diffstat (limited to 'desktop')
-rw-r--r--desktop/packages/mullvad-vpn/src/renderer/components/NotificationBanner.tsx14
1 files changed, 7 insertions, 7 deletions
diff --git a/desktop/packages/mullvad-vpn/src/renderer/components/NotificationBanner.tsx b/desktop/packages/mullvad-vpn/src/renderer/components/NotificationBanner.tsx
index c40879baf1..21b707d367 100644
--- a/desktop/packages/mullvad-vpn/src/renderer/components/NotificationBanner.tsx
+++ b/desktop/packages/mullvad-vpn/src/renderer/components/NotificationBanner.tsx
@@ -4,7 +4,7 @@ import styled from 'styled-components';
import { messages } from '../../shared/gettext';
import { InAppNotificationIndicatorType } from '../../shared/notifications/notification';
import { IconButton } from '../lib/components';
-import { DeprecatedColors } from '../lib/foundations';
+import { colors } from '../lib/foundations';
import { useExclusiveTask } from '../lib/hooks/use-exclusive-task';
import { useEffectEvent, useLastDefinedValue, useStyledRef } from '../lib/utility-hooks';
import { tinyText } from './common-styles';
@@ -12,11 +12,11 @@ import { tinyText } from './common-styles';
const NOTIFICATION_AREA_ID = 'notification-area';
export const NotificationTitle = styled.span(tinyText, {
- color: DeprecatedColors.white,
+ color: colors.white100,
});
export const NotificationSubtitleText = styled.span(tinyText, {
- color: DeprecatedColors.white60,
+ color: colors.white60,
});
interface INotificationSubtitleProps {
@@ -90,9 +90,9 @@ interface INotificationIndicatorProps {
}
const notificationIndicatorTypeColorMap = {
- success: DeprecatedColors.green,
- warning: DeprecatedColors.yellow,
- error: DeprecatedColors.red,
+ success: colors.brandGreen,
+ warning: colors.brandYellow,
+ error: colors.brandRed,
};
export const NotificationIndicator = styled.div<INotificationIndicatorProps>((props) => ({
@@ -114,7 +114,7 @@ const Collapsible = styled.div<ICollapsibleProps>((props) => {
display: 'flex',
flexDirection: 'column',
justifyContent: props.$alignBottom ? 'flex-end' : 'flex-start',
- backgroundColor: DeprecatedColors.darkerBlue,
+ backgroundColor: colors.darkerBlue50,
overflow: 'hidden',
// Using auto as the initial value prevents transition if a notification is visible on mount.
height: props.$height === undefined ? 'auto' : `${props.$height}px`,