cake_wallet/lib/themes.dart

143 lines
5 KiB
Dart
Raw Normal View History

2020-01-04 19:31:52 +00:00
import 'package:flutter/material.dart';
import 'palette.dart';
class Themes {
static final ThemeData lightTheme = ThemeData(
fontFamily: 'Poppins',
2020-01-04 19:31:52 +00:00
brightness: Brightness.light,
backgroundColor: Colors.white,
focusColor: Colors.white, // wallet card border
hintColor: Colors.white, // menu
scaffoldBackgroundColor: Palette.blueAlice, // gradient background start
primaryColor: Palette.lightBlue, // gradient background end
cardColor: Palette.blueAlice,
cardTheme: CardTheme(
color: Colors.white, // synced card start
),
hoverColor: Colors.white, // synced card end
2020-01-04 19:31:52 +00:00
primaryTextTheme: TextTheme(
title: TextStyle(
color: Palette.oceanBlue, // primary text
backgroundColor: Colors.white // selectButton text
2020-01-04 19:31:52 +00:00
),
caption: TextStyle(
color: Palette.lightBlueGrey, // secondary text
2020-01-04 19:31:52 +00:00
),
overline: TextStyle(
color: Palette.lavender // address field in the wallet card
),
subhead: TextStyle(
color: Colors.white.withOpacity(0.5) // send, exchange, buy buttons on dashboard page
2020-01-04 19:31:52 +00:00
),
headline: TextStyle(
color: Palette.lightBlueGrey // historyPanelText
2020-01-04 19:31:52 +00:00
),
display1: TextStyle(
color: Colors.white // menuList
2020-01-04 19:31:52 +00:00
),
display2: TextStyle(
color: Palette.lavender // menuHeader
2020-01-04 19:31:52 +00:00
),
display3: TextStyle(
color: Palette.lavender // historyPanelButton
),
display4: TextStyle(
color: Palette.oceanBlue // QR code
2020-06-20 07:10:00 +00:00
),
// headline1: TextStyle(color: Palette.nightBlue)
2020-01-04 19:31:52 +00:00
),
2020-06-20 07:10:00 +00:00
dividerColor: Palette.eee,
2020-01-04 19:31:52 +00:00
accentTextTheme: TextTheme(
title: TextStyle(
color: Palette.darkLavender, // top panel
backgroundColor: Palette.lavender, // bottom panel
decorationColor: PaletteDark.distantBlue // select button background color
2020-01-04 19:31:52 +00:00
),
caption: TextStyle(
color: Palette.blue, // current wallet label
backgroundColor: Colors.white, // gradient start, wallet label
decorationColor: Palette.lavender, // gradient end, wallet label
2020-01-04 19:31:52 +00:00
),
subtitle: TextStyle(
color: Palette.lightBlueGrey, // border color, wallet label
backgroundColor: Palette.lavender, // address field, wallet card
decorationColor: Palette.darkLavender // selected item
2020-01-04 19:31:52 +00:00
),
headline: TextStyle(
color: Palette.darkLavender, // faq background
backgroundColor: Palette.lavender // faq extension
2020-01-04 19:31:52 +00:00
)
),
);
static final ThemeData darkTheme = ThemeData(
fontFamily: 'Poppins',
2020-01-04 19:31:52 +00:00
brightness: Brightness.dark,
backgroundColor: PaletteDark.darkNightBlue,
focusColor: PaletteDark.lightDistantBlue, // wallet card border
hintColor: PaletteDark.gray, // menu
scaffoldBackgroundColor: PaletteDark.distantBlue, // gradient background start
primaryColor: PaletteDark.distantBlue, // gradient background end
cardColor: PaletteDark.darkNightBlue,
cardTheme: CardTheme(
color: PaletteDark.moderateBlue, // synced card start
),
hoverColor: PaletteDark.nightBlue, // synced card end
2020-01-04 19:31:52 +00:00
primaryTextTheme: TextTheme(
title: TextStyle(
color: Colors.white,
backgroundColor: PaletteDark.moderatePurpleBlue // selectButton text
2020-01-04 19:31:52 +00:00
),
caption: TextStyle(
color: PaletteDark.gray,
2020-01-04 19:31:52 +00:00
),
overline: TextStyle(
color: PaletteDark.lightDistantBlue // address field in the wallet card
),
subhead: TextStyle(
color: PaletteDark.lightDistantBlue // send, exchange, buy buttons on dashboard page
2020-01-04 19:31:52 +00:00
),
headline: TextStyle(
color: PaletteDark.pigeonBlue // historyPanelText
2020-01-04 19:31:52 +00:00
),
display1: TextStyle(
color: PaletteDark.lightNightBlue // menuList
2020-01-04 19:31:52 +00:00
),
display2: TextStyle(
color: PaletteDark.headerNightBlue // menuHeader
2020-01-04 19:31:52 +00:00
),
display3: TextStyle(
color: PaletteDark.moderateNightBlue // historyPanelButton
),
display4: TextStyle(
color: PaletteDark.gray // QR code
2020-06-20 07:10:00 +00:00
),
// headline5: TextStyle(color: PaletteDark.gray)
2020-01-04 19:31:52 +00:00
),
dividerColor: PaletteDark.distantBlue,
2020-01-04 19:31:52 +00:00
accentTextTheme: TextTheme(
title: TextStyle(
color: PaletteDark.moderateBlue, // top panel
backgroundColor: PaletteDark.lightNightBlue, // bottom panel
decorationColor: Colors.white // select button background color
2020-01-04 19:31:52 +00:00
),
caption: TextStyle(
color: Colors.white, // current wallet label
backgroundColor: PaletteDark.distantBlue, // gradient start, wallet label
decorationColor: PaletteDark.nightBlue, // gradient end, wallet label
2020-01-04 19:31:52 +00:00
),
subtitle: TextStyle(
color: PaletteDark.darkNightBlue, // border color, wallet label
backgroundColor: PaletteDark.violetBlue, // address field, wallet card
decorationColor: PaletteDark.headerNightBlue // selected item
2020-01-04 19:31:52 +00:00
),
headline: TextStyle(
color: PaletteDark.lightNightBlue, // faq background
backgroundColor: PaletteDark.headerNightBlue // faq extension
2020-01-04 19:31:52 +00:00
)
),
);
}