2023-07-03 12:43:33 +00:00
|
|
|
import 'package:cake_wallet/themes/extensions/cake_scrollbar_theme.dart';
|
2023-07-03 17:56:29 +00:00
|
|
|
import 'package:cake_wallet/themes/extensions/exchange_page_theme.dart';
|
2023-07-03 16:29:44 +00:00
|
|
|
import 'package:cake_wallet/themes/extensions/keyboard_theme.dart';
|
2023-07-03 18:26:44 +00:00
|
|
|
import 'package:cake_wallet/themes/extensions/new_wallet_theme.dart';
|
2023-07-03 16:38:39 +00:00
|
|
|
import 'package:cake_wallet/themes/extensions/pin_code_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';
|
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(
|
|
|
|
indicatorsColor: Palette.darkGray,
|
|
|
|
switchColor: Palette.darkGray);
|
|
|
|
|
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-06-30 16:55:22 +00:00
|
|
|
@override
|
|
|
|
ThemeData get themeData => super.themeData.copyWith(
|
2023-05-24 23:19:51 +00:00
|
|
|
indicatorColor:
|
|
|
|
PaletteDark.darkCyanBlue.withOpacity(0.67), // page indicator
|
2020-12-15 19:30:16 +00:00
|
|
|
hoverColor: Palette.darkBlueCraiola, // amount hint text (receive page)
|
|
|
|
dividerColor: Palette.paleBlue,
|
|
|
|
hintColor: Palette.gray,
|
2023-07-03 17:01:54 +00:00
|
|
|
disabledColor: Palette.darkGray,
|
2023-07-03 12:17:47 +00:00
|
|
|
dialogTheme: super
|
|
|
|
.themeData
|
|
|
|
.dialogTheme
|
|
|
|
.copyWith(backgroundColor: Colors.white),
|
2020-12-15 19:30:16 +00:00
|
|
|
textTheme: TextTheme(
|
2023-05-24 23:19:51 +00:00
|
|
|
bodySmall: TextStyle(
|
2020-12-15 19:30:16 +00:00
|
|
|
decorationColor: PaletteDark.wildBlue, // filter icon
|
|
|
|
),
|
2023-05-24 23:19:51 +00:00
|
|
|
labelSmall: TextStyle(
|
2020-12-15 19:30:16 +00:00
|
|
|
color: Palette.blueAlice, // filter button
|
|
|
|
backgroundColor: PaletteDark.darkCyanBlue, // date section row
|
2023-05-24 23:19:51 +00:00
|
|
|
decorationColor:
|
|
|
|
Palette.blueAlice // icons (transaction and trade rows)
|
|
|
|
),
|
|
|
|
// subhead -> titleMedium
|
|
|
|
titleMedium: TextStyle(
|
2020-12-15 19:30:16 +00:00
|
|
|
color: Palette.blueAlice, // address button border
|
|
|
|
decorationColor: PaletteDark.lightBlueGrey, // copy button (qr widget)
|
|
|
|
),
|
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
|
|
|
|
decorationColor: Palette.darkBlueCraiola, // bottom border of amount (receive page)
|
|
|
|
),
|
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)
|
|
|
|
decorationColor: Palette.moderateLavender, // icons background (receive page)
|
|
|
|
),
|
2023-05-24 23:19:51 +00:00
|
|
|
// display2 -> headldisplaySmalline3
|
|
|
|
displaySmall: TextStyle(
|
|
|
|
color:
|
|
|
|
Palette.darkBlueCraiola, // text color of tiles (receive page)
|
|
|
|
decorationColor:
|
|
|
|
Palette.blueAlice // 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
|
|
|
|
.blueCraiola // 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)
|
|
|
|
),
|
|
|
|
// body2 -> bodyLarge
|
|
|
|
bodyLarge: TextStyle(
|
2020-12-15 19:30:16 +00:00
|
|
|
color: Palette.moderateLavender, // menu header
|
|
|
|
decorationColor: Colors.white, // menu background
|
|
|
|
)
|
|
|
|
),
|
|
|
|
primaryTextTheme: TextTheme(
|
2023-05-24 23:19:51 +00:00
|
|
|
// title -> titleLarge
|
|
|
|
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
|
|
|
|
decorationColor: Palette.wildLavender // menu divider
|
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: PaletteDark.darkCyanBlue, // 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.blueGreyCraiola // 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
|
|
|
backgroundColor: PaletteDark.darkCyanBlue
|
|
|
|
.withOpacity(0.67), // dot color for indicator on send page
|
|
|
|
decorationColor:
|
|
|
|
Palette.moderateLavender // 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
|
|
|
backgroundColor: PaletteDark
|
|
|
|
.darkNightBlue, // active dot color for indicator on send page
|
|
|
|
decorationColor:
|
|
|
|
Palette.blueAlice // template background color (send page)
|
|
|
|
),
|
|
|
|
// display4 -> displayLarge
|
|
|
|
displayLarge: TextStyle(
|
2020-12-15 19:30:16 +00:00
|
|
|
color: Palette.darkBlueCraiola, // template title (send page)
|
2023-05-24 23:19:51 +00:00
|
|
|
backgroundColor:
|
|
|
|
Colors.black, // icon color on order row (moonpay)
|
|
|
|
),
|
|
|
|
// body2 -> bodyLarge
|
|
|
|
bodyLarge: TextStyle(
|
2020-12-15 19:30:16 +00:00
|
|
|
backgroundColor: Palette.brightOrange // alert left button text
|
|
|
|
)
|
|
|
|
),
|
|
|
|
accentTextTheme: TextTheme(
|
2023-05-24 23:19:51 +00:00
|
|
|
// title -> headlititleLargene6
|
|
|
|
titleLarge: TextStyle(
|
2020-12-15 19:30:16 +00:00
|
|
|
backgroundColor: Palette.periwinkleCraiola, // picker divider
|
2023-05-24 23:19:51 +00:00
|
|
|
),
|
|
|
|
bodySmall: TextStyle(
|
2020-12-15 19:30:16 +00:00
|
|
|
decorationColor: Palette.darkBlueCraiola, // text color (information page)
|
|
|
|
),
|
2023-05-24 23:19:51 +00:00
|
|
|
// subtitle -> titleSmall
|
|
|
|
titleSmall: TextStyle(
|
|
|
|
decorationColor: Palette
|
|
|
|
.protectiveBlue // 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(
|
2020-12-15 19:30:16 +00:00
|
|
|
color: Palette.darkGray, // titles color (filter widget)
|
|
|
|
backgroundColor: Palette.periwinkle, // divider color (filter widget)
|
|
|
|
decorationColor: Colors.white // checkbox background (filter widget)
|
2023-05-24 23:19:51 +00:00
|
|
|
),
|
|
|
|
labelSmall: TextStyle(
|
2020-12-15 19:30:16 +00:00
|
|
|
color: Palette.wildPeriwinkle, // checkbox bounds (filter widget)
|
|
|
|
decorationColor: Colors.white, // menu subname
|
|
|
|
),
|
2023-05-24 23:19:51 +00:00
|
|
|
// display1 -> headlineMedium
|
|
|
|
headlineMedium: TextStyle(
|
2020-12-15 19:30:16 +00:00
|
|
|
color: Palette.blueCraiola, // first gradient color (menu header)
|
|
|
|
decorationColor: Palette.blueGreyCraiola, // second gradient color(menu header)
|
|
|
|
backgroundColor: PaletteDark.darkNightBlue // active dot color
|
2023-05-24 23:19:51 +00:00
|
|
|
),
|
|
|
|
// display2 -> displaySmall
|
|
|
|
displaySmall: TextStyle(
|
|
|
|
color:
|
|
|
|
Palette.shadowWhite, // action button color (address text field)
|
2020-12-15 19:30:16 +00:00
|
|
|
decorationColor: Palette.darkGray, // hint text (seed widget)
|
2023-05-24 23:19:51 +00:00
|
|
|
backgroundColor: Palette.darkBlueCraiola
|
|
|
|
.withOpacity(0.67) // text on balance page
|
|
|
|
),
|
2020-12-15 19:30:16 +00:00
|
|
|
),
|
2023-05-24 23:19:51 +00:00
|
|
|
);
|
|
|
|
}
|