feat: Bunch of small UI improvements for native player

This commit is contained in:
PartyDonut 2025-10-13 20:03:13 +02:00
parent 66ffc8c112
commit edbd8d467c
23 changed files with 329 additions and 327 deletions

View file

@ -47,6 +47,7 @@ class PlayerSettings {
PlayerSettings({
required this.enableTunneling,
required this.skipTypes,
this.themeColor,
required this.skipForward,
required this.skipBackward,
});
@ -55,6 +56,8 @@ class PlayerSettings {
Map<SegmentType, SegmentSkip> skipTypes;
int? themeColor;
int skipForward;
int skipBackward;
@ -63,6 +66,7 @@ class PlayerSettings {
return <Object?>[
enableTunneling,
skipTypes,
themeColor,
skipForward,
skipBackward,
];
@ -76,8 +80,9 @@ class PlayerSettings {
return PlayerSettings(
enableTunneling: result[0]! as bool,
skipTypes: (result[1] as Map<Object?, Object?>?)!.cast<SegmentType, SegmentSkip>(),
skipForward: result[2]! as int,
skipBackward: result[3]! as int,
themeColor: result[2] as int?,
skipForward: result[3]! as int,
skipBackward: result[4]! as int,
);
}