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