mirror of
https://github.com/HChaZZY/PiliPlus.git
synced 2025-12-06 09:13:48 +08:00
mod: default values
This commit is contained in:
@@ -32,7 +32,7 @@ class _ExtraSettingState extends State<ExtraSetting> {
|
||||
super.initState();
|
||||
// 默认优先显示最新评论
|
||||
defaultReplySort =
|
||||
setting.get(SettingBoxKey.replySortType, defaultValue: 0);
|
||||
setting.get(SettingBoxKey.replySortType, defaultValue: 1);
|
||||
if (defaultReplySort == 2) {
|
||||
setting.put(SettingBoxKey.replySortType, 0);
|
||||
defaultReplySort = 0;
|
||||
|
||||
@@ -67,7 +67,7 @@ class _PlaySettingState extends State<PlaySetting> {
|
||||
subTitle: '是否展示弹幕',
|
||||
leading: Icon(Icons.comment_outlined),
|
||||
setKey: SettingBoxKey.enableShowDanmaku,
|
||||
defaultVal: false,
|
||||
defaultVal: true,
|
||||
),
|
||||
ListTile(
|
||||
dense: false,
|
||||
@@ -81,7 +81,7 @@ class _PlaySettingState extends State<PlaySetting> {
|
||||
subTitle: '进入详情页自动播放',
|
||||
leading: Icon(Icons.motion_photos_auto_outlined),
|
||||
setKey: SettingBoxKey.autoPlayEnable,
|
||||
defaultVal: true,
|
||||
defaultVal: false,
|
||||
),
|
||||
const SetSwitchItem(
|
||||
title: '双击快退/快进',
|
||||
@@ -144,8 +144,7 @@ class _PlaySettingState extends State<PlaySetting> {
|
||||
subTitle: '开启后延长至30秒,便于屏幕阅读器滑动切换控件焦点',
|
||||
leading: Icon(Icons.timer_outlined),
|
||||
setKey: SettingBoxKey.enableLongShowControl,
|
||||
defaultVal: false
|
||||
),
|
||||
defaultVal: false),
|
||||
const SetSwitchItem(
|
||||
title: '全向旋转',
|
||||
subTitle: '小屏可受重力转为临时全屏,若系统锁定旋转仍触发请关闭,关闭会影响横屏适配',
|
||||
@@ -170,7 +169,7 @@ class _PlaySettingState extends State<PlaySetting> {
|
||||
callFn: (val) {
|
||||
if (val &&
|
||||
!setting.get(SettingBoxKey.enableBackgroundPlay,
|
||||
defaultValue: true)) {
|
||||
defaultValue: false)) {
|
||||
SmartDialog.showToast('建议开启后台音频服务');
|
||||
}
|
||||
}),
|
||||
@@ -194,7 +193,7 @@ class _PlaySettingState extends State<PlaySetting> {
|
||||
subTitle: '展示同时在看人数',
|
||||
leading: Icon(Icons.people_outlined),
|
||||
setKey: SettingBoxKey.enableOnlineTotal,
|
||||
defaultVal: false,
|
||||
defaultVal: true,
|
||||
),
|
||||
ListTile(
|
||||
dense: false,
|
||||
@@ -255,7 +254,7 @@ class _PlaySettingState extends State<PlaySetting> {
|
||||
subTitle: '避免画中画没有播放暂停功能',
|
||||
leading: Icon(Icons.volume_up_outlined),
|
||||
setKey: SettingBoxKey.enableBackgroundPlay,
|
||||
defaultVal: true,
|
||||
defaultVal: false,
|
||||
),
|
||||
],
|
||||
),
|
||||
|
||||
@@ -101,7 +101,7 @@ class _StyleSettingState extends State<StyleSetting> {
|
||||
title: '首页背景渐变',
|
||||
setKey: SettingBoxKey.enableGradientBg,
|
||||
leading: Icon(Icons.gradient_outlined),
|
||||
defaultVal: true,
|
||||
defaultVal: false,
|
||||
needReboot: true,
|
||||
),
|
||||
ListTile(
|
||||
@@ -206,7 +206,7 @@ class _StyleSettingState extends State<StyleSetting> {
|
||||
subTitle: '首页列表滑动时,收起顶栏',
|
||||
leading: Icon(Icons.vertical_align_top_outlined),
|
||||
setKey: SettingBoxKey.hideSearchBar,
|
||||
defaultVal: false,
|
||||
defaultVal: true,
|
||||
needReboot: true,
|
||||
),
|
||||
const SetSwitchItem(
|
||||
@@ -214,7 +214,7 @@ class _StyleSettingState extends State<StyleSetting> {
|
||||
subTitle: '首页列表滑动时,收起底栏',
|
||||
leading: Icon(Icons.vertical_align_bottom_outlined),
|
||||
setKey: SettingBoxKey.hideTabBar,
|
||||
defaultVal: false,
|
||||
defaultVal: true,
|
||||
needReboot: true,
|
||||
),
|
||||
ListTile(
|
||||
|
||||
Reference in New Issue
Block a user