From d68cec77ecfe156952a9183509190b718fbefdca Mon Sep 17 00:00:00 2001 From: orz12 Date: Tue, 23 Jan 2024 15:42:20 +0800 Subject: [PATCH] =?UTF-8?q?mod:=20=E5=9B=BE=E6=A0=87=E7=BB=9F=E4=B8=80?= =?UTF-8?q?=EF=BC=8C=E6=8F=90=E7=A4=BA=E8=AF=8D=E8=B0=83=E6=95=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lib/pages/mine/controller.dart | 10 ++++++---- lib/pages/mine/view.dart | 31 ++++++++++++++++++------------- 2 files changed, 24 insertions(+), 17 deletions(-) diff --git a/lib/pages/mine/controller.dart b/lib/pages/mine/controller.dart index 41016ceb..ec92800e 100644 --- a/lib/pages/mine/controller.dart +++ b/lib/pages/mine/controller.dart @@ -92,11 +92,13 @@ class MineController extends GetxController { static onChangeAnonymity() { anonymity = !anonymity; SmartDialog.showToast(anonymity - ? '已进入全局无痕模式\n\n' - '将模拟未登录用户搜索、观看视频或直播,不产生查询与播放记录\n\n' + ? '\n【已进入无痕模式】\n\n' + '搜索、观看视频或直播均不携带Cookie与CSRF\n' + '不产生查询或播放记录\n' '点赞等其它操作不受影响\n\n' - '仅本次启动有效,可随时退出' - : '已退出无痕模式'); + '仅本次启动有效,可随时退出\n\n' + '*可在隐私设置了解更多\n' + : '【已退出无痕模式】'); } onChangeTheme() { diff --git a/lib/pages/mine/view.dart b/lib/pages/mine/view.dart index 6bf9df5c..81ef72c4 100644 --- a/lib/pages/mine/view.dart +++ b/lib/pages/mine/view.dart @@ -44,14 +44,19 @@ class _MinePageState extends State { toolbarHeight: kTextTabBarHeight + 20, backgroundColor: Colors.transparent, centerTitle: false, - title: const Text( - 'PLPL', - style: TextStyle( - height: 2.8, - fontSize: 17, - fontWeight: FontWeight.bold, - fontFamily: 'Jura-Bold', - ), + title: //logo + Row( + children: [ + Image.asset( + 'assets/images/logo/logo_android_2.png', + width: 50, + ), + const SizedBox(width: 5), + Text( + 'PiliPala', + style: Theme.of(context).textTheme.titleMedium, + ), + ], ), actions: [ IconButton( @@ -61,8 +66,8 @@ class _MinePageState extends State { }, icon: Icon( MineController.anonymity - ? Icons.visibility_off_outlined - : Icons.visibility_outlined, + ? Icons.visibility_off + : Icons.visibility, size: 22, ), ), @@ -70,15 +75,15 @@ class _MinePageState extends State { onPressed: () => mineController.onChangeTheme(), icon: Icon( mineController.themeType.value == ThemeType.dark - ? CupertinoIcons.sun_max - : CupertinoIcons.moon, + ? Icons.light_mode + : Icons.mode_night, size: 22, ), ), IconButton( onPressed: () => Get.toNamed('/setting'), icon: const Icon( - CupertinoIcons.slider_horizontal_3, + Icons.settings, ), ), const SizedBox(width: 10),