From 09c54bb6572d5c8ec0454cf41c8ef282b89f2689 Mon Sep 17 00:00:00 2001 From: Bassam El Obeid <127500305+bassam-deriv@users.noreply.github.com> Date: Fri, 29 Mar 2024 05:36:04 +0400 Subject: [PATCH] feat(deriv_theme): [UPM-856] Add passkeys colors to deriv theme. (#545) --- packages/deriv_theme/lib/colors/colors.dart | 4 ++++ packages/deriv_theme/lib/colors/dark_theme.dart | 2 ++ packages/deriv_theme/lib/colors/light_theme.dart | 2 ++ 3 files changed, 8 insertions(+) diff --git a/packages/deriv_theme/lib/colors/colors.dart b/packages/deriv_theme/lib/colors/colors.dart index c528186bb..f93b6c03b 100644 --- a/packages/deriv_theme/lib/colors/colors.dart +++ b/packages/deriv_theme/lib/colors/colors.dart @@ -101,5 +101,9 @@ class Colors { Color get demoWalletEnd => _fetchColor('demoWalletEnd'); + Color get badgeBackgroundColor => _fetchColor('badgeBackgroundColor'); + + Color get badgeTextColor => _fetchColor('badgeTextColor'); + Color _fetchColor(String name) => (isDark ? dark[name] : light[name])!; } diff --git a/packages/deriv_theme/lib/colors/dark_theme.dart b/packages/deriv_theme/lib/colors/dark_theme.dart index cc919306d..55d28898e 100644 --- a/packages/deriv_theme/lib/colors/dark_theme.dart +++ b/packages/deriv_theme/lib/colors/dark_theme.dart @@ -56,4 +56,6 @@ const Map darkTheme = { 'usdcWalletEnd': Color(0x3D2775CA), 'demoWalletBegin': Color(0x7AFF444F), 'demoWalletEnd': Color(0x3DFF6444), + 'badgeBackgroundColor': Color(0xFF4D3500), + 'badgeTextColor': Color(0xFFFFEABF), }; diff --git a/packages/deriv_theme/lib/colors/light_theme.dart b/packages/deriv_theme/lib/colors/light_theme.dart index 3f7da2014..45a186da6 100644 --- a/packages/deriv_theme/lib/colors/light_theme.dart +++ b/packages/deriv_theme/lib/colors/light_theme.dart @@ -56,4 +56,6 @@ const Map lightTheme = { 'usdcWalletEnd': Color(0x3D2775CA), 'demoWalletBegin': Color(0x7AFF444F), 'demoWalletEnd': Color(0x3DFF6444), + 'badgeBackgroundColor': Color(0xFF4D3500), + 'badgeTextColor': Color(0xFFFFEABF), };