ColorTheme.dark constructor
ColorTheme.dark({
- Color textHighEmphasis = const Color(0xffffffff),
- Color textLowEmphasis = const Color(0xff7a7a7a),
- Color disabled = const Color(0xff2d2f2f),
- Color borders = const Color(0xff1c1e22),
- Color inputBg = const Color(0xff13151b),
- Color appBg = const Color(0xff070A0D),
- Color barsBg = const Color(0xff101418),
- Color linkBg = const Color(0xff00193D),
- Color accentPrimary = const Color(0xff005FFF),
- Color accentError = const Color(0xffFF3742),
- Color accentInfo = const Color(0xff20E070),
- Effect borderTop = const Effect(sigmaX: 0, sigmaY: -1, color: Color(0xff141924), blur: 0),
- Effect borderBottom = const Effect(sigmaX: 0, sigmaY: 1, color: Color(0xff141924), blur: 0, alpha: 1),
- 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),
- Color highlight = const Color(0xff302d22),
- Color overlay = const Color.fromRGBO(0, 0, 0, 0.4),
- Color overlayDark = const Color.fromRGBO(255, 255, 255, 0.6),
- Gradient bgGradient = const LinearGradient(begin: Alignment.topCenter, end: Alignment.bottomCenter, colors: [Color(0xff101214), Color(0xff070a0d)], stops: [0, 1]),
Initialise with dark theme
Implementation
ColorTheme.dark({
this.textHighEmphasis = const Color(0xffffffff),
this.textLowEmphasis = const Color(0xff7a7a7a),
this.disabled = const Color(0xff2d2f2f),
this.borders = const Color(0xff1c1e22),
this.inputBg = const Color(0xff13151b),
this.appBg = const Color(0xff070A0D),
this.barsBg = const Color(0xff101418),
this.linkBg = const Color(0xff00193D),
this.accentPrimary = const Color(0xff005FFF),
this.accentError = const Color(0xffFF3742),
this.accentInfo = const Color(0xff20E070),
this.borderTop = const Effect(
sigmaX: 0,
sigmaY: -1,
color: Color(0xff141924),
blur: 0,
),
this.borderBottom = const Effect(
sigmaX: 0,
sigmaY: 1,
color: Color(0xff141924),
blur: 0,
alpha: 1,
),
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,
),
this.highlight = const Color(0xff302d22),
this.overlay = const Color.fromRGBO(0, 0, 0, 0.4),
this.overlayDark = const Color.fromRGBO(255, 255, 255, 0.6),
this.bgGradient = const LinearGradient(
begin: Alignment.topCenter,
end: Alignment.bottomCenter,
colors: [
Color(0xff101214),
Color(0xff070a0d),
],
stops: [0, 1],
),
}) : brightness = Brightness.dark;