Skip to content

Commit

Permalink
Merge pull request #191 from kevinaboos/font_cleanup
Browse files Browse the repository at this point in the history
Ensure we always use Makepad's default font fallback
  • Loading branch information
kevinaboos authored Oct 11, 2024
2 parents 25de320 + 0310b18 commit 1f0e27e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 15 deletions.
4 changes: 0 additions & 4 deletions src/home/room_screen.rs
Original file line number Diff line number Diff line change
Expand Up @@ -67,10 +67,6 @@ live_design! {

ICO_LOCATION_PERSON = dep("crate://self/resources/icons/location-person.svg")

TEXT_SUB = <THEME_FONT_REGULAR>{
font_size: (10),
}

COLOR_BG = #xfff8ee
COLOR_BRAND = #x5
COLOR_BRAND_HOVER = #x3
Expand Down
13 changes: 2 additions & 11 deletions src/shared/styles.rs
Original file line number Diff line number Diff line change
Expand Up @@ -18,16 +18,9 @@ live_design! {
}

TEXT_SUB = <THEME_FONT_REGULAR>{
font_size: (8),
height_factor: 1.5,
}

TEXT_P = <THEME_FONT_REGULAR>{
font_size: (12),
height_factor: 1.65,
font_size: (10),
}


USERNAME_FONT_SIZE = 11
USERNAME_TEXT_COLOR = #x2
USERNAME_TEXT_STYLE = <THEME_FONT_BOLD>{
Expand All @@ -53,9 +46,7 @@ live_design! {

SMALL_STATE_FONT_SIZE = 9.0
SMALL_STATE_TEXT_COLOR = #x888
SMALL_STATE_TEXT_STYLE = {
font: {path: dep("crate://makepad-widgets/resources/IBMPlexSans-Text.ttf")},
font2: { path: dep("crate://makepad-widgets/resources/LXGWWenKaiRegular.ttf") },
SMALL_STATE_TEXT_STYLE = <THEME_FONT_REGULAR>{
font_size: (SMALL_STATE_FONT_SIZE),
height_factor: 1.3,
}
Expand Down

0 comments on commit 1f0e27e

Please sign in to comment.