StreamColorTheme class
Theme that holds colors
Constructors
- StreamColorTheme.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(0xff000000), Color barsBg = const Color(0xff121416), Color linkBg = const Color(0xff00193D), Color accentPrimary = const Color(0xff337eff), 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
- StreamColorTheme.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(0xffe9eaed), Color appBg = const Color(0xfff7f7f8), 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
Properties
- accentError → Color
-
final
- accentInfo → Color
-
final
- accentPrimary → Color
-
final
- appBg → Color
-
final
- barsBg → Color
-
final
- bgGradient → Gradient
-
final
- borderBottom → Effect
-
final
- borders → Color
-
final
- borderTop → Effect
-
final
- brightness → Brightness
-
final
- disabled → Color
-
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- highlight → Color
-
final
- inputBg → Color
-
final
- linkBg → Color
-
final
- modalShadow → Effect
-
final
- overlay → Color
-
final
- overlayDark → Color
-
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- shadowIconButton → Effect
-
final
- textHighEmphasis → Color
-
final
- textLowEmphasis → Color
-
final
Methods
-
copyWith(
{Brightness brightness = Brightness.light, Color? textHighEmphasis, Color? textLowEmphasis, Color? disabled, Color? borders, Color? inputBg, Color? appBg, Color? barsBg, Color? linkBg, Color? accentPrimary, Color? accentError, Color? accentInfo, Effect? borderTop, Effect? borderBottom, Effect? shadowIconButton, Effect? modalShadow, Color? highlight, Color? overlay, Color? overlayDark, Gradient? bgGradient}) → StreamColorTheme - Copy with theme
-
merge(
StreamColorTheme? other) → StreamColorTheme - Merge color theme
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited