Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use transparent background in HTML windows #159

Merged
merged 1 commit into from
Aug 16, 2021
Merged

Conversation

mrichards42
Copy link
Owner

The control itself draws the background. The HTML background is per
cell, and a solid color background (even white) can potentially draw on
top of neighbor cells. This can appear, e.g. with the rightmost
character of italic text getting cut off.

Fixes #158

The HTML background is per cell, and a solid color background (even
white) can potentially draw on top of neighbor cells. This can appear,
e.g. with the rightmost character of italic text getting cut off. The
solution is to use wxHTML_CLR_TRANSPARENT_BACKGROUND as the
initial/default background, which results in
dc.SetBackgroundMode(wxBRUSHSTYLE_TRANSPARENT). Using just
wxHTML_CLR_BACKGROUND results in wxBRUSHSTYLE_SOLID.

This is essentially the same as http://trac.wxwidgets.org/ticket/14986,
but since we don't have a `<body>` tag, we have to add the transparent
background color cell ourselves.
@mrichards42 mrichards42 merged commit d76109b into master Aug 16, 2021
@mrichards42 mrichards42 deleted the html-italics branch August 16, 2021 22:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Italicized clues are cut off on Mac
1 participant