generated from dellevin/template
云备份界面优化
This commit is contained in:
@@ -580,6 +580,7 @@ class _BookDetailPageState extends State<BookDetailPage> {
|
||||
'read' => ('已读', colors.primary, colors.onPrimary),
|
||||
'reading' => ('在读', colors.outlineVariant, colors.onSurface.withValues(alpha: 0.6)),
|
||||
'want_to_read' => ('想读', colors.surfaceContainerHighest, colors.onSurface.withValues(alpha: 0.4)),
|
||||
'abandoned' => ('弃读', colors.error.withValues(alpha: 0.15), colors.error),
|
||||
_ => ('', colors.surfaceContainerHighest, colors.onSurface.withValues(alpha: 0.3)),
|
||||
};
|
||||
if (label.isEmpty) return const SizedBox.shrink();
|
||||
@@ -702,6 +703,11 @@ class _BookDetailPageState extends State<BookDetailPage> {
|
||||
bgColor = colors.surfaceContainerHighest;
|
||||
textColor = colors.onSurface.withValues(alpha: 0.4);
|
||||
break;
|
||||
case 'abandoned':
|
||||
label = '弃读';
|
||||
bgColor = colors.error.withValues(alpha: 0.15);
|
||||
textColor = colors.error;
|
||||
break;
|
||||
default:
|
||||
label = '未知';
|
||||
bgColor = colors.outlineVariant;
|
||||
|
||||
Reference in New Issue
Block a user