Change default highlight color to be transparent (#3453)

This commit is contained in:
frozolotl 2024-02-20 14:57:26 +01:00 committed by GitHub
parent f1495de8bb
commit 1ca3d9204a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 1 additions and 2 deletions

View File

@ -276,12 +276,11 @@ impl Show for Packed<StrikeElem> {
#[elem(Show)]
pub struct HighlightElem {
/// The color to highlight the text with.
/// (Default: 0xffff5f)
///
/// ```example
/// This is #highlight(fill: blue)[with blue].
/// ```
#[default(Color::from_u8(0xFF, 0xFF, 0x5F, 0xFF).into())]
#[default(Color::from_u8(0xFF, 0xFD, 0x11, 0xA1).into())]
pub fill: Paint,
/// The top end of the background rectangle.

Binary file not shown.

Before

Width:  |  Height:  |  Size: 8.0 KiB

After

Width:  |  Height:  |  Size: 8.1 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 54 KiB

After

Width:  |  Height:  |  Size: 54 KiB