mirror of
https://github.com/bggRGjQaUbCoE/PiliPlus.git
synced 2026-06-01 00:28:18 +08:00
update pref default value
Signed-off-by: dom <githubaccount56556@proton.me>
This commit is contained in:
@@ -154,13 +154,13 @@ List<SettingsModel> get extraSettings => [
|
|||||||
title: '横屏分P/合集列表显示在Tab栏',
|
title: '横屏分P/合集列表显示在Tab栏',
|
||||||
leading: const Icon(Icons.format_list_numbered_rtl_sharp),
|
leading: const Icon(Icons.format_list_numbered_rtl_sharp),
|
||||||
setKey: SettingBoxKey.horizontalSeasonPanel,
|
setKey: SettingBoxKey.horizontalSeasonPanel,
|
||||||
defaultVal: PlatformUtils.isDesktop,
|
defaultVal: Pref.horizontalScreen,
|
||||||
),
|
),
|
||||||
SwitchModel(
|
SwitchModel(
|
||||||
title: '横屏播放页在侧栏打开UP主页',
|
title: '横屏播放页在侧栏打开UP主页',
|
||||||
leading: const Icon(Icons.account_circle_outlined),
|
leading: const Icon(Icons.account_circle_outlined),
|
||||||
setKey: SettingBoxKey.horizontalMemberPage,
|
setKey: SettingBoxKey.horizontalMemberPage,
|
||||||
defaultVal: PlatformUtils.isDesktop,
|
defaultVal: Pref.horizontalScreen,
|
||||||
),
|
),
|
||||||
SwitchModel(
|
SwitchModel(
|
||||||
title: '横屏在侧栏打开图片预览',
|
title: '横屏在侧栏打开图片预览',
|
||||||
|
|||||||
@@ -153,12 +153,12 @@ List<SettingsModel> get styleSettings => [
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
),
|
),
|
||||||
const SwitchModel(
|
SwitchModel(
|
||||||
title: '动态页启用瀑布流',
|
title: '动态页启用瀑布流',
|
||||||
subtitle: '关闭会显示为单列',
|
subtitle: '关闭会显示为单列',
|
||||||
leading: Icon(Icons.view_array_outlined),
|
leading: const Icon(Icons.view_array_outlined),
|
||||||
setKey: SettingBoxKey.dynamicsWaterfallFlow,
|
setKey: SettingBoxKey.dynamicsWaterfallFlow,
|
||||||
defaultVal: true,
|
defaultVal: Pref.horizontalScreen,
|
||||||
needReboot: true,
|
needReboot: true,
|
||||||
),
|
),
|
||||||
NormalModel(
|
NormalModel(
|
||||||
|
|||||||
@@ -384,12 +384,12 @@ abstract final class Pref {
|
|||||||
|
|
||||||
static bool get horizontalSeasonPanel => _setting.get(
|
static bool get horizontalSeasonPanel => _setting.get(
|
||||||
SettingBoxKey.horizontalSeasonPanel,
|
SettingBoxKey.horizontalSeasonPanel,
|
||||||
defaultValue: PlatformUtils.isDesktop,
|
defaultValue: horizontalScreen,
|
||||||
);
|
);
|
||||||
|
|
||||||
static bool get horizontalMemberPage => _setting.get(
|
static bool get horizontalMemberPage => _setting.get(
|
||||||
SettingBoxKey.horizontalMemberPage,
|
SettingBoxKey.horizontalMemberPage,
|
||||||
defaultValue: PlatformUtils.isDesktop,
|
defaultValue: horizontalScreen,
|
||||||
);
|
);
|
||||||
|
|
||||||
static int? get replyLengthLimit {
|
static int? get replyLengthLimit {
|
||||||
@@ -664,8 +664,10 @@ abstract final class Pref {
|
|||||||
static double get uiScale =>
|
static double get uiScale =>
|
||||||
_setting.get(SettingBoxKey.uiScale, defaultValue: 1.0);
|
_setting.get(SettingBoxKey.uiScale, defaultValue: 1.0);
|
||||||
|
|
||||||
static bool get dynamicsWaterfallFlow =>
|
static bool get dynamicsWaterfallFlow => _setting.get(
|
||||||
_setting.get(SettingBoxKey.dynamicsWaterfallFlow, defaultValue: true);
|
SettingBoxKey.dynamicsWaterfallFlow,
|
||||||
|
defaultValue: horizontalScreen,
|
||||||
|
);
|
||||||
|
|
||||||
static bool get hideTopBar => _setting.get(
|
static bool get hideTopBar => _setting.get(
|
||||||
SettingBoxKey.hideTopBar,
|
SettingBoxKey.hideTopBar,
|
||||||
|
|||||||
Reference in New Issue
Block a user