danielchalmers / DesktopClock

A digital clock for your desktop!
https://github.com/danielchalmers
MIT License
137 stars 33 forks source link

Support for multi-line date format #5

Closed timtucker-dte closed 11 months ago

timtucker-dte commented 1 year ago

Would it be possible to support multi-line dates?

If I try putting a newline character in a date it just cuts off the second line.

I'd like to have a taller display that includes the day of the month and the time on separate lines.

danielchalmers commented 1 year ago

It uses .NET datetime string formats and I can't find any way of including newlines with that. I'll keep this in mind though if I decide to rework it because it's a good idea.

f4x4 commented 1 year ago

It uses .NET datetime string formats and I can't find any way of including newlines with that. I'll keep this in mind though if I decide to rework it because it's a good idea.

Ok, thank you. It would be appreciated!

danielchalmers commented 1 year ago

A special formatter is in place to be able to handle newline characters after c6d45d089e877815190be6057362ba45c8381502 but the outlined textblock can't handle them at the moment. I'm not good at graphics stuff so I'm not sure how to get that working but I got it from https://stackoverflow.com/a/35262509 if anyone has any ideas.