present icon indicating copy to clipboard operation
present copied to clipboard

Add support for transparent backgrounds

Open jasper-zanjani opened this issue 4 years ago • 4 comments

Although the available choices for background color are great, it does not appear there is a way to explicitly specify a transparent background--that is, the terminal's native background.

jasper-zanjani avatar Aug 25 '20 21:08 jasper-zanjani

That's interesting, I'll look into how that can be done :)

vinayak-mehta avatar Aug 25 '20 21:08 vinayak-mehta

That's interesting, I'll look into how that can be done :)

Well it looks like the default styling for Slide 2 already does it, at least for areas where there are no characters.

image

jasper-zanjani avatar Aug 25 '20 22:08 jasper-zanjani

Which terminal are you using? And what is the markdown for that slide? (since it isn't in the examples)

I tried setting bg=black on a transparent guake terminal but that didn't seem to work. I'll have to look into how transparency works with asciimatics.

vinayak-mehta avatar Aug 26 '20 11:08 vinayak-mehta

I was using Ubuntu in Windows Terminal. Using PowerShell Core in Windows Terminal produces the same effect. I did not specify a background for either slide. The markdown I used for the following images was:

# Testing Present
Slide 1
---
## Continuing test
Slide 2

image image So you can see, by default the first slide uses the white color, but the second slide does not paint the terminal except for where characters appear. So present is already implementing some form of transparency..

jasper-zanjani avatar Aug 26 '20 18:08 jasper-zanjani