CakeWallet/lib/view_model
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
..
buy New themes (#2239) 2025-05-25 23:11:45 +03:00
cake_pay Confirmation checkboxes (#1877) 2024-12-14 02:21:04 +02:00
contact_list fix: allow address only edits (#2233) 2025-05-01 18:23:56 +03:00
dashboard New themes (#2239) 2025-05-25 23:11:45 +03:00
dev feat(dev): add secrets dev screen (used to recover corrupted wallet) (#2234) 2025-04-30 09:29:08 +03:00
exchange Disable SimpleSwap from the Swap flow (#2148) 2025-04-01 20:04:43 +02:00
hardware_wallet V4.26.0 rc (#2198) 2025-04-15 02:50:07 +02:00
monero_account_list fix: hide balance for monero accounts (#2256) 2025-05-08 23:47:34 +03:00
nano_account_list CW-438 add nano (#1015) 2023-10-05 04:09:07 +03:00
node_list v4.24.0 (#2102) 2025-03-25 03:49:54 +02:00
restore Add decred (#1938) 2025-03-21 04:18:47 +02:00
send fix(cw_monero): transaction not appearing after send (#2268) 2025-05-15 19:48:43 +03:00
settings New themes (#2239) 2025-05-25 23:11:45 +03:00
unspent_coins fix: incorrect balance in send card (#2158) 2025-04-04 12:56:07 +02:00
wallet_address_list CW-1076-payjoin-ux-enhancements (#2282) 2025-05-24 04:24:06 +03:00
wallet_list Update button text 2025-05-17 03:30:49 +03:00
advanced_privacy_settings_view_model.dart Add decred (#1938) 2025-03-21 04:18:47 +02:00
animated_ur_model.dart WIP: CW-665 Implement AirGapped Monero Transactions (#1535) 2024-11-09 20:59:47 +02:00
anon_invoice_page_view_model.dart V4.26.0 rc (#2198) 2025-04-15 02:50:07 +02:00
anonpay_details_view_model.dart New themes (#2239) 2025-05-25 23:11:45 +03:00
auth_state.dart Flutter upgrade 2022-10-12 13:09:57 -04:00
auth_view_model.dart bio auth on mac + package updates for 3.19.3/5 (#1398) 2024-05-06 22:55:05 +03:00
backup_view_model.dart CW-875 BackupServiceV3 (#2064) 2025-03-22 03:16:54 +02:00
edit_backup_password_view_model.dart CW-599-Extract-Secure-Storage (#1353) 2024-05-08 23:23:27 +03:00
link_view_model.dart Gracefully handle toast messages error on desktop platforms 2025-04-28 15:12:42 +03:00
new_wallet_type_view_model.dart CW-580: BIP39 Wallets Shared Seed Implementation: "One Seed - Multiple Wallets" (#1307) 2024-09-20 21:25:08 +03:00
order_details_view_model.dart CW 781 replace all print statements with printV (#1733) 2024-12-09 20:23:59 +02:00
payjoin_details_view_model.dart New themes (#2239) 2025-05-25 23:11:45 +03:00
rescan_view_model.dart litecoin mweb support (#1455) 2024-09-28 05:22:25 +03:00
restore_from_backup_view_model.dart New themes (#2239) 2025-05-25 23:11:45 +03:00
seed_settings_view_model.dart CW-580: BIP39 Wallets Shared Seed Implementation: "One Seed - Multiple Wallets" (#1307) 2024-09-20 21:25:08 +03:00
set_up_2fa_viewmodel.dart CW-566-Cake2FA-Bypass-Bug (#1275) 2024-01-27 05:08:53 +02:00
setup_pin_code_view_model.dart Part 1 2020-09-21 14:50:26 +03:00
support_view_model.dart feat: Add fiat api and last used wallet type to support chat (#2078) 2025-03-11 15:27:50 +02:00
trade_details_view_model.dart New themes (#2239) 2025-05-25 23:11:45 +03:00
transaction_details_view_model.dart Add decred (#1938) 2025-03-21 04:18:47 +02:00
wallet_creation_vm.dart Implement background sync for xmr using flutter_daemon (#2094) 2025-03-21 19:22:00 +02:00
wallet_groups_display_view_model.dart CW-723-Add-Monero-support-to-the-Shared-Seed-feature-in-Cake (#2131) 2025-04-10 03:31:26 +02:00
wallet_hardware_restore_view_model.dart CW 781 replace all print statements with printV (#1733) 2024-12-09 20:23:59 +02:00
wallet_keys_view_model.dart CW-723-Add-Monero-support-to-the-Shared-Seed-feature-in-Cake (#2131) 2025-04-10 03:31:26 +02:00
wallet_new_vm.dart Remove words length from pre-seed warning (#2208) 2025-04-16 03:37:34 +02:00
wallet_restore_choose_derivation_view_model.dart CW-438 add nano (#1015) 2023-10-05 04:09:07 +03:00
wallet_restore_view_model.dart CW 818: Improve Passphrase Discoverability When Restoring (#2224) 2025-05-02 02:56:06 +03:00
wallet_seed_view_model.dart Fix electrum unspent coins error (#1912) 2024-12-29 23:48:53 +02:00
wallet_unlock_loadable_view_model.dart CW-676 Add Linux scripts to build monero_c for linux platform (#1527) 2024-08-13 01:18:14 +03:00
wallet_unlock_verifiable_view_model.dart CW-676 Add Linux scripts to build monero_c for linux platform (#1527) 2024-08-13 01:18:14 +03:00
wallet_unlock_view_model.dart CW-676 Add Linux scripts to build monero_c for linux platform (#1527) 2024-08-13 01:18:14 +03:00