diff --git a/setup/analysis/class_action_report.typ b/setup/analysis/class_action_report.typ index e36bb3e..da497f3 100644 --- a/setup/analysis/class_action_report.typ +++ b/setup/analysis/class_action_report.typ @@ -100,10 +100,10 @@ grid( columns: (1fr,) * 4, column-gutter: 8pt, - metric-card("À contrôler", ambiguous-actions.len()), metric-card("Niveau initial", initial-ambiguous.len(), note: [niveau 1]), metric-card("Améliorations", upgrade-ambiguous.len(), note: [niveau supérieur à 1]), metric-card("WIP ou vides", unfinished-ambiguous.len()), + metric-card("À contrôler", ambiguous-actions.len()), ) [Ces lignes ne sont ni passives, ni rattachées à une prochaine occurrence, et ne contiennent aucun coût d’action reconnu. Elles constituent la file de revue.] diff --git a/setup/models/document.typ b/setup/models/document.typ index 09c2e0d..dec2058 100644 --- a/setup/models/document.typ +++ b/setup/models/document.typ @@ -7,6 +7,7 @@ // Load project glossaries and presentation model #import "../generation/glossary.typ": glossary #import "../core/macros.typ" as macros +#import "../theme/symbols.typ" as symbols #import "../build_config.typ": build-config #import "school.typ" as model @@ -88,6 +89,13 @@ } } + // Recolor boxed SVG symbols to match the heading text. Keeping this show + // rule scoped to the heading body avoids affecting decorative layout boxes. + let heading-body(body, color) = { + show box: it => symbols.try-re-colorize(it, color) + body + } + //----- HEADINGS ----- // Level 1: major section @@ -103,7 +111,7 @@ weight: "bold", fill: theme.heading, )[ - #it.body + #heading-body(it.body, theme.heading) ] #stack( @@ -151,7 +159,7 @@ weight: "bold", fill: theme.heading, )[ - #heading-number-content(it) #it.body + #heading-number-content(it) #heading-body(it.body, theme.heading) ] ] @@ -165,7 +173,7 @@ weight: "bold", fill: theme.heading-accent, )[ - #heading-number-content(it) #it.body + #heading-number-content(it) #heading-body(it.body, theme.heading-accent) ] ] @@ -179,7 +187,7 @@ weight: "bold", fill: theme.heading-subtle, )[ - #heading-number-content(it) #it.body + #heading-number-content(it) #heading-body(it.body, theme.heading-subtle) ] ] @@ -193,7 +201,7 @@ weight: "bold", fill: theme.heading-subtle, )[ - #heading-number-content(it) #it.body + #heading-number-content(it) #heading-body(it.body, theme.heading-subtle) ] ]