mirror of
https://github.com/typst/typst
synced 2025-05-14 04:56:26 +08:00
Change default highlight color to be transparent (#3453)
This commit is contained in:
parent
f1495de8bb
commit
1ca3d9204a
@ -276,12 +276,11 @@ impl Show for Packed<StrikeElem> {
|
|||||||
#[elem(Show)]
|
#[elem(Show)]
|
||||||
pub struct HighlightElem {
|
pub struct HighlightElem {
|
||||||
/// The color to highlight the text with.
|
/// The color to highlight the text with.
|
||||||
/// (Default: 0xffff5f)
|
|
||||||
///
|
///
|
||||||
/// ```example
|
/// ```example
|
||||||
/// This is #highlight(fill: blue)[with blue].
|
/// 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,
|
pub fill: Paint,
|
||||||
|
|
||||||
/// The top end of the background rectangle.
|
/// 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 |
Loading…
x
Reference in New Issue
Block a user