MartinPacker / md2pptx

Markdown To PowerPoint converter
MIT License
222 stars 35 forks source link

Make code slide foreground and background colours settable #69

Closed MartinPacker closed 3 years ago

MartinPacker commented 3 years ago

Today they are (defaulted to probable) black on (hardcoded) green.

It should be easy to make these changeable, perhaps at the slide level. That way you could intersperse green screens with other kinds of fixed-pitch, non-bulleted, presentation.

MartinPacker commented 3 years ago

Implementing this and testing with an ISPF 3270 screenshot highlighted the need to be able to set the width of the code text box. So I'll find a way to add that. It will probably lead to the text box being centred - so, say, a screenshot is centered horizontally in the slide.

I expect the specification will be presentation- and slide-level settable and it won't be automatic as that would involve hit-and-miss font metric work.

MartinPacker commented 3 years ago

I realised that code sides use a fixed-pitch font. So I I could support metadata that says the number of columns and lay out the txt box accordingly, centred and (heuristically) scaled. E.g. if 80 columns won't fit then shrink the text size until it will. Also, you'd want the text box centred in the slide but the text left-aligned within that.

MartinPacker commented 3 years ago

Fixed in 1.9.3 and 1.9.4, the latter being to fix a documentation issue only.