Any Toggl users here? I'm putting together an integration so the toggl (Chrome extension) button ( https://github.com/toggl/toggl-button ) is displayed for tasks on a Checkvist list. It's dead simple (a few lines of javascript), but I'm slightly torn on the best way to handle one aspect: whether or not toggl is shown for a particular list. It can't be always-on, as it adds too much clutter for non-projecty lists (who wants a timer button for the carrots on their grocery list?). What I have now is that if any task on a list is tagged #toggl, then all tasks on that list will have the toggl button. A few alternatives I canvassed were: - display toggl buttons only on subtasks of a task tagged with #toggl - display toggl buttons only on focused (hoisted) tasks - find some other way to indicate that all of a list's tasks should have the button, eg. something encoded in the list's name I think what I have now is the most convenient of these (I don't want to hav...
I played a little with that idea. See https://gist.github.com/hauber/c4656b79098b4c5e6bf4
ReplyDeleteThanks! This works well, apart from the problem you mentioned in the post. Is it possible to get to true alternating colors for the rows, by making odd li elements at odd depth have color A for 2n and color B for 2n+1, and have li elements at even depth have color B for 2n and color A for 2n+1?
ReplyDeleteI guess a general solution is beyond CSS and would need to be informed by the program. Color of following tasks in the outer structure would need to change when you add/delete subtasks or expand/collapse subtasks. Maybe someone with deep insight in the CheckVist structure can come up with a clever solution. Alternatively, one could choose two different sets of colors and alternate them depending on the level of nesting. This would need rules for every level of nesting.
ReplyDeleteHow do I target a particular level of nesting? I could just write the rules till level 10, as that is probably the max I would go.
ReplyDeleteNvm, that won't work either. Looks like this cannot be done with JS.
ReplyDeleteHello, you're right, it is hardly possible with CSS only. May I ask you - what are you trying to achieve with color altering? If you need a better separation of list items, bullets mode would suffice?
ReplyDeleteYou can enable it via 'oo' -> List style.
Best,
Just trying to make the list more readable by alternating colors (similar to how it is done for tables to improve readability).
ReplyDeleteThanks for pointing out bullets mode. It helps, but alternating colors would be better.