Add Apple Notes highlight color export#521
Conversation
|
The hardcoded emphasis colours you have chosen don’t seem to have good contrast in both dark and light modes. One possible solution would be to use Obsidian’s CSS variables, though it does make things less portable outside Obsidian. Alternatively, you could choose colours with partial transparency, which would work since the original Apple Notes colours seem to also be semi-transparent. |
Co-authored-by: mirnovov <anon185441@gmail.com>
|
HI @mirnovov, Thank you very much for the thoughtful feedback, and thank you for developing the original Apple Notes Importer in the first place — this tool is so, so incredibly helpful. That is a very good point. I do not use dark mode myself, so I honestly did not consider the contrast issue. Also, I should mention that I am not a programmer; all of these changes were made by ChatGPT. My main goal here was simply to make sure the highlight information from Apple Notes would not be lost during import. At this stage, the different highlight colors are being preserved (or tagged) as different background colors in the exported .md files, so users can still identify them inside Obsidian, and then use find-and-replace to further refine the styles to their liking. I really appreciate your suggestion of using semi-transparent colors. It’s a much more elegant solution that maintains compatibility across different themes. I've updated the code with your suggested hex values. Update: |
This PR adds support for importing text highlights from Apple Notes.
Apple Notes stores emphasis colors in field 14 of the
AttributeRunprotobuf message. This update extracts that field and maps the 5 available colors (Purple, Pink, Orange, Mint, Blue) to corresponding HTMLbackground-colorstyles, allowing highlights to be preserved in the exported Markdown files.