2023-07-05 18:10:45 +00:00
|
|
|
import 'package:cake_wallet/themes/extensions/account_list_theme.dart';
|
2023-07-03 18:48:27 +00:00
|
|
|
import 'package:cake_wallet/themes/extensions/address_theme.dart';
|
2023-07-05 11:45:38 +00:00
|
|
|
import 'package:cake_wallet/themes/extensions/alert_theme.dart';
|
2023-07-03 18:36:17 +00:00
|
|
|
import 'package:cake_wallet/themes/extensions/balance_page_theme.dart';
|
2023-07-03 12:43:33 +00:00
|
|
|
import 'package:cake_wallet/themes/extensions/cake_scrollbar_theme.dart';
|
2023-07-05 12:54:53 +00:00
|
|
|
import 'package:cake_wallet/themes/extensions/cake_text_theme.dart';
|
2023-07-03 19:21:11 +00:00
|
|
|
import 'package:cake_wallet/themes/extensions/dashboard_page_theme.dart';
|
2023-07-03 17:56:29 +00:00
|
|
|
import 'package:cake_wallet/themes/extensions/exchange_page_theme.dart';
|
2023-07-03 20:37:38 +00:00
|
|
|
import 'package:cake_wallet/themes/extensions/filter_theme.dart';
|
2023-07-03 19:21:11 +00:00
|
|
|
import 'package:cake_wallet/themes/extensions/indicator_dot_theme.dart';
|
2023-07-05 11:35:26 +00:00
|
|
|
import 'package:cake_wallet/themes/extensions/info_theme.dart';
|
2023-07-03 16:29:44 +00:00
|
|
|
import 'package:cake_wallet/themes/extensions/keyboard_theme.dart';
|
2023-07-03 19:39:48 +00:00
|
|
|
import 'package:cake_wallet/themes/extensions/menu_theme.dart';
|
2023-07-03 18:26:44 +00:00
|
|
|
import 'package:cake_wallet/themes/extensions/new_wallet_theme.dart';
|
2023-07-05 11:54:18 +00:00
|
|
|
import 'package:cake_wallet/themes/extensions/order_theme.dart';
|
2023-07-05 11:41:16 +00:00
|
|
|
import 'package:cake_wallet/themes/extensions/picker_theme.dart';
|
2023-07-03 16:38:39 +00:00
|
|
|
import 'package:cake_wallet/themes/extensions/pin_code_theme.dart';
|
2023-07-05 12:29:32 +00:00
|
|
|
import 'package:cake_wallet/themes/extensions/placeholder_theme.dart';
|
2023-07-05 18:10:45 +00:00
|
|
|
import 'package:cake_wallet/themes/extensions/qr_code_theme.dart';
|
|
|
|
import 'package:cake_wallet/themes/extensions/receive_page_theme.dart';
|
2023-07-05 12:23:29 +00:00
|
|
|
import 'package:cake_wallet/themes/extensions/seed_widget_theme.dart';
|
2023-07-05 12:10:36 +00:00
|
|
|
import 'package:cake_wallet/themes/extensions/send_page_theme.dart';
|
2023-07-03 16:58:02 +00:00
|
|
|
import 'package:cake_wallet/themes/extensions/support_page_theme.dart';
|
2023-07-03 12:48:09 +00:00
|
|
|
import 'package:cake_wallet/themes/extensions/sync_indicator_theme.dart';
|
2023-07-05 12:38:00 +00:00
|
|
|
import 'package:cake_wallet/themes/extensions/transaction_trade_theme.dart';
|
2023-07-03 20:40:58 +00:00
|
|
|
import 'package:cake_wallet/themes/extensions/wallet_list_theme.dart';
|
2020-12-15 19:43:50 +00:00
|
|
|
import 'package:cake_wallet/themes/theme_base.dart';
|
2020-12-15 19:30:16 +00:00
|
|
|
import 'package:cake_wallet/generated/i18n.dart';
|
|
|
|
import 'package:cake_wallet/palette.dart';
|
|
|
|
import 'package:flutter/material.dart';
|
|
|
|
|
|
|
|
class LightTheme extends ThemeBase {
|
2022-10-12 17:09:57 +00:00
|
|
|
LightTheme({required int raw}) : super(raw: raw);
|
2020-12-15 19:30:16 +00:00
|
|
|
|
|
|
|
@override
|
|
|
|
String get title => S.current.light_theme;
|
|
|
|
@override
|
|
|
|
ThemeType get type => ThemeType.light;
|
2023-06-30 16:55:22 +00:00
|
|
|
@override
|
|
|
|
Brightness get brightness => Brightness.light;
|
|
|
|
@override
|
|
|
|
Color get backgroundColor => Colors.white;
|
|
|
|
@override
|
|
|
|
Color get primaryColor => Palette.protectiveBlue;
|
|
|
|
@override
|
|
|
|
Color get primaryTextColor => Palette.darkBlueCraiola;
|
|
|
|
@override
|
|
|
|
Color get containerColor => Palette.blueAlice;
|
2023-07-03 12:37:29 +00:00
|
|
|
@override
|
|
|
|
Color get dialogBackgroundColor => Colors.white;
|
2020-12-15 19:30:16 +00:00
|
|
|
|
2023-07-03 12:43:33 +00:00
|
|
|
@override
|
|
|
|
CakeScrollbarTheme get scrollbarTheme => CakeScrollbarTheme(
|
|
|
|
thumbColor: Palette.moderatePurpleBlue,
|
|
|
|
trackColor: Palette.periwinkleCraiola);
|
|
|
|
|
2023-07-03 12:48:09 +00:00
|
|
|
@override
|
|
|
|
SyncIndicatorTheme get syncIndicatorStyle => SyncIndicatorTheme(
|
|
|
|
textColor: Palette.darkBlueCraiola,
|
|
|
|
syncedBackgroundColor: Palette.blueAlice,
|
|
|
|
notSyncedIconColor: Palette.shineOrange,
|
|
|
|
notSyncedBackgroundColor: Palette.blueAlice.withOpacity(0.75));
|
|
|
|
|
2023-07-03 16:29:44 +00:00
|
|
|
@override
|
|
|
|
KeyboardTheme get keyboardTheme =>
|
|
|
|
KeyboardTheme(keyboardBarColor: Palette.dullGray);
|
|
|
|
|
2023-07-03 16:38:39 +00:00
|
|
|
@override
|
|
|
|
PinCodeTheme get pinCodeTheme => PinCodeTheme(
|
2023-07-05 18:10:45 +00:00
|
|
|
indicatorsColor: Palette.darkGray, switchColor: Palette.darkGray);
|
2023-07-03 16:38:39 +00:00
|
|
|
|
2023-07-03 16:58:02 +00:00
|
|
|
@override
|
|
|
|
SupportPageTheme get supportPageTheme =>
|
|
|
|
SupportPageTheme(iconColor: Colors.black);
|
|
|
|
|
2023-07-03 17:56:29 +00:00
|
|
|
@override
|
|
|
|
ExchangePageTheme get exchangePageTheme => ExchangePageTheme(
|
|
|
|
hintTextColor: Colors.white.withOpacity(0.4),
|
|
|
|
dividerCodeColor: Palette.wildPeriwinkle,
|
|
|
|
qrCodeColor: primaryTextColor,
|
|
|
|
buttonBackgroundColor: containerColor,
|
|
|
|
textFieldButtonColor: Colors.white.withOpacity(0.2),
|
|
|
|
textFieldBorderBottomPanelColor: Colors.white.withOpacity(0.5),
|
|
|
|
textFieldBorderTopPanelColor: Colors.white.withOpacity(0.5),
|
|
|
|
secondGradientBottomPanelColor: Palette.blueGreyCraiola.withOpacity(0.7),
|
|
|
|
firstGradientBottomPanelColor: Palette.blueCraiola.withOpacity(0.7),
|
|
|
|
secondGradientTopPanelColor: Palette.blueGreyCraiola,
|
|
|
|
firstGradientTopPanelColor: Palette.blueCraiola,
|
|
|
|
receiveAmountColor: Palette.niagara);
|
|
|
|
|
2023-07-03 18:26:44 +00:00
|
|
|
@override
|
|
|
|
NewWalletTheme get newWalletTheme => NewWalletTheme(
|
|
|
|
hintTextColor: Palette.darkGray,
|
|
|
|
underlineColor: Palette.periwinkleCraiola);
|
|
|
|
|
2023-07-03 18:48:27 +00:00
|
|
|
@override
|
|
|
|
AddressTheme get addressTheme =>
|
|
|
|
AddressTheme(actionButtonColor: Palette.shadowWhite);
|
|
|
|
|
2023-07-03 19:21:11 +00:00
|
|
|
@override
|
|
|
|
DashboardPageTheme get dashboardPageTheme =>
|
|
|
|
super.dashboardPageTheme.copyWith(
|
2023-07-12 18:10:09 +00:00
|
|
|
cardTextColor: super.dashboardPageTheme.textColor,
|
2023-07-03 19:21:11 +00:00
|
|
|
indicatorDotTheme: IndicatorDotTheme(
|
|
|
|
indicatorColor: PaletteDark.darkCyanBlue.withOpacity(0.67),
|
|
|
|
activeIndicatorColor: PaletteDark.darkNightBlue));
|
|
|
|
|
2023-07-07 15:41:00 +00:00
|
|
|
@override
|
|
|
|
BalancePageTheme get balancePageTheme => BalancePageTheme(
|
|
|
|
textColor: dashboardPageTheme.textColor,
|
|
|
|
labelTextColor: Palette.darkBlueCraiola.withOpacity(0.67));
|
|
|
|
|
2023-07-03 19:39:48 +00:00
|
|
|
@override
|
|
|
|
CakeMenuTheme get menuTheme => CakeMenuTheme(
|
|
|
|
headerFirstGradientColor: Palette.blueCraiola,
|
|
|
|
headerSecondGradientColor: Palette.blueGreyCraiola,
|
|
|
|
backgroundColor: Colors.white,
|
|
|
|
subnameTextColor: Colors.white,
|
|
|
|
dividerColor: Palette.wildLavender,
|
2023-07-07 15:41:00 +00:00
|
|
|
iconColor: Colors.white,
|
2023-07-12 18:10:09 +00:00
|
|
|
settingTitleColor: receivePageTheme.tilesTextColor,
|
2023-07-07 15:41:00 +00:00
|
|
|
settingActionsIconColor: Palette.gray);
|
2023-07-03 19:39:48 +00:00
|
|
|
|
2023-07-03 20:37:38 +00:00
|
|
|
@override
|
|
|
|
FilterTheme get filterTheme => FilterTheme(
|
2023-07-07 15:41:00 +00:00
|
|
|
checkboxFirstGradientColor: Palette.blueCraiola,
|
|
|
|
checkboxSecondGradientColor: Palette.blueGreyCraiola,
|
2023-07-03 20:37:38 +00:00
|
|
|
checkboxBoundsColor: Palette.wildPeriwinkle,
|
|
|
|
checkboxBackgroundColor: Colors.white,
|
|
|
|
titlesColor: Palette.darkGray,
|
|
|
|
buttonColor: Palette.blueAlice,
|
|
|
|
iconColor: PaletteDark.wildBlue);
|
|
|
|
|
2023-07-03 20:40:58 +00:00
|
|
|
@override
|
|
|
|
WalletListTheme get walletListTheme => WalletListTheme(
|
|
|
|
restoreWalletButtonTextColor: Colors.white,
|
|
|
|
createNewWalletButtonBackgroundColor: Palette.protectiveBlue);
|
|
|
|
|
2023-07-05 11:35:26 +00:00
|
|
|
@override
|
|
|
|
InfoTheme get infoTheme => InfoTheme(textColor: Palette.darkBlueCraiola);
|
|
|
|
|
2023-07-05 11:41:16 +00:00
|
|
|
@override
|
2023-07-12 18:10:09 +00:00
|
|
|
PickerTheme get pickerTheme => PickerTheme(
|
|
|
|
dividerColor: Palette.periwinkleCraiola,
|
|
|
|
searchTextColor: cakeTextTheme.textfieldUnderlineColor,
|
|
|
|
searchBackgroundFillColor: addressTheme.actionButtonColor);
|
2023-07-05 11:41:16 +00:00
|
|
|
|
2023-07-05 11:45:38 +00:00
|
|
|
@override
|
2023-07-07 20:25:22 +00:00
|
|
|
AlertTheme get alertTheme => AlertTheme(
|
|
|
|
backdropColor: PaletteDark.darkNightBlue.withOpacity(0.75),
|
|
|
|
leftButtonTextColor: Palette.brightOrange);
|
2023-07-05 11:45:38 +00:00
|
|
|
|
2023-07-05 11:54:18 +00:00
|
|
|
@override
|
|
|
|
OrderTheme get orderTheme => OrderTheme(iconColor: Colors.black);
|
|
|
|
|
2023-07-05 12:10:36 +00:00
|
|
|
@override
|
|
|
|
SendPageTheme get sendPageTheme => SendPageTheme(
|
|
|
|
templateTitleColor: Palette.darkBlueCraiola,
|
|
|
|
templateBackgroundColor: Palette.blueAlice,
|
|
|
|
templateNewTextColor: Palette.darkBlueCraiola,
|
|
|
|
templateDottedBorderColor: Palette.moderateLavender,
|
2023-07-11 19:56:29 +00:00
|
|
|
templateSelectedCurrencyBackgroundColor: Colors.white,
|
|
|
|
templateSelectedCurrencyTitleColor: primaryColor,
|
2023-07-05 12:10:36 +00:00
|
|
|
estimatedFeeColor: Colors.white.withOpacity(0.5),
|
|
|
|
textFieldButtonIconColor: Colors.white,
|
|
|
|
textFieldButtonColor: Colors.white.withOpacity(0.2),
|
|
|
|
textFieldHintColor: Colors.white.withOpacity(0.5),
|
|
|
|
textFieldBorderColor: Colors.white.withOpacity(0.5),
|
|
|
|
secondGradientColor: Palette.blueGreyCraiola,
|
2023-07-05 18:10:45 +00:00
|
|
|
firstGradientColor: Palette.blueCraiola,
|
|
|
|
indicatorDotColor: PaletteDark.darkCyanBlue.withOpacity(0.67));
|
2023-07-05 12:10:36 +00:00
|
|
|
|
2023-07-05 12:23:29 +00:00
|
|
|
@override
|
|
|
|
SeedWidgetTheme get seedWidgetTheme =>
|
|
|
|
SeedWidgetTheme(hintTextColor: Palette.darkGray);
|
|
|
|
|
2023-07-05 12:29:32 +00:00
|
|
|
@override
|
|
|
|
PlaceholderTheme get placeholderTheme =>
|
|
|
|
PlaceholderTheme(color: PaletteDark.darkCyanBlue);
|
|
|
|
|
2023-07-05 12:38:00 +00:00
|
|
|
@override
|
|
|
|
TransactionTradeTheme get transactionTradeTheme => TransactionTradeTheme(
|
2023-07-05 18:10:45 +00:00
|
|
|
detailsTitlesColor: Palette.darkGray, rowsColor: Palette.blueAlice);
|
2023-07-05 12:38:00 +00:00
|
|
|
|
2023-07-05 12:54:53 +00:00
|
|
|
@override
|
|
|
|
CakeTextTheme get cakeTextTheme => CakeTextTheme(
|
|
|
|
secondaryTextColor: PaletteDark.pigeonBlue,
|
|
|
|
textfieldUnderlineColor: Palette.wildPeriwinkle,
|
2023-07-05 18:10:45 +00:00
|
|
|
titleColor: Palette.violetBlue,
|
|
|
|
addressButtonBorderColor: Palette.blueAlice,
|
|
|
|
dateSectionRowColor: PaletteDark.darkCyanBlue);
|
2023-07-05 17:31:31 +00:00
|
|
|
|
|
|
|
@override
|
|
|
|
AccountListTheme get accountListTheme => AccountListTheme(
|
2023-07-12 18:10:09 +00:00
|
|
|
currentAccountBackgroundColor: dialogBackgroundColor,
|
|
|
|
currentAccountTextColor: primaryColor,
|
|
|
|
currentAccountAmountColor: receivePageTheme.iconsColor,
|
|
|
|
tilesBackgroundColor: Colors.white,
|
|
|
|
tilesAmountColor: receivePageTheme.iconsColor,
|
|
|
|
tilesTextColor: Palette.violetBlue);
|
2023-07-05 12:54:53 +00:00
|
|
|
|
2023-07-05 17:49:47 +00:00
|
|
|
@override
|
|
|
|
ReceivePageTheme get receivePageTheme => ReceivePageTheme(
|
|
|
|
currentTileBackgroundColor: Palette.blueCraiola,
|
|
|
|
currentTileTextColor: Colors.white,
|
|
|
|
tilesBackgroundColor: Palette.blueAlice,
|
|
|
|
tilesTextColor: Palette.darkBlueCraiola,
|
|
|
|
iconsBackgroundColor: Palette.moderateLavender,
|
|
|
|
iconsColor: PaletteDark.lightBlueGrey,
|
|
|
|
amountBottomBorderColor: Palette.darkBlueCraiola,
|
|
|
|
amountHintTextColor: Palette.darkBlueCraiola);
|
|
|
|
|
2023-07-05 17:59:14 +00:00
|
|
|
@override
|
|
|
|
QRCodeTheme get qrCodeTheme => QRCodeTheme(
|
|
|
|
qrCodeColor: Colors.white,
|
|
|
|
qrWidgetCopyButtonColor: PaletteDark.lightBlueGrey);
|
|
|
|
|
2023-06-30 16:55:22 +00:00
|
|
|
@override
|
|
|
|
ThemeData get themeData => super.themeData.copyWith(
|
2020-12-15 19:30:16 +00:00
|
|
|
dividerColor: Palette.paleBlue,
|
|
|
|
hintColor: Palette.gray,
|
2023-07-03 17:01:54 +00:00
|
|
|
disabledColor: Palette.darkGray,
|
2023-07-05 18:10:45 +00:00
|
|
|
dialogTheme:
|
|
|
|
super.themeData.dialogTheme.copyWith(backgroundColor: Colors.white));
|
2023-05-24 23:19:51 +00:00
|
|
|
}
|