CakeWallet/lib/entities
tuxsudo df88914628
New themes (#2239)
* Add theme base v2

* Initial new theme base files

* Typos

* Fixes

* Update theme files

* feat: Migrate to Material 3 Theming

Foundation, Theme Data Refactor, and First Extension Cleanup Batch.

This commit completes the first major phase of migrating to Material 3 theming by setting up the foundations for material 3 integration and begins the initial migration, removing custom theme extensions, updating theme data, and refactoring all relevant widget and page theming to use Material 3’s built-in color and typography tokens.

These changes:
- Lays the groundwork for Material 3 theming by restructuring the app’s theme configuration to use Material 3’s ColorScheme and TextTheme as the primary sources of color and typography throughout the app.
- Refactors the core theme config files by removing legacy custom color roles ensuring all color definitions now map directly to Material 3’s role.
- Begins the first batch migration of custom theme extensions (InfoTheme, PlaceholderTheme, KeyboardTheme, PinCodeTheme) and updates all affected widgets and pages to use Material 3 color and typography tokens instead of the custom properties.
- Cleans up the codebase by deleting the files of the initial set of migrated extensions and eliminating all related imports and usages.

* feat: Migrate to Material 3 Theming.

This change:
- Updates the themes README.md file to reflect the current structure and give more information based on the first major phase that was completed.

* feat: Migrate to Material 3 Theming

Deleting previous theme extensions

* feat: Migrate to Material 3 Theming

Another batch of migrations from existing extensions

* feat: Migration to Material 3 Theming

Third Migration batch for theme extensions

* fwat: Migration to Material 3 Theming

Final Migration batch for previous theme extensions

* Update onboarding hero

* Update button radius

* Add surfaceContainer to light theme

* feat(themes): Migrate to Material 3 Theming

This change:
- Adds new set of hero images
- Modifies the core structure for the themes
- Add missing color tokens to the theme classes
- Adds a CustomThemeColor class for custom color tokens
- Modifies the themelist to have a fall back for previous theme implementation
- Adds localization for some texts
- Modifies the flow for loading the theme on app start
- Add a WidgetsBindingObserver that listens for changes in the device theme and updates the app theme when there is a change
- Registers the themeStore as a Singleton for codebase wide use

* feat(themes): Migrate to Material 3 theming

This change:
- Migrates UI flows across the app to the new themes
- Confirms styling and typography of components across the app uses the new themes
- Remove instances of Palette use
- Switch TextStyles across the app to use theme text styles

* feat(themes): Migrate to Material 3 Theming.

This change:
- Adjusts bottomsheets styling and removes duplicate close button
- Removes more themedata extensions from the previous implementation

* - Remove outlines from cards and dock
- Update menu colors
- Update padding/divider size for cards

* - Update PIN screen
- Fix navigation dock shadow
- Update wallet screen colors

* Update border radius --skip-ci

* feat(themes): Migrate to Material 3 Theming.

This change:
- Adds gradient backgrounds to the dashbaord and balance cards.
- Migrates the input fields across the app to BaseTextFormFields.
- Removes dependence of input fields on individual styling, focusing instead on using theme defined InputDecoration styling with adjustments on individual components where needed.
- Applies new theme styling to BaseTextFormField, AddressTextField and CurrencyAmountTextField.

* - Switch some hero images to PNG
- Fix nagivation_dock shadow
- Minor fixes

* feat: Add fallback to previous underline styling in central widgets

This change:
- Adds a fallback to CurrencyAmountTextField, AddressTextField, and BaseTextFormField, allowing them use the previous theme styling.
- Adds localization for new texts

* feat(themes): Update warning box colors for dark and light themes

* feat(themes): Relaod themes when user restores from backup, ensuring the user previous theme preference is used.

* feat(themes): Handle themes logic during restore from backup

This change:
- Refactors theme loading logic to handle backup restore edgecase
- Refreshes the theme based on the user saved preference during restore from backup flow

* Fix card gradients and spacing

* Fix even more radiuses
Test new icons for navigation_dock.dart

* Update onboarding flow backgrounds
Fix swap icon clipping
Fix some text colors
Add more hero images

* Fix incorrect color for light theme

* Fix more hero images and cleanup

* Update text field icons
Fix info box CTA colors
Fix sync indicator colors

* Update toggle colors
Update dark theme colors (minor)
Update crypto_balance_widget.dart icon

* Update page transitions in router.dart
Fix some colors

* feat(themes): Display label by default for filled textfields

* feat(themes): Refactor theme handling across various components

This change:
- Fixes issue with themeMode resetting to system mode when app is restarted causing a UI glitch
- Updates theme checks from `currentTheme.type == ThemeType.dark` to `currentTheme.isDark` for consistency
- Adjusts UI components to use the theme directly from the themeStore

* feat(themes): Add animating tagline to the create pin welcome screen

* Revert text fields label temporarily, fix a couple colors, and cleanup some images

---------

Co-authored-by: OmarHatem <omarh.ismail1@gmail.com>
Co-authored-by: Blazebrain <davidadegoke16@gmail.com>
2025-05-25 23:11:45 +03:00
..
hardware_wallet Cw 660 add ledger monero (#1747) 2024-11-12 05:26:09 +02:00
action_list_display_mode.dart Flutter upgrade 2022-10-12 13:09:57 -04:00
auto_generate_subaddress_status.dart CW-228 Auto generate monero subaddress (#902) 2023-08-29 19:11:51 +03:00
balance_display_mode.dart Flutter upgrade 2022-10-12 13:09:57 -04:00
biometric_auth.dart CW 781 replace all print statements with printV (#1733) 2024-12-09 20:23:59 +02:00
bip_353_record.dart Improve bip 353 payment method selection modal (#2052) 2025-03-04 03:56:40 +02:00
cake_2fa_preset_options.dart fix: Implement totp on exchange to external ticket as well as update UI properly when a preset is selected (#1156) 2023-11-02 20:17:52 +02:00
calculate_fiat_amount.dart Generic Fixes: Support Errors and others (#1394) 2024-04-25 03:14:53 +02:00
calculate_fiat_amount_raw.dart Flutter upgrade 2022-10-12 13:09:57 -04:00
contact.dart Cw 514 add sort functionality for addressbook mywallets and contacts (#1309) 2024-11-07 03:26:14 +02:00
contact_base.dart Flutter upgrade 2022-10-12 13:09:57 -04:00
contact_model.dart Configure wallet types for the app 2021-12-24 14:41:34 +02:00
contact_record.dart Cw 514 add sort functionality for addressbook mywallets and contacts (#1309) 2024-11-07 03:26:14 +02:00
country.dart cake pay country picker (#1779) 2024-11-07 07:50:48 +02:00
default_settings_migration.dart Remove haven (#2085) 2025-03-21 04:52:05 +02:00
desktop_dropdown_item.dart Dashboard desktop view (#737) 2023-04-14 06:39:08 +02:00
emoji_string_extension.dart fix display of Yat alert when address is empty (#484) 2022-08-26 16:29:00 +01:00
encrypt.dart Secure storage overwrite fix (#1161) 2023-11-15 19:31:25 +02:00
ens_record.dart Zano with passphrase (#1971) 2025-01-24 20:33:24 +02:00
erc20_token_info_explorers.dart feat: Add warning before adding erc20 token via contract address (#1663) 2024-09-12 00:19:47 +03:00
erc20_token_info_moralis.dart feat: Add warning before adding erc20 token via contract address (#1663) 2024-09-12 00:19:47 +03:00
evm_transaction_error_fees_handler.dart Switch to SSL for Cake's Electrum and Monero nodes (#1899) 2024-12-25 21:27:46 +02:00
exchange_api_mode.dart Fix issues from code review 2023-03-01 23:44:15 +02:00
fiat_api_mode.dart [skip ci] Update localization 2022-12-07 14:04:14 +02:00
fiat_currency.dart v4.26.0 Release Candidate (#2191) 2025-04-12 03:23:41 +02:00
fio_address_provider.dart Flutter upgrade 2022-10-12 13:09:57 -04:00
format_amount.dart CAKE-160 | added to format_amount.dart case when amount contains ',' symbol 2020-11-09 18:09:04 +02:00
fs_migration.dart CW 781 replace all print statements with printV (#1733) 2024-12-09 20:23:59 +02:00
generate_name.dart prevent using same wallet name as existing (#391) 2022-06-29 18:21:21 +01:00
get_encryption_key.dart CW-599-Extract-Secure-Storage (#1353) 2024-05-08 23:23:27 +03:00
hash_wallet_identifier.dart CW-843: Enhance Wallet Groups Implementation (#2045) 2025-03-06 02:25:38 +02:00
haven_seed_store.dart CW-673: Save Haven seeds to show it to the user after Haven removal (#1518) 2024-12-11 22:31:01 +02:00
ios_legacy_helper.dart Flutter upgrade 2022-10-12 13:09:57 -04:00
language_service.dart Add Vietnamese Language (#1674) 2024-09-11 07:50:41 +03:00
list_order_mode.dart CW-512 wallet sort (#1195) 2023-12-13 23:58:43 +02:00
load_current_wallet.dart Implement background sync for xmr using flutter_daemon (#2094) 2025-03-21 19:22:00 +02:00
main_actions.dart New themes (#2239) 2025-05-25 23:11:45 +03:00
mnemonic_item.dart Flutter upgrade 2022-10-12 13:09:57 -04:00
node_list.dart Add decred (#1938) 2025-03-21 04:18:47 +02:00
openalias_record.dart CW 781 replace all print statements with printV (#1733) 2024-12-09 20:23:59 +02:00
parse_address_from_domain.dart Add unstoppable domains 2025-02-28 19:55:22 +02:00
parsed_address.dart Implement BIP 353 username resolution (#2017) 2025-02-17 23:05:44 +02:00
pin_code_required_duration.dart Generic enhancements (#1668) 2024-09-23 17:10:40 +03:00
preferences_key.dart New themes (#2239) 2025-05-25 23:11:45 +03:00
priority_for_wallet_type.dart Remove haven (#2085) 2025-03-21 04:52:05 +02:00
provider_types.dart Remove old cake wallet logo (#2161) 2025-04-07 18:14:35 +02:00
qr_scanner.dart New themes (#2239) 2025-05-25 23:11:45 +03:00
qr_view_data.dart CW-240 Receive fiat currency amount and receive animations (#877) 2023-04-21 20:03:42 +02:00
record.dart Flutter upgrade 2022-10-12 13:09:57 -04:00
secret_store_key.dart CW-599-Extract-Secure-Storage (#1353) 2024-05-08 23:23:27 +03:00
seed_phrase_length.dart Remove haven (#2085) 2025-03-21 04:52:05 +02:00
seed_type.dart v4.28.0 Release Candidate (#2260) 2025-05-16 13:51:36 +03:00
service_status.dart Generic fixes (#1320) 2024-03-10 04:02:30 +02:00
solana_nft_asset_model.dart feat: Enable NFTs for Solana wallet (#2082) 2025-03-14 18:30:19 +02:00
sort_balance_types.dart Cw 78 ethereum (#862) 2023-08-04 20:01:49 +03:00
template.dart Re add chatwoot (#1044) 2023-08-15 03:47:25 +03:00
transaction_creation_credentials.dart Part 1 2020-09-21 14:50:26 +03:00
transaction_description.dart Cw 769 fix transaction notes not showing (#1718) 2024-10-05 00:50:36 +03:00
transaction_history.dart Flutter upgrade 2022-10-12 13:09:57 -04:00
unstoppable_domain_address.dart CW 781 replace all print statements with printV (#1733) 2024-12-09 20:23:59 +02:00
wallet_contact.dart Flutter upgrade 2022-10-12 13:09:57 -04:00
wallet_description.dart Flutter upgrade 2022-10-12 13:09:57 -04:00
wallet_edit_page_arguments.dart CW-843: Enhance Wallet Groups Implementation (#2045) 2025-03-06 02:25:38 +02:00
wallet_group.dart CW-843: Enhance Wallet Groups Implementation (#2045) 2025-03-06 02:25:38 +02:00
wallet_list_order_types.dart Cw 514 add sort functionality for addressbook mywallets and contacts (#1309) 2024-11-07 03:26:14 +02:00
wallet_manager.dart fix: wallet grouping eating wallets (#2203) 2025-04-14 18:47:31 +02:00
wallet_nft_response.dart feat: Implement NFT Tab for Eth (#1166) 2023-11-22 19:43:26 +02:00
wellknown_record.dart Update wellknown_record.dart [skip ci] 2025-01-16 00:21:54 +02:00
yat_record.dart Flutter upgrade 2022-10-12 13:09:57 -04:00
zano_alias.dart v4.23.0 release candidate (#1974) 2025-01-28 23:53:43 +02:00