Kéthetes órarend

This commit is contained in:
2025-10-15 22:12:26 +02:00
committed by 4831c0
parent ae4862a653
commit 7cede065c3
2 changed files with 24 additions and 11 deletions

View File

@@ -35,6 +35,7 @@ const liveActivityEnabled = 1019;
const liveActivityPrivacyEverDeclined = 1020;
const morningNotificationEnabled = 1021;
const morningNotificationTime = 1022;
const ttToastABTimetable = 1023;
bool always() {
return true;
@@ -427,6 +428,13 @@ class SettingsStore {
l10n.tt_settings_toast_lesson_breaks,
true,
always),
"ab_timetable": SettingsBoolean(
ttToastABTimetable,
FirkaIconType.majesticons,
Majesticon.calendarSolid,
l10n.tt_settings_toast_lesson_ab_timetable,
true,
always),
}),
never,
null),

View File

@@ -361,7 +361,10 @@ class _HomeTimetableScreen extends FirkaState<HomeTimetableScreen>
if (lessons != null && tests != null && events != null && dates != null) {
List<Widget> ttWidgets = [];
List<Widget> ttDays = [];
final showABTimetable = widget.data.settings
.group("settings")
.subGroup("timetable_toast")
.boolean("ab_timetable");
// Build navigation icons using original dates
for (var i = 0; i < dates!.length; i++) {
final date = dates![i];
@@ -577,16 +580,18 @@ class _HomeTimetableScreen extends FirkaState<HomeTimetableScreen>
style: appStyle.fonts.B_16R
.apply(color: appStyle.colors.textPrimary)),
SizedBox(width: 4),
Text("",
style: appStyle.fonts.B_16R
.apply(color: appStyle.colors.accent)),
SizedBox(width: 4),
Text(
now!.isAWeek()
? widget.data.l10n.a_week
: widget.data.l10n.b_week,
style: appStyle.fonts.B_16R
.apply(color: appStyle.colors.textPrimary)),
if (showABTimetable) ...[
Text("",
style: appStyle.fonts.B_16R
.apply(color: appStyle.colors.accent)),
SizedBox(width: 4),
Text(
now!.isAWeek()
? widget.data.l10n.a_week
: widget.data.l10n.b_week,
style: appStyle.fonts.B_16R
.apply(color: appStyle.colors.textPrimary)),
]
],
),
onTap: () {