ColorTheme.light constructor
ColorTheme.light({
- Color textHighEmphasis = const Color(0xff000000),
- Color textLowEmphasis = const Color(0xff7a7a7a),
- Color disabled = const Color(0xffdbdbdb),
- Color borders = const Color(0xffecebeb),
- Color inputBg = const Color(0xfff2f2f2),
- Color appBg = const Color(0xfffcfcfc),
- Color barsBg = const Color(0xffffffff),
- Color linkBg = const Color(0xffe9f2ff),
- Color accentPrimary = const Color(0xff005FFF),
- Color accentError = const Color(0xffFF3842),
- Color accentInfo = const Color(0xff20E070),
- Color highlight = const Color(0xfffbf4dd),
- Color overlay = const Color.fromRGBO(0, 0, 0, 0.2),
- Color overlayDark = const Color.fromRGBO(0, 0, 0, 0.6),
- Gradient bgGradient = const LinearGradient(begin: Alignment.topCenter, end: Alignment.bottomCenter, colors: [Color(0xfff7f7f7), Color(0xfffcfcfc)], stops: [0, 1]),
- Effect borderTop = const Effect(sigmaX: 0, sigmaY: -1, color: Color(0xff000000), blur: 0, alpha: 0.08),
- Effect borderBottom = const Effect(sigmaX: 0, sigmaY: 1, color: Color(0xff000000), blur: 0, alpha: 0.08),
- Effect shadowIconButton = const Effect(sigmaX: 0, sigmaY: 2, color: Color(0xff000000), alpha: 0.5, blur: 4),
- Effect modalShadow = const Effect(sigmaX: 0, sigmaY: 0, color: Color(0xff000000), alpha: 1, blur: 8),
Initialise with light theme
Implementation
ColorTheme.light({
this.textHighEmphasis = const Color(0xff000000),
this.textLowEmphasis = const Color(0xff7a7a7a),
this.disabled = const Color(0xffdbdbdb),
this.borders = const Color(0xffecebeb),
this.inputBg = const Color(0xfff2f2f2),
this.appBg = const Color(0xfffcfcfc),
this.barsBg = const Color(0xffffffff),
this.linkBg = const Color(0xffe9f2ff),
this.accentPrimary = const Color(0xff005FFF),
this.accentError = const Color(0xffFF3842),
this.accentInfo = const Color(0xff20E070),
this.highlight = const Color(0xfffbf4dd),
this.overlay = const Color.fromRGBO(0, 0, 0, 0.2),
this.overlayDark = const Color.fromRGBO(0, 0, 0, 0.6),
this.bgGradient = const LinearGradient(
begin: Alignment.topCenter,
end: Alignment.bottomCenter,
colors: [Color(0xfff7f7f7), Color(0xfffcfcfc)],
stops: [0, 1],
),
this.borderTop = const Effect(
sigmaX: 0,
sigmaY: -1,
color: Color(0xff000000),
blur: 0,
alpha: 0.08,
),
this.borderBottom = const Effect(
sigmaX: 0,
sigmaY: 1,
color: Color(0xff000000),
blur: 0,
alpha: 0.08,
),
this.shadowIconButton = const Effect(
sigmaX: 0,
sigmaY: 2,
color: Color(0xff000000),
alpha: 0.5,
blur: 4,
),
this.modalShadow = const Effect(
sigmaX: 0,
sigmaY: 0,
color: Color(0xff000000),
alpha: 1,
blur: 8,
),
}) : brightness = Brightness.light;