mirror of
https://github.com/HChaZZY/PiliPlus.git
synced 2025-12-06 09:13:48 +08:00
@@ -198,10 +198,7 @@ class _UpPanelState extends State<UpPanel> {
|
||||
isLabelVisible: data.type == 'live' ||
|
||||
(data.type == 'up' && (data.hasUpdate ?? false)),
|
||||
backgroundColor: data.type == 'live'
|
||||
? Theme.of(context)
|
||||
.colorScheme
|
||||
.secondaryContainer
|
||||
.withOpacity(0.7)
|
||||
? Theme.of(context).colorScheme.secondaryContainer
|
||||
: Theme.of(context).colorScheme.primary,
|
||||
),
|
||||
),
|
||||
|
||||
@@ -103,11 +103,6 @@ class _WhisperPageState extends State<WhisperPage> {
|
||||
isLabelVisible: _whisperController
|
||||
.msgFeedTop[idx]['value'] >
|
||||
0,
|
||||
backgroundColor:
|
||||
Theme.of(context).colorScheme.primary,
|
||||
textColor: Theme.of(context)
|
||||
.colorScheme
|
||||
.onInverseSurface,
|
||||
label: Text(
|
||||
" ${_whisperController.msgFeedTop[idx]['value']} "),
|
||||
alignment: Alignment.topRight,
|
||||
@@ -267,11 +262,6 @@ class _WhisperPageState extends State<WhisperPage> {
|
||||
leading: Badge(
|
||||
isLabelVisible:
|
||||
sessionList[i].unreadCount > 0,
|
||||
// backgroundColor:
|
||||
// Theme.of(context).colorScheme.primary,
|
||||
// textColor: Theme.of(context)
|
||||
// .colorScheme
|
||||
// .onInverseSurface,
|
||||
label: Text(
|
||||
" ${sessionList[i].unreadCount.toString()} "),
|
||||
alignment: Alignment.topRight,
|
||||
|
||||
Reference in New Issue
Block a user