CakeWallet/lib/core
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
..
open_crypto_pay fix: fix amount mapping for OCP (#2190) 2025-04-11 16:23:32 +02:00
address_label_validator.dart Flutter upgrade 2022-10-12 13:09:57 -04:00
address_validator.dart Add decred (#1938) 2025-03-21 04:18:47 +02:00
amount.dart Flutter upgrade 2022-10-12 13:09:57 -04:00
amount_validator.dart Zano with passphrase (#1971) 2025-01-24 20:33:24 +02:00
auth_service.dart CW 781 replace all print statements with printV (#1733) 2024-12-09 20:23:59 +02:00
auth_state.dart Flutter upgrade 2022-10-12 13:09:57 -04:00
background_sync.dart CW-1000 Background sync improvements (#2142) 2025-04-24 19:06:43 +02:00
backup_service.dart New themes (#2239) 2025-05-25 23:11:45 +03:00
backup_service_v3.dart Better handle backup errors (#2132) 2025-03-28 16:17:38 +02:00
contact_name_validator.dart General changes. CAKE-1. 2020-07-06 23:09:03 +03:00
create_trade_result.dart CW-615-Add-Check-For-Contract-Address (#1387) 2024-04-25 03:14:11 +02:00
email_validator.dart Ionia (#437) 2022-07-28 18:03:16 +01:00
execution_state.dart Cw 921 create new bottom sheet sending confirmation UI (#2099) 2025-03-21 05:24:22 +02:00
fiat_conversion_service.dart CW-527-Add-Polygon-MATIC-Wallet (#1179) 2023-12-02 04:26:43 +02:00
generate_wallet_password.dart Flutter update (#1048) 2023-08-18 18:37:17 +03:00
key_service.dart CW-599-Extract-Secure-Storage (#1353) 2024-05-08 23:23:27 +03:00
mnemonic_length.dart Fix typos (#276) 2022-03-09 14:43:18 +03:00
monero_account_label_validator.dart Remove haven (#2085) 2025-03-21 04:52:05 +02:00
new_wallet_arguments.dart CW-843: Enhance Wallet Groups Implementation (#2045) 2025-03-06 02:25:38 +02:00
new_wallet_type_arguments.dart CW-580: BIP39 Wallets Shared Seed Implementation: "One Seed - Multiple Wallets" (#1307) 2024-09-20 21:25:08 +03:00
node_address_validator.dart chore: fix some typos in comment (#2258) 2025-05-11 18:38:00 +03:00
node_port_validator.dart Reworked electrum wallet. Added Litecoin wallet. 2021-05-07 10:36:38 +03:00
seed_validator.dart Remove haven (#2085) 2025-03-21 04:52:05 +02:00
selectable_option.dart Cw 657 new buy sell flow (#1553) 2024-11-09 21:00:56 +02:00
socks_proxy_node_address_validator.dart CW-224-Allow-Monero-proxy-in-node-settings (#966) 2023-08-02 14:48:52 +03:00
sync_status_title.dart Add decred (#1938) 2025-03-21 04:18:47 +02:00
template_validator.dart CAKE-20 | updated send and send template pages; added send_template_store and exchange_template_store; created base_send_widget; applied send_template_store to send_view_model; applied base_send_widget to send and send template pages; added properties to address_text_field, base_text_field and template_tile 2020-07-29 19:55:42 +03:00
totp_request_details.dart Cw-263-TOTP-2FA-In-Security-Settings (#892) 2023-05-17 17:43:23 +03:00
utilities.dart V4.26.0 rc (#2198) 2025-04-15 02:50:07 +02:00
validator.dart CW-254-proper-bitcoin-address-validation-in-exchange-screen (#900) 2023-05-15 15:39:00 +03:00
wallet_change_listener_view_model.dart Fiat api fix (#1070) 2023-09-01 18:06:18 +03:00
wallet_creation_service.dart Add decred (#1938) 2025-03-21 04:18:47 +02:00
wallet_creation_state.dart Flutter upgrade 2022-10-12 13:09:57 -04:00
wallet_loading_service.dart fix(cw_monero): prevent monero wallet from breaking during rename (#2214) 2025-05-02 15:30:39 +03:00
wallet_name_validator.dart prevent using same wallet name as existing (#391) 2022-06-29 18:21:21 +01:00
yat_service.dart Select sub address or standard address instead of both. (#346) 2022-05-16 19:51:32 +01:00