mgmeyers / obsidian-zotero-integration

Insert and import citations, bibliographies, notes, and PDF annotations from Zotero into Obsidian.
GNU General Public License v3.0
1.09k stars 55 forks source link

Correct text in 'colorCategory' for Blue and Purple would fix the blue/purple error #376

Open 8DancingElephants opened 4 months ago

8DancingElephants commented 4 months ago

I'm aware of the issue others brought up here with color rendering: #168 - which is closed, but my issue isn't with rendering color it's with the text of the colorCategory field. The 8 potential hex codes coming from zotero are consistent and work to identify color.

What I want is access to correct text in the colorCategory field. Both color #2ea8e5 and color #a28ae5 are appropriate hex codes from zotero data, aligning with blue or purple highlights. These should have two different results in the colorCategory text, yet they have the same (ie "Blue" for both of these colors)

color = #2ea8e5 should have colorCategory = "Blue"
color = #a28ae5 should have colorCategory = "Purple"

This would make the colorCategory field match the color of the highlight AND the label from Zotero.

Lukas1bit commented 4 months ago

I agree, this would resolve the need to build a workaround using the hex codes, rather than accessing colorCategory directly. I'd love seeing this change!