Skip to content

Commit

Permalink
Finalized Radial Cover
Browse files Browse the repository at this point in the history
  • Loading branch information
MNRedPanda committed Jun 13, 2024
1 parent aff3f00 commit fec2ed3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions themes/radial/components/label.typ
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,11 @@
/// - type (string): Any of the radial entry types
/// - size (size): The size of the label
/// -> content
#let label(type, size: 0.7em) = {
#let label(type, size: 0.7em, radius: 1.5pt) = {
let data = entry-type-metadata.at(type)
let colored-image = utils.change-icon-color(raw-icon: data.icon, fill: white)

box(fill: data.color, outset: 3pt, radius: 6pt)[
box(fill: data.color, outset: 3pt, radius: radius)[
#set align(center + horizon)
#image.decode(colored-image, height: size)
]
Expand Down

0 comments on commit fec2ed3

Please sign in to comment.