diff options
| author | frozolotl <44589151+frozolotl@users.noreply.github.com> | 2024-02-20 14:57:26 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-02-20 13:57:26 +0000 |
| commit | 1ca3d9204a78545dc20712ff666089dec2c7227b (patch) | |
| tree | 5819951b21fcc8f14598a6451fddf55947da201f | |
| parent | f1495de8bb6414fa6fe4da27c5a5b2cd3dd53cfa (diff) | |
Change default highlight color to be transparent (#3453)
| -rw-r--r-- | crates/typst/src/text/deco.rs | 3 | ||||
| -rw-r--r-- | tests/ref/compiler/show-selector-logical.png | bin | 8207 -> 8272 bytes | |||
| -rw-r--r-- | tests/ref/text/deco.png | bin | 55107 -> 55184 bytes |
3 files changed, 1 insertions, 2 deletions
diff --git a/crates/typst/src/text/deco.rs b/crates/typst/src/text/deco.rs index 7873f97b..201b80a3 100644 --- a/crates/typst/src/text/deco.rs +++ b/crates/typst/src/text/deco.rs @@ -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. diff --git a/tests/ref/compiler/show-selector-logical.png b/tests/ref/compiler/show-selector-logical.png Binary files differindex 4d1be5ed..a7a80053 100644 --- a/tests/ref/compiler/show-selector-logical.png +++ b/tests/ref/compiler/show-selector-logical.png diff --git a/tests/ref/text/deco.png b/tests/ref/text/deco.png Binary files differindex c850f35e..782e628c 100644 --- a/tests/ref/text/deco.png +++ b/tests/ref/text/deco.png |
