Skip to content

Commit

Permalink
feat(deriv_theme): [UPM-856] Add passkeys colors to deriv theme. (#545)
Browse files Browse the repository at this point in the history
  • Loading branch information
bassam-deriv authored Mar 29, 2024
1 parent af3de22 commit 09c54bb
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 0 deletions.
4 changes: 4 additions & 0 deletions packages/deriv_theme/lib/colors/colors.dart
Original file line number Diff line number Diff line change
Expand Up @@ -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])!;
}
2 changes: 2 additions & 0 deletions packages/deriv_theme/lib/colors/dark_theme.dart
Original file line number Diff line number Diff line change
Expand Up @@ -56,4 +56,6 @@ const Map<String, Color> darkTheme = <String, Color>{
'usdcWalletEnd': Color(0x3D2775CA),
'demoWalletBegin': Color(0x7AFF444F),
'demoWalletEnd': Color(0x3DFF6444),
'badgeBackgroundColor': Color(0xFF4D3500),
'badgeTextColor': Color(0xFFFFEABF),
};
2 changes: 2 additions & 0 deletions packages/deriv_theme/lib/colors/light_theme.dart
Original file line number Diff line number Diff line change
Expand Up @@ -56,4 +56,6 @@ const Map<String, Color> lightTheme = <String, Color>{
'usdcWalletEnd': Color(0x3D2775CA),
'demoWalletBegin': Color(0x7AFF444F),
'demoWalletEnd': Color(0x3DFF6444),
'badgeBackgroundColor': Color(0xFF4D3500),
'badgeTextColor': Color(0xFFFFEABF),
};

0 comments on commit 09c54bb

Please sign in to comment.