mirror of
https://github.com/Such-Software/hash-wallet.git
synced 2026-10-26 06:08:40 +01:00
feat Add gradient-only card design and icon style picker (#3054)
* feat Add gradient-only card design and icon style picker * refactor: Migrate card icon style to index-based storage * feat: Add new card icons/styles for icon panel * feat: add generic cake card icon * Update coin icons and add opacity * Remove vector icon files * Remove vector icon files * add xmr-og.webp * feat: add animated switcher to icon style panel * Enhance icson style preview fix special gradient bug on plain style card * Fix card styles ignoring special gradient text color combination * Improve icon mgmt for card design handling, other fixes also based on review too * fix: Add bounds check to icon style index * fix: monero classic icon not displaying --------- Co-authored-by: tuxsudo <tuxsudo@tux.pizza>
This commit is contained in:
@@ -52,10 +52,10 @@ abstract class MoneroAccountEditOrCreateViewModelBase with Store {
|
||||
final gradients = await _getUsableCardGradients();
|
||||
|
||||
await BalanceCardStyleSettings.fromCardDesign(
|
||||
_wallet.walletInfo.internalId,
|
||||
_moneroAccountList.accounts.length,
|
||||
_moneroAccountList.accounts.length,
|
||||
CardDesign.specialDesignsForCurrencies[_wallet.currency]!
|
||||
walletInfoId: _wallet.walletInfo.internalId,
|
||||
accountIndex: _moneroAccountList.accounts.length,
|
||||
cardOrder: _moneroAccountList.accounts.length,
|
||||
design: CardDesign.specialDesignsForCurrencies[_wallet.currency]!
|
||||
.withGradient(gradients[Random().nextInt(gradients.length)]))
|
||||
.insert();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user