Don't hardcode white background in wxHtmlWindow, but use wxSYS_COLOUR_WINDOW, as was already done in wxHtmlWinParser in case when wxHtmlWindow was not used at all. Also use wxSYS_COLOUR_WINDOWTEXT for the default foreground and light/dark-mode dependent link colour instead of hardcoded blue. As a side effect, this uses a more appropriate colour for the links in the light mode as well. Add a link to the lists test page in the HTML test sample to allow testing the links appearance easily (links present in the other pages of this sample use fixed colours specified in HTML itself).
28 lines
509 B
HTML
28 lines
509 B
HTML
<html>
|
|
<body>
|
|
<ul>
|
|
<li>This is line one, try to make page width very small</li>
|
|
<li>Same with line 2</li>
|
|
</ul>
|
|
------
|
|
<table>
|
|
<tr>
|
|
<td>
|
|
<ul><li>Simple list in a table. This table cell may wrap.</li></ul>
|
|
</td>
|
|
<td>
|
|
Second column, unimportant
|
|
</td>
|
|
<tr>
|
|
<tr>
|
|
<td nowrap>
|
|
<ul><li>List in a table, this cell should not wrap</li></ul>
|
|
</td>
|
|
<td>
|
|
Click <a href="test.htm">here</a> to go to the initial page.
|
|
</td>
|
|
<tr>
|
|
</table>
|
|
|
|
</body>
|
|
</html>
|