jamiebrynes7 / obsidian-todoist-plugin

Materialize Todoist tasks in Obsidian notes
https://jamiebrynes7.github.io/obsidian-todoist-plugin/
MIT License
952 stars 70 forks source link

Add colors to labels/due date. #303

Open jacob-lynn opened 8 months ago

jacob-lynn commented 8 months ago

In todoist I have colors set for my various labels and todoist adds colors to the due date automatically. I assume that this feature wasn't included because of concerns about theme compatibility? In either case I'm confused because the checkboxes are styled with colors based on their priority.

This probably falls under the same issue as issue 169.

It seems like this would be relatively easy to fix as Todoist has this object for labels in their official API documentation.

{ id: "2156154810", name: "Food", color: "charcoal", order: 1, isFavorite: false }

socalledtheraven commented 5 months ago

This already seems implemented for overdue dates: image so could be added fairly easily?

404notfoundyett commented 4 months ago

It would also be great if the project can also be color coded like the suggestion. Having all the same looks makes it really hard to intuitively check which task belongs to what project.

jamiebrynes7 commented 4 months ago

There's actually a redesign that's landed in master and will be available with the next public release. As a sneak peak, this is what that looks like with the default theme:

CleanShot 2024-08-05 at 16 25 40@2x

Right now this is implemented for projects (it styles the hash icon on the right) and adding it for labels as well won't be too hard.

Due dates can be styled with CSS, I'll make sure to add some example snippets to the documentation site with the release to make this easier. In the medium term, I was thinking about using https://github.com/mgmeyers/obsidian-style-settings to expose more built-in style settings. How does that sound?

socalledtheraven commented 2 months ago

This looks great, excited!