Generally no … TaskPaper 3.5 adds some new theme settings, and renamed the display span stylesheet attribute to content. But generally should give same behavior.
I think maybe your stylesheet didn’t hardcode font size (best really) and you just need to View > Zoom In a few times? TaskPaper 3.5 changed it’s bundle identifier, and as a result preferences reset.
This is weird because zoom in or zoom out have no effect.
I overwrited Task Paper 3.5 on my old version. Maybe better to delete whole app and all the Preferences and clean install?
Then I do see larger fonts when using your stylesheet. I need to dig further into this eventually (probably not today) because I wouldn’t have expected that change to make a difference, even if “Menlo Regular” wasn’t matching an existing font.
There is also fragment in my code:
item[data-done] {
> run[display] {
text-strikethrough: NSUnderlineStyleDouble;
text-strikethrough-color: lighten(red,20%);
color: @wtopiony;
}
}
should I change display to content in this example?
After digging into the code I guess this is odd, but correct enough behavior. I think when you ask for “Melo Regular” it’s a bit to specific for the way that I create fonts from the stylesheet. In the end I’m using the API:
Yeah, sounds odd. But thanks for pointing this out. This is worth upgrading the docs with example to avoid confusion what “generic name” means because for me it was always tricky especially when full name of the font has three words or more like e.g. Alegreya Sans SC Regular.
Update: I also noticed that if I hardcoded @base-font-size and @user-font-size to fixed values than Zoom In and Out not work, but probably this is expected behaviour.
In the default sty sheet I only have handle border color set when item has children, but if you just set it for all items then you’ll always see it. This should do it:
There is a content run attribute that you could in theory target like this:
run[content*=Urgent] {
color: red;
}
But currently I don’t associate the actual content string with that attribute, it’s just an empty marker. So the above doesn’t work. I could change that, though might not be able to, not sure about performance implications.
But more generally I think you’d be better off using tags. Things like this are there intended purpose, they are integrated into the autocomplete, sidebar UI, and query language.
Is there are particular reason why you don’t want to use a tag?
Thanks. This definitely isn’t a big deal … I was just wondering about a quick way to make a couple of important project titles stand out visually in the larger list. But there are other ways I can make sure those projects catch my eye.
In this case, the only reason I would add a tag would be to trigger the style attribute, so it’s almost overkill, but I can do that if it later seems helpful.
Thanks for this! I’m not sure why, but the code relating to the leading dash you gave me doesn’t seem to do anything. I’m including the .less here incase it helps. Any help very much appreciated!
I’m not sure why, but it seems that this rule breaks things:
pre[cm-done] .cm-text {
text-decoration: none
}
Looks like a left over rule from FoldingText or some other app … TaskPaper doesn’t know about pre or cm-text. At the same time I would have expected that whole rule to just get ignored. I’ll look into that part of things, but for me just deleting it fixes the problem.
To cancel out the @done strikethrough… except now it doesn’t work because TaskPaper 3.5 changed things so that you need to use content instead of display.
Jesse, thanks as ever, that has sorted everything out. Forgive me for tacking on one last request, but I have also been attempting to change the colour of the “guideline” in the case of a slew of tasks being done, by using guide-line-color within item[data-done]. No luck so far. Is this possible? Thanks once again for all your help.