feat: add course bar length setting and clear blue glass Dock

This commit is contained in:
Codex
2026-10-13 12:51:27 +08:00
parent 8403be05da
commit 9193fd8e43
11 changed files with 444 additions and 138 deletions
+7
View File
@@ -11,7 +11,12 @@ class AppSettings {
this.singleColorArgb = 0xFF348F91,
this.calendarEnabled = false,
this.calendarId,
this.courseHeightScale = defaultCourseHeightScale,
});
static const defaultCourseHeightScale = 1.25;
static const minCourseHeightScale = 0.8;
static const maxCourseHeightScale = 2.0;
final double courseHeightScale;
final Semester? semester;
final bool remindersEnabled, calendarEnabled;
final int reminderMinutes, singleColorArgb;
@@ -25,6 +30,7 @@ class AppSettings {
int? singleColorArgb,
bool? calendarEnabled,
String? calendarId,
double? courseHeightScale,
}) => AppSettings(
semester: semester ?? this.semester,
remindersEnabled: remindersEnabled ?? this.remindersEnabled,
@@ -33,5 +39,6 @@ class AppSettings {
singleColorArgb: singleColorArgb ?? this.singleColorArgb,
calendarEnabled: calendarEnabled ?? this.calendarEnabled,
calendarId: calendarId ?? this.calendarId,
courseHeightScale: courseHeightScale ?? this.courseHeightScale,
);
}