@@ -41,6 +41,10 @@ class ContentTheme extends ThemeExtension<ContentTheme> {
4141 colorGlobalTimeBorder: const HSLColor .fromAHSL (1 , 0 , 0 , 0.8 ).toColor (),
4242 colorMathBlockBorder: const HSLColor .fromAHSL (0.15 , 240 , 0.8 , 0.5 ).toColor (),
4343 colorMessageMediaContainerBackground: const Color .fromRGBO (0 , 0 , 0 , 0.03 ),
44+ colorPollNames: const HSLColor .fromAHSL (1 , 0 , 0 , .45 ).toColor (),
45+ colorPollVoteCountBackground: const HSLColor .fromAHSL (1 , 0 , 0 , 1 ).toColor (),
46+ colorPollVoteCountBorder: const HSLColor .fromAHSL (1 , 156 , 0.28 , 0.7 ).toColor (),
47+ colorPollVoteCountText: const HSLColor .fromAHSL (1 , 156 , 0.41 , 0.4 ).toColor (),
4448 colorThematicBreak: const HSLColor .fromAHSL (1 , 0 , 0 , .87 ).toColor (),
4549 textStylePlainParagraph: _plainParagraphCommon (context).copyWith (
4650 color: const HSLColor .fromAHSL (1 , 0 , 0 , 0.15 ).toColor (),
@@ -66,6 +70,10 @@ class ContentTheme extends ThemeExtension<ContentTheme> {
6670 colorGlobalTimeBorder: const HSLColor .fromAHSL (0.4 , 0 , 0 , 0 ).toColor (),
6771 colorMathBlockBorder: const HSLColor .fromAHSL (1 , 240 , 0.4 , 0.4 ).toColor (),
6872 colorMessageMediaContainerBackground: const HSLColor .fromAHSL (0.03 , 0 , 0 , 1 ).toColor (),
73+ colorPollNames: const HSLColor .fromAHSL (1 , 236 , .15 , .7 ).toColor (),
74+ colorPollVoteCountBackground: const HSLColor .fromAHSL (0.2 , 0 , 0 , 0 ).toColor (),
75+ colorPollVoteCountBorder: const HSLColor .fromAHSL (1 , 185 , 0.35 , 0.35 ).toColor (),
76+ colorPollVoteCountText: const HSLColor .fromAHSL (1 , 185 , 0.35 , 0.65 ).toColor (),
6977 colorThematicBreak: const HSLColor .fromAHSL (1 , 0 , 0 , .87 ).toColor ().withValues (alpha: 0.2 ),
7078 textStylePlainParagraph: _plainParagraphCommon (context).copyWith (
7179 color: const HSLColor .fromAHSL (1 , 0 , 0 , 0.85 ).toColor (),
@@ -90,6 +98,10 @@ class ContentTheme extends ThemeExtension<ContentTheme> {
9098 required this .colorGlobalTimeBorder,
9199 required this .colorMathBlockBorder,
92100 required this .colorMessageMediaContainerBackground,
101+ required this .colorPollNames,
102+ required this .colorPollVoteCountBackground,
103+ required this .colorPollVoteCountBorder,
104+ required this .colorPollVoteCountText,
93105 required this .colorThematicBreak,
94106 required this .textStylePlainParagraph,
95107 required this .codeBlockTextStyles,
@@ -115,6 +127,10 @@ class ContentTheme extends ThemeExtension<ContentTheme> {
115127 final Color colorGlobalTimeBorder;
116128 final Color colorMathBlockBorder; // TODO(#46) this won't be needed
117129 final Color colorMessageMediaContainerBackground;
130+ final Color colorPollNames;
131+ final Color colorPollVoteCountBackground;
132+ final Color colorPollVoteCountBorder;
133+ final Color colorPollVoteCountText;
118134 final Color colorThematicBreak;
119135
120136 /// The complete [TextStyle] we use for plain, unstyled paragraphs.
@@ -166,6 +182,10 @@ class ContentTheme extends ThemeExtension<ContentTheme> {
166182 Color ? colorGlobalTimeBorder,
167183 Color ? colorMathBlockBorder,
168184 Color ? colorMessageMediaContainerBackground,
185+ Color ? colorPollNames,
186+ Color ? colorPollVoteCountBackground,
187+ Color ? colorPollVoteCountBorder,
188+ Color ? colorPollVoteCountText,
169189 Color ? colorThematicBreak,
170190 TextStyle ? textStylePlainParagraph,
171191 CodeBlockTextStyles ? codeBlockTextStyles,
@@ -181,6 +201,10 @@ class ContentTheme extends ThemeExtension<ContentTheme> {
181201 colorGlobalTimeBorder: colorGlobalTimeBorder ?? this .colorGlobalTimeBorder,
182202 colorMathBlockBorder: colorMathBlockBorder ?? this .colorMathBlockBorder,
183203 colorMessageMediaContainerBackground: colorMessageMediaContainerBackground ?? this .colorMessageMediaContainerBackground,
204+ colorPollNames: colorPollNames ?? this .colorPollNames,
205+ colorPollVoteCountBackground: colorPollVoteCountBackground ?? this .colorPollVoteCountBackground,
206+ colorPollVoteCountBorder: colorPollVoteCountBorder ?? this .colorPollVoteCountBorder,
207+ colorPollVoteCountText: colorPollVoteCountText ?? this .colorPollVoteCountText,
184208 colorThematicBreak: colorThematicBreak ?? this .colorThematicBreak,
185209 textStylePlainParagraph: textStylePlainParagraph ?? this .textStylePlainParagraph,
186210 codeBlockTextStyles: codeBlockTextStyles ?? this .codeBlockTextStyles,
@@ -203,6 +227,10 @@ class ContentTheme extends ThemeExtension<ContentTheme> {
203227 colorGlobalTimeBorder: Color .lerp (colorGlobalTimeBorder, other.colorGlobalTimeBorder, t)! ,
204228 colorMathBlockBorder: Color .lerp (colorMathBlockBorder, other.colorMathBlockBorder, t)! ,
205229 colorMessageMediaContainerBackground: Color .lerp (colorMessageMediaContainerBackground, other.colorMessageMediaContainerBackground, t)! ,
230+ colorPollNames: Color .lerp (colorPollNames, other.colorPollNames, t)! ,
231+ colorPollVoteCountBackground: Color .lerp (colorPollVoteCountBackground, other.colorPollVoteCountBackground, t)! ,
232+ colorPollVoteCountBorder: Color .lerp (colorPollVoteCountBorder, other.colorPollVoteCountBorder, t)! ,
233+ colorPollVoteCountText: Color .lerp (colorPollVoteCountText, other.colorPollVoteCountText, t)! ,
206234 colorThematicBreak: Color .lerp (colorThematicBreak, other.colorThematicBreak, t)! ,
207235 textStylePlainParagraph: TextStyle .lerp (textStylePlainParagraph, other.textStylePlainParagraph, t)! ,
208236 codeBlockTextStyles: CodeBlockTextStyles .lerp (codeBlockTextStyles, other.codeBlockTextStyles, t),
0 commit comments