优化调整“我的”界面

This commit is contained in:
DelLevin-Home
2026-08-09 22:42:55 +08:00
parent 9cc492782e
commit 65231e204f
13 changed files with 682 additions and 292 deletions

View File

@@ -193,10 +193,18 @@ class UserPrefs {
int get movieDisplayMode => prefs.getInt('movieDisplayMode') ?? 0;
Future<bool> setMovieDisplayMode(int value) => prefs.setInt('movieDisplayMode', value);
/// 影视状态栏样式 (0: 胶囊滑块, 1: 下划线, 2: 芯片组, 3: 下拉)
int get movieStatusBarStyle => prefs.getInt('movieStatusBarStyle') ?? 0;
Future<bool> setMovieStatusBarStyle(int value) => prefs.setInt('movieStatusBarStyle', value);
/// 阅读布局样式 (0: 封面网格, 1: 列表)
int get bookLayoutStyle => prefs.getInt('bookLayoutStyle') ?? 0;
Future<bool> setBookLayoutStyle(int value) => prefs.setInt('bookLayoutStyle', value);
/// 书籍状态栏样式 (0: 胶囊滑块, 1: 下划线, 2: 芯片组, 3: 下拉)
int get bookStatusBarStyle => prefs.getInt('bookStatusBarStyle') ?? 0;
Future<bool> setBookStatusBarStyle(int value) => prefs.setInt('bookStatusBarStyle', value);
/// 影视墙模式(不显示分类,按创建时间排序)
bool get movieWallMode => prefs.getBool('movieWallMode') ?? false;
Future<bool> setMovieWallMode(bool value) => prefs.setBool('movieWallMode', value);
@@ -213,6 +221,10 @@ class UserPrefs {
int get gameLayoutStyle => prefs.getInt('gameLayoutStyle') ?? 0;
Future<bool> setGameLayoutStyle(int value) => prefs.setInt('gameLayoutStyle', value);
/// 游戏状态栏样式 (0: 胶囊滑块, 1: 下划线, 2: 芯片组, 3: 下拉)
int get gameStatusBarStyle => prefs.getInt('gameStatusBarStyle') ?? 0;
Future<bool> setGameStatusBarStyle(int value) => prefs.setInt('gameStatusBarStyle', value);
/// 游戏墙模式
bool get gameWallMode => prefs.getBool('gameWallMode') ?? false;
Future<bool> setGameWallMode(bool value) => prefs.setBool('gameWallMode', value);