mirror of
https://github.com/HChaZZY/PiliPlus.git
synced 2025-12-06 09:13:48 +08:00
mod: 设置页统一加粗表现
This commit is contained in:
@@ -8,6 +8,7 @@ class SettingPage extends StatelessWidget {
|
|||||||
@override
|
@override
|
||||||
Widget build(BuildContext context) {
|
Widget build(BuildContext context) {
|
||||||
final SettingController settingController = Get.put(SettingController());
|
final SettingController settingController = Get.put(SettingController());
|
||||||
|
final TextStyle titleStyle = Theme.of(context).textTheme.titleMedium!;
|
||||||
final TextStyle subTitleStyle = Theme.of(context)
|
final TextStyle subTitleStyle = Theme.of(context)
|
||||||
.textTheme
|
.textTheme
|
||||||
.labelMedium!
|
.labelMedium!
|
||||||
@@ -27,42 +28,43 @@ class SettingPage extends StatelessWidget {
|
|||||||
onTap: () => Get.toNamed('/privacySetting'),
|
onTap: () => Get.toNamed('/privacySetting'),
|
||||||
dense: false,
|
dense: false,
|
||||||
leading: const Icon(Icons.privacy_tip_outlined),
|
leading: const Icon(Icons.privacy_tip_outlined),
|
||||||
title: const Text('隐私设置'),
|
title: Text('隐私设置', style: titleStyle),
|
||||||
subtitle: Text('黑名单、access_key刷新、无痕模式', style: subTitleStyle),
|
subtitle: Text('黑名单、access_key刷新、无痕模式', style: subTitleStyle),
|
||||||
),
|
),
|
||||||
ListTile(
|
ListTile(
|
||||||
onTap: () => Get.toNamed('/recommendSetting'),
|
onTap: () => Get.toNamed('/recommendSetting'),
|
||||||
dense: false,
|
dense: false,
|
||||||
leading: const Icon(Icons.explore_outlined),
|
leading: const Icon(Icons.explore_outlined),
|
||||||
title: const Text('推荐流设置'),
|
title: Text('推荐流设置', style: titleStyle),
|
||||||
subtitle: Text('推荐来源(web/app)、刷新保留内容、过滤器', style: subTitleStyle),
|
subtitle: Text('推荐来源(web/app)、刷新保留内容、过滤器', style: subTitleStyle),
|
||||||
),
|
),
|
||||||
ListTile(
|
ListTile(
|
||||||
onTap: () => Get.toNamed('/videoSetting'),
|
onTap: () => Get.toNamed('/videoSetting'),
|
||||||
leading: const Icon(Icons.video_settings_outlined),
|
leading: const Icon(Icons.video_settings_outlined),
|
||||||
dense: false,
|
dense: false,
|
||||||
title: const Text('音视频设置'),
|
title: Text('音视频设置', style: titleStyle),
|
||||||
subtitle: Text('画质、音质、解码、缓冲、音频输出等', style: subTitleStyle),
|
subtitle: Text('画质、音质、解码、缓冲、音频输出等', style: subTitleStyle),
|
||||||
),
|
),
|
||||||
ListTile(
|
ListTile(
|
||||||
onTap: () => Get.toNamed('/playSetting'),
|
onTap: () => Get.toNamed('/playSetting'),
|
||||||
leading: const Icon(Icons.touch_app_outlined),
|
leading: const Icon(Icons.touch_app_outlined),
|
||||||
dense: false,
|
dense: false,
|
||||||
title: const Text('播放器设置'),
|
title: Text('播放器设置', style: titleStyle),
|
||||||
subtitle: Text('双击/长按、全屏、后台播放、弹幕、字幕、底部进度条等', style: subTitleStyle),
|
subtitle: Text('双击/长按、全屏、后台播放、弹幕、字幕、底部进度条等', style: subTitleStyle),
|
||||||
),
|
),
|
||||||
ListTile(
|
ListTile(
|
||||||
onTap: () => Get.toNamed('/styleSetting'),
|
onTap: () => Get.toNamed('/styleSetting'),
|
||||||
leading: const Icon(Icons.style_outlined),
|
leading: const Icon(Icons.style_outlined),
|
||||||
dense: false,
|
dense: false,
|
||||||
title: const Text('外观设置'),
|
title: Text('外观设置', style: titleStyle),
|
||||||
subtitle: Text('横屏适配(平板)、侧栏、列宽、首页、动态红点、主题、字号、图片、帧率等', style: subTitleStyle),
|
subtitle: Text('横屏适配(平板)、侧栏、列宽、首页、动态红点、主题、字号、图片、帧率等',
|
||||||
|
style: subTitleStyle),
|
||||||
),
|
),
|
||||||
ListTile(
|
ListTile(
|
||||||
onTap: () => Get.toNamed('/extraSetting'),
|
onTap: () => Get.toNamed('/extraSetting'),
|
||||||
leading: const Icon(Icons.extension_outlined),
|
leading: const Icon(Icons.extension_outlined),
|
||||||
dense: false,
|
dense: false,
|
||||||
title: const Text('其它设置'),
|
title: Text('其它设置', style: titleStyle),
|
||||||
subtitle: Text('震动、搜索、收藏、ai、评论、动态、代理、更新检查等', style: subTitleStyle),
|
subtitle: Text('震动、搜索、收藏、ai、评论、动态、代理、更新检查等', style: subTitleStyle),
|
||||||
),
|
),
|
||||||
Obx(
|
Obx(
|
||||||
@@ -72,7 +74,7 @@ class SettingPage extends StatelessWidget {
|
|||||||
leading: const Icon(Icons.developer_board_outlined),
|
leading: const Icon(Icons.developer_board_outlined),
|
||||||
onTap: () => Get.toNamed('/hiddenSetting'),
|
onTap: () => Get.toNamed('/hiddenSetting'),
|
||||||
dense: false,
|
dense: false,
|
||||||
title: const Text('开发人员选项'),
|
title: Text('开发人员选项', style: titleStyle),
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
@@ -83,7 +85,7 @@ class SettingPage extends StatelessWidget {
|
|||||||
leading: const Icon(Icons.logout_outlined),
|
leading: const Icon(Icons.logout_outlined),
|
||||||
onTap: () => settingController.loginOut(context),
|
onTap: () => settingController.loginOut(context),
|
||||||
dense: false,
|
dense: false,
|
||||||
title: const Text('退出登录'),
|
title: Text('退出登录', style: titleStyle),
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
@@ -91,7 +93,7 @@ class SettingPage extends StatelessWidget {
|
|||||||
leading: const Icon(Icons.info_outline),
|
leading: const Icon(Icons.info_outline),
|
||||||
onTap: () => Get.toNamed('/about'),
|
onTap: () => Get.toNamed('/about'),
|
||||||
dense: false,
|
dense: false,
|
||||||
title: const Text('关于'),
|
title: Text('关于', style: titleStyle),
|
||||||
),
|
),
|
||||||
],
|
],
|
||||||
),
|
),
|
||||||
|
|||||||
Reference in New Issue
Block a user