diff --git a/lib/pages/setting/models/extra_settings.dart b/lib/pages/setting/models/extra_settings.dart index 51ffd6e3d..d49caa3dd 100644 --- a/lib/pages/setting/models/extra_settings.dart +++ b/lib/pages/setting/models/extra_settings.dart @@ -154,13 +154,13 @@ List get extraSettings => [ title: '横屏分P/合集列表显示在Tab栏', leading: const Icon(Icons.format_list_numbered_rtl_sharp), setKey: SettingBoxKey.horizontalSeasonPanel, - defaultVal: PlatformUtils.isDesktop, + defaultVal: Pref.horizontalScreen, ), SwitchModel( title: '横屏播放页在侧栏打开UP主页', leading: const Icon(Icons.account_circle_outlined), setKey: SettingBoxKey.horizontalMemberPage, - defaultVal: PlatformUtils.isDesktop, + defaultVal: Pref.horizontalScreen, ), SwitchModel( title: '横屏在侧栏打开图片预览', diff --git a/lib/pages/setting/models/style_settings.dart b/lib/pages/setting/models/style_settings.dart index 2c683c44a..45bdf2826 100644 --- a/lib/pages/setting/models/style_settings.dart +++ b/lib/pages/setting/models/style_settings.dart @@ -153,12 +153,12 @@ List get styleSettings => [ } }, ), - const SwitchModel( + SwitchModel( title: '动态页启用瀑布流', subtitle: '关闭会显示为单列', - leading: Icon(Icons.view_array_outlined), + leading: const Icon(Icons.view_array_outlined), setKey: SettingBoxKey.dynamicsWaterfallFlow, - defaultVal: true, + defaultVal: Pref.horizontalScreen, needReboot: true, ), NormalModel( diff --git a/lib/utils/storage_pref.dart b/lib/utils/storage_pref.dart index 4c9994ec1..3328ef7d1 100644 --- a/lib/utils/storage_pref.dart +++ b/lib/utils/storage_pref.dart @@ -384,12 +384,12 @@ abstract final class Pref { static bool get horizontalSeasonPanel => _setting.get( SettingBoxKey.horizontalSeasonPanel, - defaultValue: PlatformUtils.isDesktop, + defaultValue: horizontalScreen, ); static bool get horizontalMemberPage => _setting.get( SettingBoxKey.horizontalMemberPage, - defaultValue: PlatformUtils.isDesktop, + defaultValue: horizontalScreen, ); static int? get replyLengthLimit { @@ -664,8 +664,10 @@ abstract final class Pref { static double get uiScale => _setting.get(SettingBoxKey.uiScale, defaultValue: 1.0); - static bool get dynamicsWaterfallFlow => - _setting.get(SettingBoxKey.dynamicsWaterfallFlow, defaultValue: true); + static bool get dynamicsWaterfallFlow => _setting.get( + SettingBoxKey.dynamicsWaterfallFlow, + defaultValue: horizontalScreen, + ); static bool get hideTopBar => _setting.get( SettingBoxKey.hideTopBar,