mirror of
https://github.com/Such-Software/hash-wallet.git
synced 2026-10-17 05:41:29 +02:00
Send-success art: replace the Cake birthday cake with a Hash Bags money sack that has a # on it and erupts #/$/₿ (assets/images/hash_bag.png). Used by the success page, send-confirm sheet, exchange-trade, and dEURO savings. Asset renames (files + refs): - birthday_cake.png -> hash_bag.png - restore_cupcake(.png/_dark) -> restore_hashbag.png - qr-cake.png -> qr-hashbag.png - arrow_bottom_cake_green.png -> arrow_bottom_green.png (+ 2.0x/3.0x) Identifier renames: - CakeImageWidget -> HashImageWidget (widget + file + 93 refs) - typography _cakeRegular/_cakeBold/_cakeSemiBold -> _hash* Transaction filter: drop the Cake Pay "Orders" row and every non-Trocador trade provider; the swap gate is already Trocador-only, so this just aligns the filter UI with reality. Android launcher: add breathing room to the adaptive-foreground # (all densities, monochrome included); iOS icon unchanged. About page: swap the Cake easter eggs for Hash Bags ones. Deferred (needs a build to verify): new-ui .svg.vec filename renames (cake_squircle_icon, cakewallet-wordmark, cake-setting) — already Hash Bags in content, only the filenames are cake, and they route through the .vec precompile.
64 lines
1.8 KiB
Dart
64 lines
1.8 KiB
Dart
import 'package:hash_wallet/utils/feature_flag.dart';
|
|
import 'package:flutter/material.dart';
|
|
|
|
const latoFont = "Lato";
|
|
const wixFont = "Wix Madefor Text";
|
|
|
|
TextStyle textXxSmall({Color? color}) => _hashRegular(10, color);
|
|
|
|
TextStyle textXxSmallSemiBold({Color? color}) => _hashSemiBold(10, color);
|
|
|
|
TextStyle textXSmall({Color? color}) => _hashRegular(12, color);
|
|
|
|
TextStyle textXSmallSemiBold({Color? color}) => _hashSemiBold(12, color);
|
|
|
|
TextStyle textSmall({Color? color}) => _hashRegular(14, color);
|
|
|
|
TextStyle textSmallSemiBold({Color? color}) => _hashSemiBold(14, color);
|
|
|
|
TextStyle textMedium({Color? color}) => _hashRegular(16, color);
|
|
|
|
TextStyle textMediumBold({Color? color}) => _hashBold(16, color);
|
|
|
|
TextStyle textMediumSemiBold({Color? color}) => _hashSemiBold(22, color);
|
|
|
|
TextStyle textLarge({Color? color}) => _hashRegular(18, color);
|
|
|
|
TextStyle textLargeBold({Color? color}) => _hashBold(18, color);
|
|
|
|
TextStyle textLargeSemiBold({Color? color}) => _hashSemiBold(24, color);
|
|
|
|
TextStyle textXLarge({Color? color}) => _hashRegular(32, color);
|
|
|
|
TextStyle textXLargeSemiBold({Color? color}) => _hashSemiBold(32, color);
|
|
|
|
TextStyle _hashRegular(double size, Color? color) => _textStyle(
|
|
size: size,
|
|
fontWeight: FontWeight.normal,
|
|
color: color,
|
|
);
|
|
|
|
TextStyle _hashBold(double size, Color? color) => _textStyle(
|
|
size: size,
|
|
fontWeight: FontWeight.w900,
|
|
color: color,
|
|
);
|
|
|
|
TextStyle _hashSemiBold(double size, Color? color) => _textStyle(
|
|
size: size,
|
|
fontWeight: FontWeight.w700,
|
|
color: color,
|
|
);
|
|
|
|
TextStyle _textStyle({
|
|
required double size,
|
|
required FontWeight fontWeight,
|
|
Color? color,
|
|
}) =>
|
|
TextStyle(
|
|
fontFamily: FeatureFlag.hasNewUi ? wixFont : latoFont,
|
|
fontSize: size,
|
|
fontWeight: fontWeight,
|
|
color: color ?? Colors.white,
|
|
);
|