@@ -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,
@@ -141,9 +143,11 @@ class DesignVariables extends ThemeExtension<DesignVariables> {
141
143
142
144
DesignVariables .dark () :
143
145
this ._(
146
+ bgCounterUnread: const Color (0xff666699 ).withOpacity (0.37 ),
144
147
bgTopBar: const Color (0xff242424 ),
145
148
borderBar: Colors .black.withOpacity (0.41 ),
146
149
icon: const Color (0xff7070c2 ),
150
+ labelCounterUnread: const Color (0xffffffff ).withOpacity (0.7 ),
147
151
mainBackground: const Color (0xff1d1d1d ),
148
152
title: const Color (0xffffffff ),
149
153
channelColorSwatches: ChannelColorSwatches .dark,
@@ -153,9 +157,11 @@ class DesignVariables extends ThemeExtension<DesignVariables> {
153
157
);
154
158
155
159
DesignVariables ._({
160
+ required this .bgCounterUnread,
156
161
required this .bgTopBar,
157
162
required this .borderBar,
158
163
required this .icon,
164
+ required this .labelCounterUnread,
159
165
required this .mainBackground,
160
166
required this .title,
161
167
required this .channelColorSwatches,
@@ -173,9 +179,11 @@ class DesignVariables extends ThemeExtension<DesignVariables> {
173
179
return extension ! ;
174
180
}
175
181
182
+ final Color bgCounterUnread;
176
183
final Color bgTopBar;
177
184
final Color borderBar;
178
185
final Color icon;
186
+ final Color labelCounterUnread;
179
187
final Color mainBackground;
180
188
final Color title;
181
189
@@ -188,19 +196,23 @@ class DesignVariables extends ThemeExtension<DesignVariables> {
188
196
189
197
@override
190
198
DesignVariables copyWith ({
199
+ Color ? bgCounterUnread,
191
200
Color ? bgTopBar,
192
201
Color ? borderBar,
193
202
Color ? icon,
203
+ Color ? labelCounterUnread,
194
204
Color ? mainBackground,
195
205
Color ? title,
196
206
ChannelColorSwatches ? channelColorSwatches,
197
207
Color ? star,
198
208
Color ? unreadCountBadgeTextForChannel,
199
209
}) {
200
210
return DesignVariables ._(
211
+ bgCounterUnread: bgCounterUnread ?? this .bgCounterUnread,
201
212
bgTopBar: bgTopBar ?? this .bgTopBar,
202
213
borderBar: borderBar ?? this .borderBar,
203
214
icon: icon ?? this .icon,
215
+ labelCounterUnread: labelCounterUnread ?? this .labelCounterUnread,
204
216
mainBackground: mainBackground ?? this .mainBackground,
205
217
title: title ?? this .title,
206
218
channelColorSwatches: channelColorSwatches ?? this .channelColorSwatches,
@@ -215,9 +227,11 @@ class DesignVariables extends ThemeExtension<DesignVariables> {
215
227
return this ;
216
228
}
217
229
return DesignVariables ._(
230
+ bgCounterUnread: Color .lerp (bgCounterUnread, other.bgCounterUnread, t)! ,
218
231
bgTopBar: Color .lerp (bgTopBar, other.bgTopBar, t)! ,
219
232
borderBar: Color .lerp (borderBar, other.borderBar, t)! ,
220
233
icon: Color .lerp (icon, other.icon, t)! ,
234
+ labelCounterUnread: Color .lerp (labelCounterUnread, other.labelCounterUnread, t)! ,
221
235
mainBackground: Color .lerp (mainBackground, other.mainBackground, t)! ,
222
236
title: Color .lerp (title, other.title, t)! ,
223
237
channelColorSwatches: ChannelColorSwatches .lerp (channelColorSwatches, other.channelColorSwatches, t),
0 commit comments