Skip to content

Commit

Permalink
clarify font comment
Browse files Browse the repository at this point in the history
  • Loading branch information
kevinaboos committed Apr 8, 2024
1 parent ef8d1e7 commit 61b8619
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/shared/styles.rs
Original file line number Diff line number Diff line change
Expand Up @@ -30,10 +30,10 @@ live_design! {
MESSAGE_TEXT_COLOR = #x777
MESSAGE_TEXT_LINE_SPACING = 1.35
MESSAGE_TEXT_HEIGHT_FACTOR = 1.5
// This font should only be used for plaintext labels. Don't use this for Html content,
// as the Html widget sets different fonts for different text styles (e.g., bold, italic).
MESSAGE_TEXT_STYLE = {
font: {path: dep("crate://makepad-widgets/resources/GoNotoKurrent-Regular.ttf")}
// Don't set the actual font here, as the Html widget sets different fonts for
// different text styles (e.g., bold, italic, etc)
font_size: (MESSAGE_FONT_SIZE),
height_factor: (MESSAGE_TEXT_HEIGHT_FACTOR),
line_spacing: (MESSAGE_TEXT_LINE_SPACING),
Expand Down

0 comments on commit 61b8619

Please sign in to comment.