* mod: pgc episode title

* opt: ColorScheme.of

* mod: mpv api version

* opt: log handler

* opt: ext
This commit is contained in:
My-Responsitories
2026-05-15 01:59:54 +00:00
committed by GitHub
parent 24769e144f
commit b33fdf14af
30 changed files with 99 additions and 191 deletions

View File

@@ -45,7 +45,7 @@ abstract final class Update {
SmartDialog.show(
animationType: SmartAnimationType.centerFade_otherSlide,
builder: (context) {
final ThemeData theme = Theme.of(context);
final colorScheme = ColorScheme.of(context);
Widget downloadBtn(String text, {String? ext}) => TextButton(
onPressed: () => onDownload(data, ext: ext),
child: Text(text),
@@ -70,9 +70,7 @@ abstract final class Update {
),
child: Text(
"点此查看完整更新(即commit)内容",
style: TextStyle(
color: theme.colorScheme.primary,
),
style: TextStyle(color: colorScheme.primary),
),
),
],
@@ -88,18 +86,14 @@ abstract final class Update {
},
child: Text(
'不再提醒',
style: TextStyle(
color: theme.colorScheme.outline,
),
style: TextStyle(color: colorScheme.outline),
),
),
TextButton(
onPressed: SmartDialog.dismiss,
child: Text(
'取消',
style: TextStyle(
color: theme.colorScheme.outline,
),
style: TextStyle(color: colorScheme.outline),
),
),
if (Platform.isWindows) ...[