mirror of
https://github.com/bggRGjQaUbCoE/PiliPlus.git
synced 2026-07-03 15:50:18 +08:00
@@ -216,8 +216,8 @@ abstract final class SettingBoxKey {
|
||||
dynamicsShowAllFollowedUp = 'dynamicsShowAllFollowedUp',
|
||||
useSideBar = 'useSideBar',
|
||||
enableMYBar = 'enableMYBar',
|
||||
hideSearchBar = 'hideSearchBar',
|
||||
hideTabBar = 'hideTabBar',
|
||||
hideTopBar = 'hideSearchBar',
|
||||
hideBottomBar = 'hideTabBar',
|
||||
scrollThreshold = 'scrollThreshold',
|
||||
enableScrollThreshold = 'enableScrollThreshold',
|
||||
tabBarSort = 'tabBarSort',
|
||||
|
||||
@@ -655,8 +655,15 @@ abstract final class Pref {
|
||||
static bool get dynamicsWaterfallFlow =>
|
||||
_setting.get(SettingBoxKey.dynamicsWaterfallFlow, defaultValue: true);
|
||||
|
||||
static bool get hideSearchBar =>
|
||||
_setting.get(SettingBoxKey.hideSearchBar, defaultValue: true);
|
||||
static bool get hideTopBar => _setting.get(
|
||||
SettingBoxKey.hideTopBar,
|
||||
defaultValue: PlatformUtils.isMobile,
|
||||
);
|
||||
|
||||
static bool get hideBottomBar => _setting.get(
|
||||
SettingBoxKey.hideBottomBar,
|
||||
defaultValue: PlatformUtils.isMobile,
|
||||
);
|
||||
|
||||
static bool get enableScrollThreshold =>
|
||||
_setting.get(SettingBoxKey.enableScrollThreshold, defaultValue: false);
|
||||
@@ -709,9 +716,6 @@ abstract final class Pref {
|
||||
defaultValue: ReplySortType.hot.index,
|
||||
)];
|
||||
|
||||
static bool get hideTabBar =>
|
||||
_setting.get(SettingBoxKey.hideTabBar, defaultValue: true);
|
||||
|
||||
static DynamicBadgeMode get dynamicBadgeMode =>
|
||||
DynamicBadgeMode.values[_setting.get(
|
||||
SettingBoxKey.dynamicBadgeMode,
|
||||
|
||||
Reference in New Issue
Block a user