@@ -129,9 +129,11 @@ const kZulipBrandColor = Color.fromRGBO(0x64, 0x92, 0xfe, 1);
129
129
class DesignVariables extends ThemeExtension <DesignVariables > {
130
130
DesignVariables .light () :
131
131
this ._(
132
+ bgCounterUnread: const Color (0xff666699 ).withOpacity (0.15 ),
132
133
bgTopBar: const Color (0xfff5f5f5 ),
133
134
borderBar: const Color (0x33000000 ),
134
135
icon: const Color (0xff666699 ),
136
+ labelCounterUnread: const Color (0xff222222 ),
135
137
mainBackground: const Color (0xfff0f0f0 ),
136
138
title: const Color (0xff1a1a1a ),
137
139
channelColorSwatches: ChannelColorSwatches .light,
@@ -143,9 +145,11 @@ class DesignVariables extends ThemeExtension<DesignVariables> {
143
145
144
146
DesignVariables .dark () :
145
147
this ._(
148
+ bgCounterUnread: const Color (0xff666699 ).withOpacity (0.37 ),
146
149
bgTopBar: const Color (0xff242424 ),
147
150
borderBar: Colors .black.withOpacity (0.41 ),
148
151
icon: const Color (0xff7070c2 ),
152
+ labelCounterUnread: const Color (0xffffffff ).withOpacity (0.7 ),
149
153
mainBackground: const Color (0xff1d1d1d ),
150
154
title: const Color (0xffffffff ),
151
155
channelColorSwatches: ChannelColorSwatches .dark,
@@ -157,9 +161,11 @@ class DesignVariables extends ThemeExtension<DesignVariables> {
157
161
);
158
162
159
163
DesignVariables ._({
164
+ required this .bgCounterUnread,
160
165
required this .bgTopBar,
161
166
required this .borderBar,
162
167
required this .icon,
168
+ required this .labelCounterUnread,
163
169
required this .mainBackground,
164
170
required this .title,
165
171
required this .channelColorSwatches,
@@ -179,9 +185,11 @@ class DesignVariables extends ThemeExtension<DesignVariables> {
179
185
return extension ! ;
180
186
}
181
187
188
+ final Color bgCounterUnread;
182
189
final Color bgTopBar;
183
190
final Color borderBar;
184
191
final Color icon;
192
+ final Color labelCounterUnread;
185
193
final Color mainBackground;
186
194
final Color title;
187
195
@@ -196,9 +204,11 @@ class DesignVariables extends ThemeExtension<DesignVariables> {
196
204
197
205
@override
198
206
DesignVariables copyWith ({
207
+ Color ? bgCounterUnread,
199
208
Color ? bgTopBar,
200
209
Color ? borderBar,
201
210
Color ? icon,
211
+ Color ? labelCounterUnread,
202
212
Color ? mainBackground,
203
213
Color ? title,
204
214
ChannelColorSwatches ? channelColorSwatches,
@@ -208,9 +218,11 @@ class DesignVariables extends ThemeExtension<DesignVariables> {
208
218
Color ? unreadCountBadgeTextForChannel,
209
219
}) {
210
220
return DesignVariables ._(
221
+ bgCounterUnread: bgCounterUnread ?? this .bgCounterUnread,
211
222
bgTopBar: bgTopBar ?? this .bgTopBar,
212
223
borderBar: borderBar ?? this .borderBar,
213
224
icon: icon ?? this .icon,
225
+ labelCounterUnread: labelCounterUnread ?? this .labelCounterUnread,
214
226
mainBackground: mainBackground ?? this .mainBackground,
215
227
title: title ?? this .title,
216
228
channelColorSwatches: channelColorSwatches ?? this .channelColorSwatches,
@@ -227,9 +239,11 @@ class DesignVariables extends ThemeExtension<DesignVariables> {
227
239
return this ;
228
240
}
229
241
return DesignVariables ._(
242
+ bgCounterUnread: Color .lerp (bgCounterUnread, other.bgCounterUnread, t)! ,
230
243
bgTopBar: Color .lerp (bgTopBar, other.bgTopBar, t)! ,
231
244
borderBar: Color .lerp (borderBar, other.borderBar, t)! ,
232
245
icon: Color .lerp (icon, other.icon, t)! ,
246
+ labelCounterUnread: Color .lerp (labelCounterUnread, other.labelCounterUnread, t)! ,
233
247
mainBackground: Color .lerp (mainBackground, other.mainBackground, t)! ,
234
248
title: Color .lerp (title, other.title, t)! ,
235
249
channelColorSwatches: ChannelColorSwatches .lerp (channelColorSwatches, other.channelColorSwatches, t),
0 commit comments