StreamColorTheme class
Theme that holds colors
Constructors
- StreamColorTheme.dark({Color textHighEmphasis = const Color(0xffffffff), Color textLowEmphasis = const Color(0xff7a7a7a), Color disabled = const Color(0xff4C525C), 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, opacity: 1), Effect shadowIconButton = const Effect(sigmaX: 0, sigmaY: 2, color: Color(0xff000000), opacity: 0.5, blur: 4), Effect modalShadow = const Effect(sigmaX: 0, sigmaY: 0, color: Color(0xff000000), opacity: 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]), Color livestreamBackground = const Color(0x66000000), Color livestreamCallControlsColor = const Color(0xffffffff)})
-
Initialise with dark theme
const
- StreamColorTheme.light({Color textHighEmphasis = const Color(0xff000000), Color textLowEmphasis = const Color(0xff7a7a7a), Color disabled = const Color(0xffB4B7BB), 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, opacity: 0.08), Effect borderBottom = const Effect(sigmaX: 0, sigmaY: 1, color: Color(0xff000000), blur: 0, opacity: 0.08), Effect shadowIconButton = const Effect(sigmaX: 0, sigmaY: 2, color: Color(0xff000000), opacity: 0.5, blur: 4), Effect modalShadow = const Effect(sigmaX: 0, sigmaY: 0, color: Color(0xff000000), opacity: 1, blur: 8), Color livestreamBackground = const Color(0x66000000), Color livestreamCallControlsColor = const Color(0xffffffff)})
-
Initialise with light theme
const
- StreamColorTheme.raw({required Color textHighEmphasis, required Color textLowEmphasis, required Color disabled, required Color borders, required Color inputBg, required Color appBg, required Color barsBg, required Color linkBg, required Color accentPrimary, required Color accentError, required Color accentInfo, required Effect borderTop, required Effect borderBottom, required Effect shadowIconButton, required Effect modalShadow, required Color highlight, required Color overlay, required Color overlayDark, required Gradient bgGradient, required Color livestreamBackground, required Color livestreamCallControlsColor})
-
Raw theme initialization
const
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
- disabled → Color
-
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- highlight → Color
-
final
- inputBg → Color
-
final
- linkBg → Color
-
final
- livestreamBackground → Color
-
final
- livestreamCallControlsColor → 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(
{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, Color? livestreamBackground, Color? livestreamCallControlsColor}) → StreamColorTheme - Copy with theme
-
lerp(
StreamColorTheme? other, double t) → StreamColorTheme -
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