Changing how annotation colors are displayed

36 views
Skip to first unread message

Dylan Awalt-Conley

unread,
Aug 22, 2025, 2:03:45 AMAug 22
to zotero-dev
I'm trying to write a plugin that improves Zotero's UI on grayscale e-ink devices (testing on a PineNote). Mostly I'm doing this by injecting CSS into the reader, but annotations are a problem, since they are drawn on a canvas.

I was wondering if anyone has any leads on modifying how annotation colors are *displayed* on a given device? For example: the current yellow highlight is light enough that, depending on the number of grays a device can display, it sometimes won't display at all. Changing this to a darker gray would fix this.

Since this is device-specific, I'd like to not touch the annotation data (hex codes) itself, and just modify the colors before they are drawn to the canvas, or something like that.

Hugh Paterson III

unread,
Aug 22, 2025, 10:44:21 AMAug 22
to zoter...@googlegroups.com
I’m not sure how helpful this might be, but maybe changing all highlights to underlines would resolve the shading challenge and let the user know the text has been “found important”.

All the best,
-Hugh

Sent from my iPhone


--
You received this message because you are subscribed to the Google Groups "zotero-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to zotero-dev+...@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/zotero-dev/420356c9-1bb5-4267-9e4a-617f93fc7f91n%40googlegroups.com.

Dylan Awalt-Conley

unread,
Aug 22, 2025, 2:23:26 PMAug 22
to zotero-dev
Thanks Hugh; that actually would be helpful. Underlines are generally more visible on e-inks (and may be the only option on black-and-white screens). Do you know where I should look as far as changing how highlights / underlines are displayed? I haven't yet been able to affect how annotations are displayed at all.
Reply all
Reply to author
Forward
0 new messages