diff options
author | Shawn Rutledge <shawn.rutledge@qt.io> | 2024-04-12 07:50:30 -0400 |
---|---|---|
committer | Shawn Rutledge <shawn.rutledge@qt.io> | 2024-04-19 04:13:32 -0700 |
commit | 7f48c79627663f0777df9c10d06202aea5bedac3 (patch) | |
tree | 41e1364289eeaf7d8eb44feb5ff9344cbcc3f1e0 /tests/auto/widgets/kernel/qwidget | |
parent | a833d5682ac44571e13568336f2bd3ec7deb1d6d (diff) |
Draw list bullets/numbers with CSS text color, not palette color
When CSS has been used to customize the text color, render the bullet
with the same color. This is consistent with web browsers, and with
Qt Quick rendering.
In QTextDocumentLayoutPrivate::drawListItem(), the pen color is the
text color, so use it instead of brush color.
Add a baseline test for lancelot: the background and general text
are customized, then some list items are customized further, and
some of them have colored text spans. Repeat with different styles
of numbered and bullet lists and checklists.
Fixes: QTBUG-2188
Task-number: QTBUG-213
Task-number: QTBUG-57833
Pick-to: 6.5 6.7
Change-Id: I71e84d00172e4b37aef57c8badd2ec43c10113d9
Reviewed-by: Sami Shalayel <sami.shalayel@qt.io>
Diffstat (limited to 'tests/auto/widgets/kernel/qwidget')
0 files changed, 0 insertions, 0 deletions