2020-01-04 19:31:52 +00:00
|
|
|
import 'package:flutter/material.dart';
|
|
|
|
import 'palette.dart';
|
|
|
|
|
|
|
|
class Themes {
|
|
|
|
|
|
|
|
static final ThemeData lightTheme = ThemeData(
|
2020-07-22 10:04:11 +00:00
|
|
|
fontFamily: 'Poppins',
|
2020-01-04 19:31:52 +00:00
|
|
|
brightness: Brightness.light,
|
|
|
|
backgroundColor: Colors.white,
|
2020-05-29 15:10:11 +00:00
|
|
|
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(
|
2020-05-29 15:10:11 +00:00
|
|
|
color: Palette.oceanBlue, // primary text
|
|
|
|
backgroundColor: Colors.white // selectButton text
|
2020-01-04 19:31:52 +00:00
|
|
|
),
|
|
|
|
caption: TextStyle(
|
2020-05-29 15:10:11 +00:00
|
|
|
color: Palette.lightBlueGrey, // secondary text
|
2020-01-04 19:31:52 +00:00
|
|
|
),
|
2020-05-29 15:10:11 +00:00
|
|
|
overline: TextStyle(
|
|
|
|
color: Palette.lavender // address field in the wallet card
|
|
|
|
),
|
|
|
|
subhead: TextStyle(
|
2020-06-01 16:26:53 +00:00
|
|
|
color: Colors.white.withOpacity(0.5) // send, exchange, buy buttons on dashboard page
|
2020-01-04 19:31:52 +00:00
|
|
|
),
|
|
|
|
headline: TextStyle(
|
2020-05-29 15:10:11 +00:00
|
|
|
color: Palette.lightBlueGrey // historyPanelText
|
2020-01-04 19:31:52 +00:00
|
|
|
),
|
2020-05-29 15:10:11 +00:00
|
|
|
display1: TextStyle(
|
|
|
|
color: Colors.white // menuList
|
2020-01-04 19:31:52 +00:00
|
|
|
),
|
2020-05-29 15:10:11 +00:00
|
|
|
display2: TextStyle(
|
|
|
|
color: Palette.lavender // menuHeader
|
2020-01-04 19:31:52 +00:00
|
|
|
),
|
2020-05-29 15:10:11 +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(
|
2020-05-29 15:10:11 +00:00
|
|
|
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(
|
2020-05-29 15:10:11 +00:00
|
|
|
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(
|
2020-05-29 15:10:11 +00:00
|
|
|
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(
|
2020-05-29 15:10:11 +00:00
|
|
|
color: Palette.darkLavender, // faq background
|
|
|
|
backgroundColor: Palette.lavender // faq extension
|
2020-01-04 19:31:52 +00:00
|
|
|
)
|
|
|
|
),
|
|
|
|
);
|
|
|
|
|
|
|
|
|
|
|
|
static final ThemeData darkTheme = ThemeData(
|
2020-07-22 10:04:11 +00:00
|
|
|
fontFamily: 'Poppins',
|
2020-01-04 19:31:52 +00:00
|
|
|
brightness: Brightness.dark,
|
2020-05-29 15:10:11 +00:00
|
|
|
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(
|
2020-05-29 15:10:11 +00:00
|
|
|
color: Colors.white,
|
|
|
|
backgroundColor: PaletteDark.moderatePurpleBlue // selectButton text
|
2020-01-04 19:31:52 +00:00
|
|
|
),
|
|
|
|
caption: TextStyle(
|
2020-05-29 15:10:11 +00:00
|
|
|
color: PaletteDark.gray,
|
2020-01-04 19:31:52 +00:00
|
|
|
),
|
2020-05-29 15:10:11 +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(
|
2020-05-29 15:10:11 +00:00
|
|
|
color: PaletteDark.pigeonBlue // historyPanelText
|
2020-01-04 19:31:52 +00:00
|
|
|
),
|
2020-05-29 15:10:11 +00:00
|
|
|
display1: TextStyle(
|
|
|
|
color: PaletteDark.lightNightBlue // menuList
|
2020-01-04 19:31:52 +00:00
|
|
|
),
|
2020-05-29 15:10:11 +00:00
|
|
|
display2: TextStyle(
|
|
|
|
color: PaletteDark.headerNightBlue // menuHeader
|
2020-01-04 19:31:52 +00:00
|
|
|
),
|
2020-05-29 15:10:11 +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
|
|
|
),
|
2020-05-29 15:10:11 +00:00
|
|
|
dividerColor: PaletteDark.distantBlue,
|
2020-01-04 19:31:52 +00:00
|
|
|
accentTextTheme: TextTheme(
|
|
|
|
title: TextStyle(
|
2020-05-29 15:10:11 +00:00
|
|
|
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(
|
2020-05-29 15:10:11 +00:00
|
|
|
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(
|
2020-05-29 15:10:11 +00:00
|
|
|
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(
|
2020-05-29 15:10:11 +00:00
|
|
|
color: PaletteDark.lightNightBlue, // faq background
|
|
|
|
backgroundColor: PaletteDark.headerNightBlue // faq extension
|
2020-01-04 19:31:52 +00:00
|
|
|
)
|
|
|
|
),
|
|
|
|
);
|
|
|
|
|
|
|
|
}
|