@@ -107,7 +107,7 @@ class DesignVariables extends ThemeExtension<DesignVariables> {
107
107
DesignVariables .light () :
108
108
this ._(
109
109
background: const Color (0xffffffff ),
110
- bgCounterUnread: const Color (0xff666699 ).withOpacity ( 0.15 ),
110
+ bgCounterUnread: const Color (0xff666699 ).withValues (alpha : 0.15 ),
111
111
bgTopBar: const Color (0xfff5f5f5 ),
112
112
borderBar: const Color (0x33000000 ),
113
113
icon: const Color (0xff666699 ),
@@ -121,26 +121,26 @@ class DesignVariables extends ThemeExtension<DesignVariables> {
121
121
errorBannerBackground: const HSLColor .fromAHSL (1 , 4 , 0.33 , 0.90 ).toColor (),
122
122
errorBannerBorder: const HSLColor .fromAHSL (0.4 , 3 , 0.57 , 0.33 ).toColor (),
123
123
errorBannerLabel: const HSLColor .fromAHSL (1 , 4 , 0.58 , 0.33 ).toColor (),
124
- groupDmConversationIcon: Colors .black.withOpacity ( 0.5 ),
124
+ groupDmConversationIcon: Colors .black.withValues (alpha : 0.5 ),
125
125
groupDmConversationIconBg: const Color (0x33808080 ),
126
126
loginOrDivider: const Color (0xffdedede ),
127
127
loginOrDividerText: const Color (0xff575757 ),
128
128
sectionCollapseIcon: const Color (0x7f1e2e48 ),
129
129
star: const HSLColor .fromAHSL (0.5 , 47 , 1 , 0.41 ).toColor (),
130
130
subscriptionListHeaderLine: const HSLColor .fromAHSL (0.2 , 240 , 0.1 , 0.5 ).toColor (),
131
131
subscriptionListHeaderText: const HSLColor .fromAHSL (1.0 , 240 , 0.1 , 0.5 ).toColor (),
132
- unreadCountBadgeTextForChannel: Colors .black.withOpacity ( 0.9 ),
132
+ unreadCountBadgeTextForChannel: Colors .black.withValues (alpha : 0.9 ),
133
133
);
134
134
135
135
DesignVariables .dark () :
136
136
this ._(
137
137
background: const Color (0xff000000 ),
138
- bgCounterUnread: const Color (0xff666699 ).withOpacity ( 0.37 ),
138
+ bgCounterUnread: const Color (0xff666699 ).withValues (alpha : 0.37 ),
139
139
bgTopBar: const Color (0xff242424 ),
140
- borderBar: Colors .black.withOpacity ( 0.41 ),
140
+ borderBar: Colors .black.withValues (alpha : 0.41 ),
141
141
icon: const Color (0xff7070c2 ),
142
- labelCounterUnread: const Color (0xffffffff ).withOpacity ( 0.7 ),
143
- labelMenuButton: const Color (0xffffffff ).withOpacity ( 0.85 ),
142
+ labelCounterUnread: const Color (0xffffffff ).withValues (alpha : 0.7 ),
143
+ labelMenuButton: const Color (0xffffffff ).withValues (alpha : 0.85 ),
144
144
mainBackground: const Color (0xff1d1d1d ),
145
145
title: const Color (0xffffffff ),
146
146
channelColorSwatches: ChannelColorSwatches .dark,
@@ -151,7 +151,7 @@ class DesignVariables extends ThemeExtension<DesignVariables> {
151
151
errorBannerBorder: const HSLColor .fromAHSL (0.4 , 3 , 0.73 , 0.74 ).toColor (),
152
152
errorBannerLabel: const HSLColor .fromAHSL (1 , 2 , 0.73 , 0.80 ).toColor (),
153
153
// TODO(design-dark) need proper dark-theme color (this is ad hoc)
154
- groupDmConversationIcon: Colors .white.withOpacity ( 0.5 ),
154
+ groupDmConversationIcon: Colors .white.withValues (alpha : 0.5 ),
155
155
// TODO(design-dark) need proper dark-theme color (this is ad hoc)
156
156
groupDmConversationIconBg: const Color (0x33cccccc ),
157
157
loginOrDivider: const Color (0xff424242 ),
@@ -164,7 +164,7 @@ class DesignVariables extends ThemeExtension<DesignVariables> {
164
164
subscriptionListHeaderLine: const HSLColor .fromAHSL (0.4 , 240 , 0.1 , 0.75 ).toColor (),
165
165
// TODO(design-dark) need proper dark-theme color (this is ad hoc)
166
166
subscriptionListHeaderText: const HSLColor .fromAHSL (1.0 , 240 , 0.1 , 0.75 ).toColor (),
167
- unreadCountBadgeTextForChannel: Colors .white.withOpacity ( 0.9 ),
167
+ unreadCountBadgeTextForChannel: Colors .white.withValues (alpha : 0.9 ),
168
168
);
169
169
170
170
DesignVariables ._({
0 commit comments