Skip to content

[Plugin] Statistics plugin calendar and timeline view changed to use color when color rendering is being used #13453

Merged
Frenzie merged 6 commits into
koreader:masterfrom
ReneeIbeji:StatisticsColor
Oct 16, 2025
Merged

[Plugin] Statistics plugin calendar and timeline view changed to use color when color rendering is being used #13453
Frenzie merged 6 commits into
koreader:masterfrom
ReneeIbeji:StatisticsColor

Conversation

@ReneeIbeji

@ReneeIbeji ReneeIbeji commented Mar 24, 2025

Copy link
Copy Markdown
Contributor

Fixes #12899.

As frame container the uses an function in the blitbuffer with no colour equivalent, I temporarily put a colour version in the frame container file as a local function. I think it would be better to move to the blitbuffer file but since that's in the base repository, I wasn't 100% sure how to proceed.

Images:
image
image


This change is Reviewable

NiLuJe
NiLuJe previously requested changes Mar 24, 2025

@NiLuJe NiLuJe left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Requires some minor reorganization, but looks otherwise sound ;).

Comment thread frontend/ui/widget/container/framecontainer.lua Outdated
Comment thread plugins/statistics.koplugin/calendarview.lua Outdated
Comment thread plugins/statistics.koplugin/calendarview.lua Outdated
Comment thread plugins/statistics.koplugin/calendarview.lua Outdated
Comment thread plugins/statistics.koplugin/calendarview.lua Outdated
Comment thread plugins/statistics.koplugin/calendarview.lua Outdated
Comment thread plugins/statistics.koplugin/calendarview.lua Outdated
Comment thread plugins/statistics.koplugin/main.lua Outdated
@poire-z

poire-z commented Mar 24, 2025

Copy link
Copy Markdown
Contributor

Rather non-intrusive in the plugin, so glad @NiLuJe is here to review the painting stuff.

From my #11044 (comment) ...

Because we won't be limited in our design by the 16 eInk grays - and people will want pastels, others brighter colors (ie. in Calendar views). And KOReader will get.... THEMES! and we'll have a koreader-themes repo :/ like any kid's project.

... ALL IS LOŚ͖̩͇̗̪̏̈́T ALL I​S LOST the color he comes ̕h̵i​s un̨ho͞ly radiańcé destro҉ying all enli̍̈́̂̈́ghtenment he c̶̮omes he comes the ich​or permeates all MY FACE MY FACE ᵒh god no NO NOO̼O​O NΘ stop the an​*̶͑̾̾​̅ͫ͏̙̤g͇̫͛͆̾ͫ̑͆l͖͉̗̩̳̟̍ͫͥͨe̠̅s ͎a̧͈͖r̽̾̈́͒͑e n​ot rè̑ͧ̌aͨl̘̝̙̃ͤ͂̾̆ ZA̡͊͠͝LGΌ ISͮ̂҉̯͈͕̹̘̱ PO͇̹̺ͅLȳ̳O TH̘Ë͖́̉ C̵̺̾O̶͇̍L̶̯̑Ọ̸͌R̸͕͒ T̸H̵E̶M̷E̸s̸ H̸̡̪̯ͨ͊̽̅̾̎Ȩ̬̩̾͛ͪ̈́̀́͘ ̶̧̨̱̹̭̯ͧ̾ͬC̷̙̲̝͖ͭ̏ͥͮ͟Oͮ͏̮̪̝͍M̲̖͊̒ͪͩͬ̚̚͜Ȇ̴̟̟͙̞ͩ͌͝S̨̥̫͎̭ͯ̿̔̀ͅ...

@ReneeIbeji

Copy link
Copy Markdown
Contributor Author

Created pull request in koreader base repository for additions to BlitBuffer for added colour support: koreader/koreader-base#2047 (comment)

Frenzie pushed a commit to koreader/koreader-base that referenced this pull request Apr 13, 2025
#2047)

Add RGB32 variants for paintBorder and paintRoundedRect functions, currently the paintborder variant doesn't have support to rounded corners.

Allows for framecontainers with coloured backgrounds to be used io statistics plugin calendar view.
See: koreader/koreader#13453 (comment)
@mallomar

Copy link
Copy Markdown

I'm curious, was this implemented or is it planned to be? I saw this linked on a reddit thread. I'm not a programmer so I'm having trouble following its progress (and I don't see color calendars in my nightly KOReader from July when the last commit here appears to be March).

@Frenzie

Frenzie commented Aug 14, 2025

Copy link
Copy Markdown
Member

I didn't really follow it. @NiLuJe fine to merge for you?

@NiLuJe

NiLuJe commented Aug 14, 2025

Copy link
Copy Markdown
Member

I vaguely remember the base/BB stuff, but I don't recall if I ever actually looked at the front stuff ;p.

@mallomar

Copy link
Copy Markdown

I vaguely remember the base/BB stuff, but I don't recall if I ever actually looked at the front stuff ;p.

I know it's aesthetics, but it would be cool to have, especially if the code is mostly implemented.

@Frenzie Frenzie left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

lgtm, the base necessities were already merged months ago

@Frenzie Frenzie added this to the 2025.10 milestone Aug 15, 2025
@mallomar

mallomar commented Aug 20, 2025

Copy link
Copy Markdown

@NiLuJe - Since @Frenzie has approved the changes and noted that "the base necessities were already merged months ago," would you mind taking another look at your requested changes from March to see if they've been addressed or if there are any remaining concerns?

It would be great to get this merged into the main build, especially for people on Android where the front-end and ffi folders aren't accessible to modify manually like people on Kobo are able to.

Thanks!

@Frenzie Frenzie merged commit 7c9f0cc into koreader:master Oct 16, 2025
0xstillb pushed a commit to 0xstillb/koreader-thai that referenced this pull request May 9, 2026
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.

FR: Statistics/Calendar should use color for devices which support it

5 participants