@@ -212,28 +212,34 @@ class SubscriptionItem extends StatelessWidget {
212
212
},
213
213
child: Row (crossAxisAlignment: CrossAxisAlignment .center, children: [
214
214
const SizedBox (width: 16 ),
215
- Padding (
216
- padding: const EdgeInsets .symmetric (vertical: 11 ),
217
- child: Icon (size: 18 , color: swatch.iconOnPlainBackground,
218
- iconDataForStream (subscription))),
219
- const SizedBox (width: 5 ),
220
215
Expanded (
221
- child: Padding (
222
- padding: const EdgeInsets .symmetric (vertical: 10 ),
223
- // TODO(design): unclear whether bold text is applied to all subscriptions
224
- // or only those with unreads:
225
- // https://github.com/zulip/zulip-flutter/pull/397#pullrequestreview-1742524205
226
- child: Text (
227
- style: const TextStyle (
228
- fontSize: 18 ,
229
- height: (20 / 18 ),
230
- // TODO(#95) need dark-theme color
231
- color: Color (0xFF262626 ),
232
- ).merge (weightVariableTextStyle (context,
233
- wght: hasUnreads ? 600 : null )),
234
- maxLines: 1 ,
235
- overflow: TextOverflow .ellipsis,
236
- subscription.name))),
216
+ child: Opacity (
217
+ opacity: subscription.isMuted ? 0.55 : 1 ,
218
+ child: Row (
219
+ children: [
220
+ Padding (
221
+ padding: const EdgeInsets .symmetric (vertical: 11 ),
222
+ child: Icon (size: 18 , color: swatch.iconOnPlainBackground,
223
+ iconDataForStream (subscription))),
224
+ const SizedBox (width: 5 ),
225
+ Expanded (
226
+ child: Padding (
227
+ padding: const EdgeInsets .symmetric (vertical: 10 ),
228
+ // TODO(design): unclear whether bold text is applied to all subscriptions
229
+ // or only those with unreads:
230
+ // https://github.com/zulip/zulip-flutter/pull/397#pullrequestreview-1742524205
231
+ child: Text (
232
+ style: const TextStyle (
233
+ fontSize: 18 ,
234
+ height: (20 / 18 ),
235
+ // TODO(#95) need dark-theme color
236
+ color: Color (0xFF262626 ),
237
+ ).merge (weightVariableTextStyle (context,
238
+ wght: hasUnreads ? 600 : null )),
239
+ maxLines: 1 ,
240
+ overflow: TextOverflow .ellipsis,
241
+ subscription.name)))])),
242
+ ),
237
243
if (unreadCount > 0 ) ...[
238
244
const SizedBox (width: 12 ),
239
245
// TODO(#384) show @-mention indicator when it applies
0 commit comments