Commit Graph
109 Commits
Author SHA1 Message Date
fansan 4f25e6d73b fix:三星Spen失效的问题,并添加上一章和下一章的操作选项 (#1583) 2026-06-29 02:26:17 +08:00
HapeLee c318e259c7 feat: 完善 AI 对话界面与交互 2026-06-28 01:46:36 +08:00
HapeLee 3833ca1f7c fix:修复词典查询弹窗问题 2026-06-13 12:38:55 +08:00
HapeLee 35875f7dd3 fix: 补全修复阅读界面缺失的一些功能和同步问题 2026-06-12 03:26:36 +08:00
Kudomaga 4c088448c3 feat(reader): 船新的基于 Compose 实现的阅读菜单界面与各项优化
* 初始版本

* refactor(reader): MVI architecture + menu settings overhaul

MVI/UDF Architecture:
- Add ReadBookContract: UiState, Intent, Effect, Sheet, Dialog, ConfigUpdate
- Refactor ReadBookViewModel with onIntent() entry point
- Add ReadBookScreen/ReadBookRouteScreen stateless composables
- Add ReadBookColorTheme for reader-specific theme override
- Add ReadConfigContract for read config screen MVI

ReadStyleSheet Decomposition:
- Split ReadStyleSheet into SystemMenuPage, TextTitleSheet,
  HeaderFooterPage, TitleBarIconSheet, GlobalThemePage
- Each page owns its tab state, color picker, and config mutations

Data Layer (DataStore-backed Repositories):
- Add ReadSettingsRepository with ReadPreferences flow
- Add MangaSettingsRepository with MangaPreferences flow
- Add ReadAloudSettingsRepository for TTS settings
- Add ReadStyleRepository (file I/O for read style configs)
- Add ReadBookStyleConfigRepository (repository boundary)
- Add ReadStyleResolver for background/theme resolution
- Remove legacy ReadTipConfig (merged into ReadBookConfig)
- Register all new repositories in Koin appModule

Menu Settings:
- Add unified border settings (width, color, colorNight) for
  both top and bottom bars with drawWithCache + drawPath
- Add ColorModePill with light/dark toggle and '+' icon for
  no-color state in TinySettingItems
- Add TinyClearColorModeSettingItem for border color config
- Add menu color customization (bg, accent, container) with
  day/night variants and seed color mode
- Add bottom bar layout settings (corner radius, margins)
- Add custom icon support for menu buttons and title bar icons
- Add title bar icon position setting

Config Pipeline:
- Consolidate all ReadBookConfig mutations into typed ConfigUpdate
  sealed interface with legacy UP_CONFIG code mapping
- Add resolvedMenuBorderColor (auto day/night switching)
- Add 20 new PreferKey constants for menu settings
- Update manga config dialogs to use MangaSettingsRepository
- Update ReadConfigViewModel with DataStore flow observation

* feat(reader): add liquid glass menu bars and floating bottom bar

- Integrate com.kyant.backdrop 2.0.0 for liquid glass blur/vibrancy
  effects on reading menu top bar and bottom bar (Android 13+)
- Add floating bottom bar toggle replacing manual margin sliders
- Extract ReadMenuConfig data class for proper MVI state management
  of all menu configuration properties
- Enable edge-to-edge in BaseComposeActivity, remove manual
  navigation bar color management across base classes and controller
- Fix fullScreen() to use setDecorFitsSystemWindows(false)

* Refactor series button rendering

* 实现液态玻璃

* 优化液态玻璃

* @
fix(reader): fix MVI behavior issues and improve sheet lifecycle

Behavior fixes:
- Fix AddSourceAsNewBook empty implementation — wire intent to addToBookshelf
- Fix content edit loading stuck on null chapter/content — use onFinally
- Fix cannot save empty content — remove isEmpty guard, use title as loaded proxy
- Fix bookmark not opening — use openReadMenuRoute instead of dead activeSheet path
- Fix chapter source sheet persists — animate dismiss via show param before removal
- Fix chapter source reopens to TOC — reset showToc in initData
- Fix SaveChapterContent saves to wrong chapter — carry chapterIndex in intent
- Fix chapter source search runs after dismiss — cancel searchJob in dispose
- Fix "go to background" button in ReadAloud — use CloseReadBook intent

Architecture improvements:
- ReadMenuConfig uses ImmutableMap for Compose stability
- Fix stale remember in ReadBookMenuBar title bar icons
- Move icon picker file IO from composable to ViewModel
- Route launcher results through MVI intents instead of direct calls
- Fix ChangeChapterSource effect collector key — use viewModel not Unit
- Make ReadAloudConfigSheet UDF-compliant — stateless with intents
- Remove main menu buttons from AutoRead and ReadAloud sheets
@

* @
refactor(reader): use Material Icons and ConfirmDismissButtonsRow

- TitleBarIconSheet: replace drawable resources with Icons library, use
  ConfirmDismissButtonsRow for save/cancel buttons
- SystemMenuPage MenuCustomIconSheet: same icon and button treatment
- ReadBookMenuBar: update ToolButtonDef/TitleBarIconDef to use ImageVector
  instead of drawable resource Int
- Use AutoMirrored variants for List and HelpOutline icons
@

* feat: 优化液态玻璃

* feat: 优化液态玻璃

* fix(AppLogSheet): 从本地文件读取日志,替代内存列表

* @
feat(reader): highlight rules, theme refactor & MVI improvements

- Add HighlightRule entity, DAO, and config/edit sheets
- Add ThemeConfigStore, remove OldThemeConfig
- Refactor ReadBookContract/ViewModel/Screen for deeper MVI
- Add CharStyle for text rendering, refactor TextLine/TextChapterLayout
- Add SectionTitle, TinySettingItems UI components
- Remove legacy XML layouts (regex_color_config)
- Update database schema to v90
- Various sheet and widget refinements
@

* @
fix: address PR review feedback

- ReadStyleRepository: fix copy-paste bug (bgStrNight→bgStr) + add bgTypeNight import
- BgImageSpan: replace Bitmap.createScaledBitmap with BitmapShader matrix scaling
- HighlightRule: use UUID.randomUUID() instead of System.currentTimeMillis()
- ChangeSourceSearchUseCase: guard against empty chapters list
@

* @fix: remove residual regexColorRules references after merge

- ChangeSourceSearchUseCase: adapt filter lambda to new 3-param signature
- TextChapterLayout: remove globalRegexResult field, preApplyRegexColorRules
  call, and the entire regexColorRules fullTextBuilder block
@

* fix: 图标间距
2026-06-07 18:28:33 +08:00
HapeLee f0bbd4697f 为MIUIX主题添加了专属的关于界面 2026-05-17 01:20:23 +08:00
HapeLee e64e50bf38 界面优化 2026-05-15 21:20:49 +08:00
HapeLee b3a294ff1e 代码优化 2026-05-12 19:17:14 +08:00
HapeLee bc670629b4 [优化] 新增崩溃包报告页面(因为崩溃太多了孩子们 2026-04-29 20:01:19 +08:00
HapeLee 0afed18353 [优化] 一些代码优化 2026-04-29 00:21:00 +08:00
HapeLee f8473077dc [优化] 重写缓存界面 2026-04-23 13:08:39 +08:00
HapeLee ca70dcaec9 [优化] 重写订阅阅读页面,可能有bug喵 2026-04-20 02:14:59 +08:00
HapeLee 1bd61c719a [优化] 重写书籍详情页、本地书籍页和优化一些界面,为Miuix增加自定义取色功能,优化颜色选择器 2026-04-13 01:56:03 +08:00
HapeLee 1d585ecec9 [优化] 界面优化 2026-04-11 17:25:09 +08:00
HapeLee 75a3752079 [优化] 导航系统换成Navigation3,老旧设置页替换为新的Compose界面 2026-03-27 01:30:13 +08:00
HapeLee f21ff42e4c [新增] 初步用 Compose 重写高级设置界面,可在高级-测试初步体验。 2026-02-02 21:15:04 +08:00
HapeLee d95774fd40 [优化] 一些界面优化 2026-01-30 20:06:39 +08:00
HapeLee 30dac8883e [修复] 替换净化编辑或修改时无法正确更新正文的问题 #583
[新增] 替换净化编辑与管理界面使用Navigation处理导航逻辑与优化动画
2026-01-24 05:35:53 +08:00
HapeLee 8362a0fe8b [优化] 优化了大部分Compose界面的动画与逻辑(正文选字搜索、部分界面的动画效果等) 2026-01-02 05:49:22 +08:00
HapeLee 43fff847eb [修复] 系统切换暗黑模式下字体阴影失效 #342 2025-11-30 17:07:50 +08:00
HapeLee 3f8b9e3772 [修复] 主页面输入时底栏不再自动抬高 #389 2025-11-30 15:54:33 +08:00
HapeLee ba33e7cdd5 使用Compose重构的阅读记录模块的初始版本。
现在阅读记录功能更加强大,能够获取某一天所有书籍统计、可视化的阅读时间线等。
目前仅实现基本功能,且尚不完善,仅供尝鲜使用。
由于原版并无精细化的数据结构,所以时间线与日期查看仅在更新此版本后开始记录。原版的查看最后阅读功能仍可使用。
2025-11-25 01:36:51 +08:00
HapeLee f9cda9b341 图标 #168 2025-10-29 12:41:41 +08:00
HapeLee f134608c32 更换图标处理逻辑 #168 2025-10-28 19:05:18 +08:00
HapeLee 077b63c45a 恢复项目结构名,增强书源兼容性 2025-10-28 18:37:57 +08:00
HapeLee a97e31f103 进入书源管理后应用卡死 #84 2025-10-12 21:33:07 +08:00
HapeLee 3bbd9451f0 增加了一个白色猫猫头图标喵 #79 2025-10-12 15:03:53 +08:00
HapeLee d5fcd7a113 修复HyperOS设备上的启动闪屏问题 #78 2025-10-10 19:18:40 +08:00
HapeLee bbceb80f5c 修复启动时的闪烁问题 #78 2025-10-09 19:40:33 +08:00
HapeLee 44be41e268 修复图标切换后的无法启动的问题 #70 2025-10-07 20:57:05 +08:00
HapeLee 43b7b39ec6 更新界面 2025-09-22 01:15:17 +08:00
HapeLee 7e26a158e7 增加一些蜜汁小动画 2025-08-30 01:36:09 +08:00
HapeLee 9b1c155f77 修复初始化界面备份失败与NPE问题 2025-08-27 14:14:09 +08:00
HapeLee 50abb9b552 更新界面
增加首次进入引导界面
2025-08-27 03:04:46 +08:00
HapeLee 4004b2e386 更新界面与图标 2025-08-23 13:15:34 +08:00
HapeLee 8159187dc8 增加匿名统计开关 2025-08-12 13:10:59 +08:00
HapeLee 3db111e87d 更新界面 2025-08-04 03:55:21 +08:00
HapeLee c2353c9e71 增加震动 2025-07-25 18:03:48 +08:00
HapeLee 3c494cfc9a 更新界面 2025-07-10 04:25:54 +08:00
HapeLee a07935f466 更新界面 2025-07-05 03:51:33 +08:00
HapeLee 3908ff7cf2 更新界面 2025-07-01 23:42:07 +08:00
HapeLee cd4caed170 修复自动深浅色模式 2025-06-18 13:41:35 +08:00
HapeLee b7c50dff05 修复 2025-06-11 03:39:24 +08:00
HapeLee bc01b81cac 修复 2025-06-10 14:22:45 +08:00
HapeLee 0bb2528fab 重写主题系统 2025-06-07 04:39:02 +08:00
HapeLee 6c0757c91b Rename 2025-06-04 13:33:51 +08:00
HapeLee 09a39a851e Update UI Style 2025-06-01 23:23:15 +08:00
Horis 408b8d0c7e 优化 2025-03-02 18:57:36 +08:00
Horis 96008c3d67 优化 2025-02-23 15:18:43 +08:00
Horis 9f61dff3e3 优化 2025-02-18 16:26:09 +08:00