2023-07-03 18:36:17 +00:00
|
|
|
import 'package:cake_wallet/themes/extensions/balance_page_theme.dart';
|
2023-07-03 18:15:58 +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 19:21:11 +00:00
|
|
|
import 'package:cake_wallet/themes/extensions/indicator_dot_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-03 12:48:09 +00:00
|
|
|
import 'package:cake_wallet/themes/extensions/sync_indicator_theme.dart';
|
2023-06-30 16:55:22 +00:00
|
|
|
import 'package:cake_wallet/themes/light_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';
|
|
|
|
|
2023-06-30 16:55:22 +00:00
|
|
|
class BrightTheme extends LightTheme {
|
2022-10-12 17:09:57 +00:00
|
|
|
BrightTheme({required int raw}) : super(raw: raw);
|
2020-12-15 19:30:16 +00:00
|
|
|
|
|
|
|
@override
|
|
|
|
String get title => S.current.bright_theme;
|
|
|
|
@override
|
|
|
|
ThemeType get type => ThemeType.bright;
|
2023-06-30 16:55:22 +00:00
|
|
|
@override
|
|
|
|
Color get primaryColor => Palette.moderateSlateBlue;
|
|
|
|
@override
|
|
|
|
Color get containerColor => Palette.moderateLavender;
|
2020-12-15 19:30:16 +00:00
|
|
|
|
2023-07-03 12:26:43 +00:00
|
|
|
@override
|
2023-07-03 19:21:11 +00:00
|
|
|
DashboardPageTheme get dashboardPageTheme =>
|
|
|
|
super.dashboardPageTheme.copyWith(
|
|
|
|
firstGradientBackgroundColor: Palette.blueCraiola,
|
|
|
|
secondGradientBackgroundColor: Palette.pinkFlamingo,
|
|
|
|
thirdGradientBackgroundColor: Palette.redHat,
|
|
|
|
textColor: Colors.white,
|
|
|
|
indicatorDotTheme: IndicatorDotTheme(
|
|
|
|
indicatorColor: Colors.white.withOpacity(0.5),
|
|
|
|
activeIndicatorColor: Colors.white));
|
2023-07-03 12:26:43 +00:00
|
|
|
|
2023-07-03 12:48:09 +00:00
|
|
|
@override
|
|
|
|
SyncIndicatorTheme get syncIndicatorStyle =>
|
|
|
|
super.syncIndicatorStyle.copyWith(
|
|
|
|
textColor: Colors.white,
|
|
|
|
syncedBackgroundColor: Colors.white.withOpacity(0.2),
|
|
|
|
notSyncedBackgroundColor: Colors.white.withOpacity(0.15));
|
|
|
|
|
2023-07-03 17:56:29 +00:00
|
|
|
@override
|
|
|
|
ExchangePageTheme get exchangePageTheme => super.exchangePageTheme.copyWith(
|
|
|
|
secondGradientBottomPanelColor: Palette.pinkFlamingo.withOpacity(0.7),
|
|
|
|
firstGradientBottomPanelColor: Palette.blueCraiola.withOpacity(0.7),
|
|
|
|
secondGradientTopPanelColor: Palette.pinkFlamingo,
|
|
|
|
firstGradientTopPanelColor: Palette.blueCraiola);
|
|
|
|
|
2023-07-03 18:26:44 +00:00
|
|
|
@override
|
|
|
|
NewWalletTheme get newWalletTheme => NewWalletTheme(
|
|
|
|
hintTextColor: Palette.darkGray,
|
|
|
|
underlineColor: Palette.periwinkleCraiola);
|
|
|
|
|
2023-07-03 18:36:17 +00:00
|
|
|
@override
|
|
|
|
BalancePageTheme get balancePageTheme =>
|
|
|
|
BalancePageTheme(textColor: Colors.white.withOpacity(0.5));
|
|
|
|
|
2023-07-03 19:39:48 +00:00
|
|
|
@override
|
|
|
|
CakeMenuTheme get menuTheme => super.menuTheme.copyWith(
|
|
|
|
headerSecondGradientColor: Palette.pinkFlamingo,
|
|
|
|
iconColor: PaletteDark.pigeonBlue);
|
|
|
|
|
2023-06-30 16:55:22 +00:00
|
|
|
@override
|
|
|
|
ThemeData get themeData => super.themeData.copyWith(
|
2020-12-15 19:30:16 +00:00
|
|
|
indicatorColor: Colors.white.withOpacity(0.5), // page indicator
|
|
|
|
hoverColor: Colors.white, // amount hint text (receive page)
|
|
|
|
dividerColor: Palette.paleBlue,
|
|
|
|
hintColor: Palette.gray,
|
|
|
|
textTheme: TextTheme(
|
2023-05-24 23:19:51 +00:00
|
|
|
bodySmall: TextStyle(
|
2020-12-15 19:30:16 +00:00
|
|
|
decorationColor: Colors.white, // filter icon
|
|
|
|
),
|
2023-05-24 23:19:51 +00:00
|
|
|
labelSmall: TextStyle(
|
2020-12-15 19:30:16 +00:00
|
|
|
color: Colors.white.withOpacity(0.2), // filter button
|
2023-05-24 23:19:51 +00:00
|
|
|
backgroundColor:
|
|
|
|
Colors.white.withOpacity(0.5), // date section row
|
|
|
|
decorationColor: Colors.white
|
|
|
|
.withOpacity(0.2) // icons (transaction and trade rows)
|
|
|
|
),
|
|
|
|
// subhead -> titleMedium
|
|
|
|
titleMedium: TextStyle(
|
2020-12-15 19:30:16 +00:00
|
|
|
color: Colors.white.withOpacity(0.2), // address button border
|
2023-07-03 12:48:09 +00:00
|
|
|
decorationColor:
|
|
|
|
Colors.white.withOpacity(0.4), // copy button (qr widget)
|
2020-12-15 19:30:16 +00:00
|
|
|
),
|
2023-05-24 23:19:51 +00:00
|
|
|
// headline -> headlineSmall
|
|
|
|
headlineSmall: TextStyle(
|
2020-12-15 19:30:16 +00:00
|
|
|
color: Colors.white, // qr code
|
2023-07-03 12:48:09 +00:00
|
|
|
decorationColor: Colors.white
|
|
|
|
.withOpacity(0.5), // bottom border of amount (receive page)
|
2020-12-15 19:30:16 +00:00
|
|
|
),
|
2023-05-24 23:19:51 +00:00
|
|
|
// display1 -> headlineMedium
|
|
|
|
headlineMedium: TextStyle(
|
2020-12-15 19:30:16 +00:00
|
|
|
color: PaletteDark.lightBlueGrey, // icons color (receive page)
|
2023-07-03 12:48:09 +00:00
|
|
|
decorationColor:
|
|
|
|
Palette.lavender, // icons background (receive page)
|
2020-12-15 19:30:16 +00:00
|
|
|
),
|
2023-05-24 23:19:51 +00:00
|
|
|
// display2 -> displaySmall
|
|
|
|
displaySmall: TextStyle(
|
|
|
|
color:
|
|
|
|
Palette.darkBlueCraiola, // text color of tiles (receive page)
|
|
|
|
decorationColor:
|
|
|
|
Colors.white // background of tiles (receive page)
|
|
|
|
),
|
|
|
|
// display3 -> displayMedium
|
|
|
|
displayMedium: TextStyle(
|
2020-12-15 19:30:16 +00:00
|
|
|
color: Colors.white, // text color of current tile (receive page),
|
|
|
|
//decorationColor: Palette.blueCraiola // background of current tile (receive page)
|
2023-05-24 23:19:51 +00:00
|
|
|
decorationColor: Palette
|
|
|
|
.moderateSlateBlue // background of current tile (receive page)
|
|
|
|
),
|
|
|
|
// display4 -> displayLarge
|
|
|
|
displayLarge: TextStyle(
|
2020-12-15 19:30:16 +00:00
|
|
|
color: Palette.violetBlue, // text color of tiles (account list)
|
2023-05-24 23:19:51 +00:00
|
|
|
decorationColor:
|
|
|
|
Colors.white // background of tiles (account list)
|
|
|
|
),
|
2023-07-03 19:39:48 +00:00
|
|
|
),
|
2020-12-15 19:30:16 +00:00
|
|
|
primaryTextTheme: TextTheme(
|
2023-05-24 23:19:51 +00:00
|
|
|
titleLarge: TextStyle(
|
2020-12-15 19:30:16 +00:00
|
|
|
color: Palette.darkBlueCraiola, // title color
|
|
|
|
backgroundColor: Palette.wildPeriwinkle // textfield underline
|
2023-05-24 23:19:51 +00:00
|
|
|
),
|
|
|
|
bodySmall: TextStyle(
|
2020-12-15 19:30:16 +00:00
|
|
|
color: PaletteDark.pigeonBlue, // secondary text
|
2023-05-24 23:19:51 +00:00
|
|
|
),
|
|
|
|
labelSmall: TextStyle(
|
2020-12-15 19:30:16 +00:00
|
|
|
color: Palette.darkGray, // transaction/trade details titles
|
|
|
|
decorationColor: Colors.white.withOpacity(0.5), // placeholder
|
|
|
|
),
|
2023-05-24 23:19:51 +00:00
|
|
|
// subhead -> titleMedium
|
|
|
|
titleMedium: TextStyle(
|
2020-12-15 19:30:16 +00:00
|
|
|
color: Palette.blueCraiola, // first gradient color (send page)
|
2023-05-24 23:19:51 +00:00
|
|
|
decorationColor:
|
|
|
|
Palette.pinkFlamingo // second gradient color (send page)
|
|
|
|
),
|
|
|
|
// headline -> headlineSmall
|
|
|
|
headlineSmall: TextStyle(
|
|
|
|
color: Colors.white
|
|
|
|
.withOpacity(0.5), // text field border color (send page)
|
|
|
|
decorationColor: Colors.white
|
|
|
|
.withOpacity(0.5), // text field hint color (send page)
|
2020-12-15 19:30:16 +00:00
|
|
|
),
|
2023-05-24 23:19:51 +00:00
|
|
|
// display1 -> headlineMedium
|
|
|
|
headlineMedium: TextStyle(
|
|
|
|
color: Colors.white
|
|
|
|
.withOpacity(0.2), // text field button color (send page)
|
|
|
|
decorationColor:
|
|
|
|
Colors.white // text field button icon color (send page)
|
|
|
|
),
|
|
|
|
// display2 -> displaySmall
|
|
|
|
displaySmall: TextStyle(
|
2020-12-15 19:30:16 +00:00
|
|
|
color: Colors.white.withOpacity(0.5), // estimated fee (send page)
|
2023-05-24 23:19:51 +00:00
|
|
|
decorationColor:
|
|
|
|
Palette.shadowWhite // template dotted border (send page)
|
|
|
|
),
|
|
|
|
// display3 -> displayMedium
|
|
|
|
displayMedium: TextStyle(
|
2020-12-15 19:30:16 +00:00
|
|
|
color: Palette.darkBlueCraiola, // template new text (send page)
|
2023-05-24 23:19:51 +00:00
|
|
|
decorationColor:
|
|
|
|
Palette.shadowWhite // template background color (send page)
|
|
|
|
),
|
|
|
|
// display4 -> displayLarge
|
|
|
|
displayLarge: TextStyle(
|
2023-07-03 17:56:29 +00:00
|
|
|
color: Palette.darkBlueCraiola, // template title (send page)
|
|
|
|
backgroundColor: Colors.white, // icon color on order row (moonpay)
|
2023-07-03 12:48:09 +00:00
|
|
|
),
|
2023-05-24 23:19:51 +00:00
|
|
|
// body2 -> bodyLarge
|
|
|
|
bodyLarge: TextStyle(
|
2020-12-15 19:30:16 +00:00
|
|
|
backgroundColor: Palette.brightOrange // alert left button text
|
2023-07-03 12:48:09 +00:00
|
|
|
)),
|
2020-12-15 19:30:16 +00:00
|
|
|
accentTextTheme: TextTheme(
|
2023-07-03 17:56:29 +00:00
|
|
|
// title -> titleLarge
|
|
|
|
titleLarge: TextStyle(
|
|
|
|
backgroundColor: Palette.periwinkleCraiola, // picker divider
|
|
|
|
),
|
|
|
|
bodySmall: TextStyle(
|
|
|
|
decorationColor:
|
|
|
|
Palette.darkBlueCraiola, // text color (information page)
|
|
|
|
),
|
|
|
|
// subtitle -> titleSmall
|
|
|
|
titleSmall: TextStyle(
|
|
|
|
//decorationColor: Palette.blueCraiola // crete new wallet button background (wallet list page)
|
|
|
|
decorationColor: Palette
|
|
|
|
.moderateSlateBlue // crete new wallet button background (wallet list page)
|
|
|
|
),
|
|
|
|
// headline -> headlineSmall
|
|
|
|
headlineSmall: TextStyle(
|
|
|
|
color: Palette
|
|
|
|
.moderateLavender, // first gradient color of wallet action buttons (wallet list page)
|
|
|
|
decorationColor: Colors
|
|
|
|
.white // restore wallet button text color (wallet list page)
|
|
|
|
),
|
|
|
|
// subhead -> titleMedium
|
|
|
|
titleMedium: TextStyle(
|
|
|
|
color: Palette.darkGray, // titles color (filter widget)
|
|
|
|
backgroundColor:
|
|
|
|
Palette.periwinkle, // divider color (filter widget)
|
|
|
|
decorationColor: Colors.white // checkbox background (filter widget)
|
|
|
|
),
|
|
|
|
labelSmall: TextStyle(
|
|
|
|
color: Palette.wildPeriwinkle, // checkbox bounds (filter widget)
|
|
|
|
),
|
|
|
|
));
|
2023-05-24 23:19:51 +00:00
|
|
|
}
|