aoc-cli icon indicating copy to clipboard operation
aoc-cli copied to clipboard

feat: Add colours to the calendar output.

Open jugglerchris opened this issue 1 year ago • 4 comments

I was sad that aoc-cli calendar was quite plain looking, and that motivated me to implement enough CSS support in html2text to fix this.

Currently the Cargo.toml in this PR points to an html2text git branch; if you're otherwise happy with this change I will merge the html2text branch, make a release, and make another update.

jugglerchris avatar Dec 10 '23 11:12 jugglerchris

This is cool! Thank you! Yes please, make a release and we can upgrade.

scarvalhojr avatar Dec 12 '23 16:12 scarvalhojr

I've made a release of html2text and updated Cargo.toml to point to that.

jugglerchris avatar Dec 15 '23 22:12 jugglerchris

Just at that point, the calendar started displaying with extra ||||||||||||||||||, which turned out to be some animated flame implemented with position:absolute spans with CSS animation. I've added an arguably gross hack (after adding support for display:none to html2text) to work around it.

jugglerchris avatar Dec 16 '23 21:12 jugglerchris

The workaround doesn't affect the non-coloured version - depending on how you feel about it I can apply it there too.

jugglerchris avatar Dec 16 '23 21:12 jugglerchris