Skip to content

Add 7 home-screen widgets#48

Open
Kellenok wants to merge 6 commits into
sohilsayed:mainfrom
Kellenok:feature/glance-widgets
Open

Add 7 home-screen widgets#48
Kellenok wants to merge 6 commits into
sohilsayed:mainfrom
Kellenok:feature/glance-widgets

Conversation

@Kellenok

@Kellenok Kellenok commented Jul 9, 2026

Copy link
Copy Markdown
Contributor

Summary

  • Add Chimahon Glance home-screen widgets (see table) with Material You dark and light themes
  • Restyle Updates: header, 4-across covers, scroll (limit 12), badges
  • Picker previews (previewImage + previewLayout) for all of the above
  • Reactive refresh: history Flow, novel/stats signals, app-lock toggle; onStop safety net (stats debounced on page-turns)
  • No anime widgets for now
Widget What it does
Continue reading Last manga cover/title/chapter + Resume
Recent history Recent manga list with covers; header opens History
Updates Recent library updates grid (restyled)
Current novel Last novel title + chapter + progress %
Reading stats Today: characters, reading time, avg speed, Anki cards
Search Opens dictionary search (1×1 is icon-only)
System Lookup Starts system-mode OCR / lookup

Size

  • ~+2.8k / −0.2k across 83 files overall
  • Kotlin: ~+1.7k / −0.2k (logic + 7 widgets)
  • XML: ~+1.1k (providers, previews, colors, drawables)

Testing

  • ./gradlew.bat :app:assembleDebug / :app:installDebug
  • Installed and manually tested the ARM64 debug APK on a connected device: picker/previews, sizes, taps, lock, reactive refresh

Kellenok added 4 commits July 9, 2026 22:25
Add Continue Reading, Recent History, Novel Progress, Reading Stats, Search, and System Lookup widgets with shared Glance chrome, providers, and receivers.
Polish the Updates grid (header, 4-across covers, scroll, +N badges, size bounds) and align appwidget colors with Material You accent2 surfaces.
Ship screenshot previewImage assets and RemoteViews previewLayout shells for Chimahon widgets and Updates, wired in appwidget-provider metadata.
Refresh widgets from history Flow, immersion stats/novel signals, and app-lock changes with debounced targeted updates. Keep onStop as a safety net and fix Updates lock toggle refresh.
@Kellenok Kellenok marked this pull request as draft July 9, 2026 20:28
@Kellenok Kellenok force-pushed the feature/glance-widgets branch 2 times, most recently from b933d40 to 88571ef Compare July 9, 2026 20:39
Show novel widget chapter from 1-based TOC order (not inflated spine index), sharing EpubBook TOC helpers with the reader. Continue reading uses Chapter instead of Ch. abbreviation.
@Kellenok Kellenok marked this pull request as ready for review July 9, 2026 20:48

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can you explain why did you change these it seems like something out of the pull request scope

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

oh yea i missed that, i thought it matched stats path but it had been pulled into separate toc helpers istead. switched tthe novel widget to use the same chaptercount like stats

Drop EpubBook TOC helper extraction and ReaderViewModel refactor —
NovelProgressWidget now derives Chapter N from metadata.chapterStarts
and bookmark.characterCount (same basis as StatsScreenModel), with a
1-based spine fallback when starts are missing.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants