diff --git a/lib/timetable/page/screenshot.dart b/lib/timetable/page/screenshot.dart index afff8963..a9edebce 100644 --- a/lib/timetable/page/screenshot.dart +++ b/lib/timetable/page/screenshot.dart @@ -2,6 +2,7 @@ import 'package:flutter/material.dart'; import 'package:flutter_platform_widgets/flutter_platform_widgets.dart'; import 'package:go_router/go_router.dart'; import 'package:mimir/design/widget/task_builder.dart'; +import 'package:mimir/timetable/widget/timetable/header.dart'; import 'package:rettulf/rettulf.dart'; import 'package:mimir/settings/settings.dart'; import 'package:mimir/utils/screenshot.dart'; @@ -180,7 +181,10 @@ class TimetableWeeklyScreenshotFilm extends StatelessWidget { Widget buildBody(BuildContext context, TimetableStyleData style) { return [ - buildTitle().text(style: context.textTheme.titleLarge).padSymmetric(v: 10), + Card.filled( + color: getTimetableHeaderColor(context), + child: buildTitle().text(style: context.textTheme.titleLarge).padAll(8), + ).padSymmetric(v: 4), TimetableOneWeek( fullSize: fullSize, timetable: timetable, diff --git a/lib/timetable/widget/timetable/header.dart b/lib/timetable/widget/timetable/header.dart index 0003013c..b793833e 100644 --- a/lib/timetable/widget/timetable/header.dart +++ b/lib/timetable/widget/timetable/header.dart @@ -1,6 +1,7 @@ import 'package:easy_localization/easy_localization.dart'; import 'package:flutter/material.dart'; import 'package:mimir/l10n/time.dart'; +import 'package:mimir/lifecycle.dart'; import 'package:mimir/school/utils.dart'; import 'package:mimir/timetable/p13n/widget/style.dart'; import 'package:rettulf/rettulf.dart'; @@ -162,7 +163,7 @@ class MonthHeaderCellTextBox extends StatelessWidget { @override Widget build(BuildContext context) { - if (context.locale.languageCode == "zh") { + if ($locale.languageCode == "zh") { return CustomHeaderCellTextBox( line1: "$month", line2: "月",