Skip to content

Commit 5e2d6aa

Browse files
committed
style: Improve formatting of theme definitions in config_patch.lua
Refactor theme definitions for better readability by aligning parameters and enhancing the overall structure of the code.
1 parent b7e311f commit 5e2d6aa

1 file changed

Lines changed: 27 additions & 11 deletions

File tree

tools/typstdoc/config_patch.lua

Lines changed: 27 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -24,17 +24,33 @@ local PREAMBLE_CONTENT = [[
2424
)
2525
}
2626
27-
#let theme-grey(ink: auto, paper: auto, accent: rgb("#3366FF")) =
28-
_theme_with_document_colours(_theme_grey, ink: ink, paper: paper, accent: accent)
29-
30-
#let theme-minimal(ink: auto, paper: auto, accent: rgb("#3366FF")) =
31-
_theme_with_document_colours(_theme_minimal, ink: ink, paper: paper, accent: accent)
32-
33-
#let theme-classic(ink: auto, paper: auto, accent: rgb("#3366FF")) =
34-
_theme_with_document_colours(_theme_classic, ink: ink, paper: paper, accent: accent)
35-
36-
#let theme-void(ink: auto, paper: auto, accent: rgb("#3366FF")) =
37-
_theme_with_document_colours(_theme_void, ink: ink, paper: paper, accent: accent)
27+
#let theme-grey(ink: auto, paper: auto, accent: rgb("#3366FF")) = _theme_with_document_colours(
28+
_theme_grey,
29+
ink: ink,
30+
paper: paper,
31+
accent: accent,
32+
)
33+
34+
#let theme-minimal(ink: auto, paper: auto, accent: rgb("#3366FF")) = _theme_with_document_colours(
35+
_theme_minimal,
36+
ink: ink,
37+
paper: paper,
38+
accent: accent,
39+
)
40+
41+
#let theme-classic(ink: auto, paper: auto, accent: rgb("#3366FF")) = _theme_with_document_colours(
42+
_theme_classic,
43+
ink: ink,
44+
paper: paper,
45+
accent: accent,
46+
)
47+
48+
#let theme-void(ink: auto, paper: auto, accent: rgb("#3366FF")) = _theme_with_document_colours(
49+
_theme_void,
50+
ink: ink,
51+
paper: paper,
52+
accent: accent,
53+
)
3854
3955
#let theme(..fields) = context {
4056
let named = fields.named()

0 commit comments

Comments
 (0)