Commit Graph

60 Commits

Author SHA1 Message Date
Developer
f95d1c418f ui: remove reading progress slider from bottom panel 2026-05-24 07:34:28 +08:00
Developer
00ea81137b fix: remove faint_bg_color=TRANSPARENT to improve tooltip readability 2026-05-23 19:18:51 +08:00
Developer
0b076a8c26 fix: only h1 headings force page break, not all heading levels 2026-05-23 18:03:52 +08:00
Developer
11385a68dc feat: force page break after heading blocks for clean chapter layout 2026-05-23 14:53:16 +08:00
Developer
dc6e10d10e fix: remove double width inset in recalculate_pages, match rendering width 2026-05-23 14:47:54 +08:00
Developer
2e6ac83759 fix: resolve spine manifest IDs to file paths for TOC section matching 2026-05-23 08:25:05 +08:00
Developer
528d70fc33 fix: TOC anchor navigation - remove anchor text from parsed content
- Fix parse_blocks: after extracting anchor from \\x03..\\x04 markers,
  remove the anchor text too (was contaminating display text)
- When TOC jump occurs, clear pending_anchor to prevent saved position
  from overriding the TOC navigation on first frame
- Add tests for heading with/without anchor parsing
2026-05-22 21:03:56 +08:00
1d2407098c Add anchor-based TOC navigation: parse #fragment anchors, find exact page within section 2026-05-22 17:56:48 +08:00
21e9aba274 Fix TOC issues: add ScrollArea, fix section jump mechanism 2026-05-22 17:28:44 +08:00
Developer
f12297d580 fix: TOC navigation and pagination improvements
- Fix recalculate_pages missing heading_top_spacing in page height calculation
- Improve build_toc path matching: extract filename first, fall back to substring
- Filter out EPUB3 nav.xhtml from content sections
- Skip Windows resource compilation when windres is not available
- Add unit tests for TOC filename matching and nav filtering
2026-05-21 22:32:18 +08:00
8e8ba01336 Add read.ico as windows exe icon resource 2026-05-21 17:29:31 +08:00
Developer
af141b581d 添加release构建文件 2026-05-17 22:20:50 +08:00
Developer
6bd96cd913 改进标题渲染:按层级差异化显示(字号/加粗/间距/对齐) 2026-05-17 22:06:53 +08:00
Developer
afa8ea6ce7 docs: update README with font selection feature and three fonts 2026-05-16 22:31:30 +08:00
Developer
3c54cc1e55 fix: reorder find_fonts_dir to cwd, exe-parent, ../fonts 2026-05-16 22:26:45 +08:00
Developer
4e7768d265 fix: find_fonts_dir also checks ../fonts/ for dev (target/{debug,release}) 2026-05-16 22:16:07 +08:00
Developer
f76c59b6cf feat: font selection with three bundled fonts
- Add FontDef registry (思源黑体 bundled, 霞鹜文楷 + 思源宋体 runtime)
- Runtime font loading from fonts/ dir with fallback to bundled default
- ComboBox in toolbar to switch fonts
- Persist font_name in settings
- Download LXGW WenKai Lite (13MB) and Source Han Serif SC (23MB)
2026-05-16 22:07:52 +08:00
f2b5be312c docs: 更新README,添加main.png截图和项目结构说明 2026-05-16 12:17:25 +08:00
af03d18470 feat: 响应式分页引擎 - 基于egui Galley精确测量替代字符计数 2026-05-16 12:11:26 +08:00
Developer
4add295bfa tweak(pagination): safety_h=1.0 to reduce underfill 2026-05-15 23:35:50 +08:00
Developer
006cb3cd5e fix(style): use additive line_spacing model (font*1.1 + extra) instead of multiplicative 2026-05-15 23:21:45 +08:00
Developer
31efa90a87 fix(reader): skip leading newlines after page split to prevent blank top/bottom 2026-05-15 23:12:52 +08:00
Developer
7602121fda fix(pagination): balance window_back=1line, safety_h=0.96, recalc_height=-45 2026-05-15 22:16:39 +08:00
Developer
cbb0ee373a fix(pagination): shrink window_back to half-line, improve height estimation (-40px, safety 0.98) 2026-05-15 22:11:32 +08:00
Developer
a6e011261d fix(pagination): shrink window_back to 2 lines, reduce default paragraph spacing to 0 2026-05-15 21:57:45 +08:00
Developer
93f529e700 fix(style): spacing directly represents blank lines between paragraphs (1 or 2) 2026-05-15 21:43:30 +08:00
Developer
362acfddbf fix(style): fix paragraph spacing formula, reduce from 2x to linear extra lines 2026-05-15 21:34:19 +08:00
Developer
9d09e991f4 fix(pagination): rewrite calculate_pages to track lines instead of chars, newlines consume vertical height not horizontal 2026-05-15 21:26:34 +08:00
Developer
669650147b feat(layout): detect reflowable vs fixed-layout EPUB, fix pagination overflow 2026-05-15 21:11:57 +08:00
Developer
e2ed63a982 fix(pagination): paginate styled content to account for indent and paragraph spacing 2026-05-15 20:47:31 +08:00
Developer
33ec709a5e fix(pagination): recalc pages before progress bar using current available height 2026-05-15 20:09:54 +08:00
Developer
0d0700cf89 fix(pagination): recalculate with exact text_rect dims inside CentralPanel, validate current_page 2026-05-15 20:05:34 +08:00
Developer
1cb0c2aef2 fix(pagination): use accurate text area dimensions and char_width=1.0 for Chinese, sync pages before toolbar 2026-05-15 20:00:22 +08:00
Developer
4e79181e07 fix(pagination): recalculate pages using actual text area size, fix char_width for Chinese 2026-05-15 19:43:40 +08:00
eecab02ead 修复崩溃问题:字节索引和字符索引不匹配导致的 Option::unwrap() panic 2026-05-15 13:44:46 +08:00
19336d5d34 标题粗体显示:h1-h6 标题在正文中标粗区分 2026-05-15 12:09:11 +08:00
b51ce6853b 修复侧边栏标签页状态无法保持的问题 2026-05-15 11:32:04 +08:00
2df605c864 细化书签功能:正文指示器、侧边栏书签列表、跳转功能 2026-05-15 11:27:22 +08:00
Developer
88f15d307a feat(bg): multi-background support with kraft, manuscript, composition, and custom image 2026-05-14 23:19:14 +08:00
Developer
a82fa6b7b6 fix(styling): fullscreen kraft paper bg, persistence preset refresh, reader cleanup 2026-05-14 22:50:01 +08:00
Developer
0521439281 fix: use extreme style values (14/20/26 font), remove RichText::line_height, fix para spacing threshold 2026-05-14 21:19:15 +08:00
Developer
4655ad5d31 fix: differentiate style presets with wider font/line/paragraph spacing values, apply paragraph_spacing 2026-05-14 21:13:49 +08:00
Developer
515ec0e07d fix: replace profile cycle button with ComboBox for instant style switching 2026-05-14 21:08:31 +08:00
Developer
7d056e2670 feat: add typography style system with profiles, alignment, line spacing, first-line indent 2026-05-14 21:02:34 +08:00
Developer
d69229b1ca feat: add kraft paper tiled background texture for comfortable reading 2026-05-14 20:49:27 +08:00
Developer
16f801cdf8 feat: improve HTML text extraction with paragraph preservation, add reading margins, paragraph-aware pagination 2026-05-14 20:43:29 +08:00
b0071c6617 功能更新: 目录点击跳转、翻页按钮移至底部右侧、所有按钮添加悬停提示 2026-05-14 17:28:40 +08:00
Developer
88afb217c6 docs: add README with features, build instructions, and tech stack 2026-05-13 23:55:44 +08:00
Developer
4a1ac384a1 feat: wire App with reading view dispatch, theme toggle, and reading position save 2026-05-13 23:52:21 +08:00
Developer
d1c3a9058a Implement reading view with paginated text, TOC sidebar, toolbar, progress bar, and navigation 2026-05-13 23:50:39 +08:00