Skip to content

Commit

Permalink
read setting page
Browse files Browse the repository at this point in the history
  • Loading branch information
jiangtian616 committed May 27, 2023
1 parent cc6ef2d commit 5d6c2cc
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 13 deletions.
24 changes: 14 additions & 10 deletions changelog/v7.1.3+128.md
Original file line number Diff line number Diff line change
@@ -1,13 +1,17 @@
1. 新增瀑布流(中)布局
2. 修复设置页尾部文字颜色的bug
3. 修复浏览过的表站画廊被移入里站后显示被删除的bug
4. 优化iOS和macOS上本地画廊的帮助信息
5. 修复在访问被版权保护的画廊时,版权作者显示错误的bug
1. 大幅优化页面渲染性能,缓解UI卡顿
2. 新增瀑布流(中)布局
3. 阅读设置页现在不会应用沉浸模式
4. 修复设置页尾部文字颜色的bug
5. 修复浏览过的表站画廊被移入里站后显示被删除的bug
6. 优化iOS和macOS上本地画廊的帮助信息
7. 修复在访问被版权保护的画廊时,版权作者显示错误的bug

------------------------------------------------------------------------------------------

1. Add a new layout: WaterFallFlow (medium)
2. Fix the bug with font color in setting page
3. Fix the bug where previously viewed gallery is shown as deleted after being moved into the EX site
4. Optimize help information for local gallery on iOS and macOS
5. Fix the bug with information displayed when accessing a gallery that is protected by copyright
1. Optimize the performance of page rendering greatly
2. Add a new layout: WaterFallFlow (medium)
3. The immersive mode is no longer applied in read setting page
4. Fix the bug with font color in setting page
5. Fix the bug where previously viewed gallery is shown as deleted after being moved into the EX site
6. Optimize help information for local gallery on iOS and macOS
7. Fix the bug with information displayed when accessing a gallery that is protected by copyright
8 changes: 7 additions & 1 deletion lib/src/pages/read/read_page.dart
Original file line number Diff line number Diff line change
Expand Up @@ -261,7 +261,13 @@ class ReadPage extends StatelessWidget {
),
ElevatedButton(
child: const Icon(Icons.settings, color: UIConfig.readPageButtonColor),
onPressed: () => toRoute(Routes.settingRead, id: fullScreen)?.then((_) => state.focusNode.requestFocus()),
onPressed: () {
logic.restoreImmersiveMode();
toRoute(Routes.settingRead, id: fullScreen)?.then((_) {
logic.toggleCurrentImmersiveMode();
state.focusNode.requestFocus();
});
},
style: ElevatedButton.styleFrom(
elevation: 0,
padding: const EdgeInsets.all(0),
Expand Down
4 changes: 2 additions & 2 deletions lib/src/pages/read/read_page_logic.dart
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ class ReadPageLogic extends GetxController {
volumeService.cancelListen();
volumeService.setInterceptVolumeEvent(false);

restoreSystemBar();
restoreImmersiveMode();

storageService.write(state.readPageInfo.readProgressRecordStorageKey, state.readPageInfo.currentIndex);

Expand Down Expand Up @@ -261,7 +261,7 @@ class ReadPageLogic extends GetxController {
}
}

void restoreSystemBar() {
void restoreImmersiveMode() {
SystemChrome.setEnabledSystemUIMode(SystemUiMode.edgeToEdge);
}

Expand Down

0 comments on commit 5d6c2cc

Please sign in to comment.