基于自定义规则的番剧采集APP,支持流媒体在线观看,支持弹幕,支持实时超分辨率。
fix status bar icon color (#240)
Predidit800fdfd5b6f7
diff --git a/lib/bean/appbar/sys_app_bar.dart b/lib/bean/appbar/sys_app_bar.dartindex 2c56b1d2..240c21f4 100644--- a/lib/bean/appbar/sys_app_bar.dart+++ b/lib/bean/appbar/sys_app_bar.dart@@ -3,9 +3,9 @@ import 'package:flutter_smart_dialog/flutter_smart_dialog.dart';import 'package:kazumi/utils/utils.dart';import 'package:flutter/material.dart';import 'package:window_manager/window_manager.dart';+import 'package:flutter/services.dart';class SysAppBar extends StatelessWidget implements PreferredSizeWidget {-final double? toolbarHeight;final Widget? title;@@ -13,7 +13,7 @@ class SysAppBar extends StatelessWidget implements PreferredSizeWidget {final Color? backgroundColor;final double? elevation;-+final ShapeBorder? shape;final List<Widget>? actions;@@ -22,32 +22,38 @@ class SysAppBar extends StatelessWidget implements PreferredSizeWidget {final PreferredSizeWidget? bottom;- const SysAppBar({super.key, this.toolbarHeight, this.title, this.backgroundColor, this.elevation, this.shape, this.actions, this.leading, this.bottom});+ const SysAppBar(+ {super.key,+ this.toolbarHeight,+ this.title,+ this.backgroundColor,+ this.elevation,+ this.shape,+ this.actions,+ this.leading,+ this.bottom});void _handleCloseEvent() {SmartDialog.show(- useAnimation: false,- builder: (context) {- return AlertDialog(- title: const Text('退出确认'),- content: const Text('您想要退出 Kazumi 吗?'),- actions: [- TextButton(- onPressed: () => exit(0),- child: const Text('退出 Kazumi')),- TextButton(- onPressed: () {- SmartDialog.dismiss();- windowManager.hide();- },- child: const Text('最小化至托盘')),- const TextButton(- onPressed: SmartDialog.dismiss,- child: Text('取消')),- ],- );- }- );+ useAnimation: false,+ builder: (context) {+ return AlertDialog(+ title: const Text('退出确认'),+ content: const Text('您想要退出 Kazumi 吗?'),+ actions: [+ TextButton(+ onPressed: () => exit(0), child: const Text('退出 Kazumi')),+ TextButton(+ onPressed: () {+ SmartDialog.dismiss();+ windowManager.hide();+ },+ child: const Text('最小化至托盘')),+ const TextButton(+ onPressed: SmartDialog.dismiss, child: Text('取消')),+ ],+ );+ });}@override@@ -62,18 +68,28 @@ class SysAppBar extends StatelessWidget implements PreferredSizeWidget {}return GestureDetector(// behavior: HitTestBehavior.translucent,- onPanStart: (_) => (Utils.isDesktop()) ? windowManager.startDragging() : null,+ onPanStart: (_) =>+ (Utils.isDesktop()) ? windowManager.startDragging() : null,child: AppBar(- toolbarHeight: preferredSize.height,- scrolledUnderElevation: 0.0,- title: title,- actions: acs,- leading: leading,- backgroundColor: backgroundColor,- elevation: elevation,- shape: shape,- bottom: bottom,- ),+ toolbarHeight: preferredSize.height,+ scrolledUnderElevation: 0.0,+ title: title,+ actions: acs,+ leading: leading,+ backgroundColor: backgroundColor,+ elevation: elevation,+ shape: shape,+ bottom: bottom,+ systemOverlayStyle: SystemUiOverlayStyle(+ statusBarColor: Colors.transparent,+ statusBarIconBrightness: Theme.of(context).brightness ==+ Brightness.light+ ? Brightness.dark+ : Brightness.light,+ systemNavigationBarColor: Colors.transparent,+ systemNavigationBarDividerColor: Colors.transparent,+ )+ ),);}diff --git a/lib/pages/info/info_page.dart b/lib/pages/info/info_page.dartindex c449f92b..5a31dbc3 100644--- a/lib/pages/info/info_page.dart+++ b/lib/pages/info/info_page.dart@@ -64,21 +64,6 @@ class _InfoPageState extends State<InfoPage>}}- bool get isLightTheme {- final currentMode = AdaptiveTheme.of(context).mode;- if (currentMode == AdaptiveThemeMode.light) {- return true;- }-- if (currentMode == AdaptiveThemeMode.system) {- final brightness = MediaQuery.of(context).platformBrightness;- if (brightness == Brightness.light) {- return true;- }- }- return false;- }-@overrideWidget build(BuildContext context) {return PopScope(@@ -88,7 +73,9 @@ class _InfoPageState extends State<InfoPage>Positioned.fill(child: IgnorePointer(child: Container(- color: isLightTheme ? Colors.white : Colors.black,+ color: Theme.of(context).brightness == Brightness.light+ ? Colors.white+ : Colors.black,child: Opacity(opacity: 0.2,child: LayoutBuilder(builder: (context, boxConstraints) {