From 6bedd9d25ff755927c54327afbef9eb6e5972108 Mon Sep 17 00:00:00 2001 From: dom Date: Mon, 6 Jul 2026 15:47:52 +0800 Subject: [PATCH] opt ui Signed-off-by: dom --- assets/fonts/custom_icon.ttf | Bin 14704 -> 15008 bytes lib/common/widgets/custom_icon.dart | 27 +++++++++--------- lib/common/widgets/marquee.dart | 3 ++ .../live_room/widgets/header_control.dart | 7 ++--- lib/pages/video/view.dart | 26 ++++------------- lib/pages/video/widgets/header_control.dart | 6 ++-- lib/utils/image_utils.dart | 4 --- 7 files changed, 27 insertions(+), 46 deletions(-) diff --git a/assets/fonts/custom_icon.ttf b/assets/fonts/custom_icon.ttf index d8ad652f79d8f6210a99171535b4ce1d4a160c0f..4d41785795a1dc705d02f0a4ed92719310a07149 100644 GIT binary patch delta 682 zcmXw#OH31C5P)a?f4BQ!yKT4IT`17Etxy7_Vk;3f(WvpFh|zd3!3ss9EffTW6OkC@ zKn%JhUOag4AV+xeTKw?Q>U+MTe>>2n4O}tJSs7=KV{I}a%+c$Wf8x+gH8d+M6 zzL*ojml$!XIOb&7nU2++EWktHJ6;!AmC#iX;2QA)ZR)E>oagMk7^RBKLB8pDx#H1w zhBjW(Ska0qETUSEH0Va`EQ{&(H{Py@j9<)O|V7eq7Nm9vFH|~n$B4k&xVGLpJ=$;U>N2M{B zB^W;;6NC%0)EPDmlW|dzJ@JFRmRonVsL8@Yy4kcWMvT_!(U7@yJ=N}xGMUE*Q~qv$ zTc558ilC@2<8<2FV>HQrw`j5n#34QC?hNZ5xyh%>$b*?&qOHqPTBUZ`b_eWC*w9=) z!K(+uy{(}xQ}Q#8x}b^y&3`f#J-1J{ThwsB;*%7`v}6@3gNZc*W6oywIKy~lAa@u& Z`gEaO%+C)`PtHz^7Dk;rhyHN-u78gRgH-?k delta 375 zcmZ2b`k`ooa{V+02F4x+28OWY+{A(po8KK}U|`B%U|?2Cqa(Dr=Hz`%NefkF34 zMrvY;{_O%ypxOsOY?c8OV7Fv00kZc1u}Vg6Nkzkp|9^qzJpuAta`KZC&;Gcb0@M#O z-z7J(qJYtcaWha}0?1d$OUzAednlD%z`$U<1!$p4L4I+G(3Tf#fM(wSI%3AeJ<9fq z42(dvK+HRrtu&tB<|_j?^9!H|!?WyZK$9W#|G)pUm|rjp0l6FuOdwGp0O?blEXTN! zQGW6T# liveController.title.value, spacing: 30, velocity: 30, - style: const TextStyle( - fontSize: 15, - height: 1, - color: Colors.white, - ), + strutStyle: const StrutStyle(fontSize: 15, leading: 0), + style: const TextStyle(fontSize: 15, height: 1, color: Colors.white), ), ); if (isFullScreen) { diff --git a/lib/pages/video/view.dart b/lib/pages/video/view.dart index 4256fc094..59fec3d20 100644 --- a/lib/pages/video/view.dart +++ b/lib/pages/video/view.dart @@ -605,37 +605,23 @@ class _VideoDetailPageVState extends State } Widget _buildOverlayToolBar(double scrollRatio) { - final Icon icon; - final double spacing; + final IconData icon; final String playStat; if (videoDetailController.playedTime == null) { - spacing = 2; - icon = Icon( - Icons.play_arrow_rounded, - color: themeData.colorScheme.primary, - ); + icon = Icons.play_arrow_rounded; playStat = '立即'; } else if (plPlayerController!.isCompleted) { - spacing = 4; - icon = Icon( - size: 18, - Icons.replay_rounded, - color: themeData.colorScheme.primary, - ); + icon = CustomIcons.replay_rounded; playStat = '重新'; } else { - spacing = 2; - icon = Icon( - Icons.play_arrow_rounded, - color: themeData.colorScheme.primary, - ); + icon = Icons.play_arrow_rounded; playStat = '继续'; } final playBtn = Row( - spacing: spacing, + spacing: 2, mainAxisSize: .min, children: [ - icon, + Icon(icon, color: themeData.colorScheme.primary), Text( '$playStat播放', style: TextStyle(color: themeData.colorScheme.primary), diff --git a/lib/pages/video/widgets/header_control.dart b/lib/pages/video/widgets/header_control.dart index b407fda3b..0585f3ed5 100644 --- a/lib/pages/video/widgets/header_control.dart +++ b/lib/pages/video/widgets/header_control.dart @@ -1693,10 +1693,8 @@ class HeaderControlState extends State title, spacing: 30, velocity: 30, - style: const TextStyle( - color: Colors.white, - fontSize: 16, - ), + strutStyle: const StrutStyle(fontSize: 16, leading: 0), + style: const TextStyle(color: Colors.white, fontSize: 16), provider: effectiveProvider, ); }, diff --git a/lib/utils/image_utils.dart b/lib/utils/image_utils.dart index 41636c47f..8713712a7 100644 --- a/lib/utils/image_utils.dart +++ b/lib/utils/image_utils.dart @@ -167,7 +167,6 @@ abstract final class ImageUtils { final result = await Future.wait(futures, eagerError: true); bool success = true; if (PlatformUtils.isMobile) { - final delList = []; final saveList = []; for (final i in result) { if (i.statusCode == 200) { @@ -183,9 +182,6 @@ abstract final class ImageUtils { } } await SaverGallery.saveFiles(saveList, skipIfExists: false); - for (final i in delList) { - File(i).tryDel(); - } } else { for (final res in result) { if (res.statusCode == 200) {