Skip to content

Commit

Permalink
Reduce H4 text size to 32
Browse files Browse the repository at this point in the history
  • Loading branch information
beansgum committed Aug 21, 2021
1 parent c606469 commit b53e922
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
4 changes: 4 additions & 0 deletions ui/renderers/style.go
Expand Up @@ -7,6 +7,7 @@ import (
"gioui.org/text"
"gioui.org/unit"
"github.com/planetdecred/godcr/ui/decredmaterial"
"github.com/planetdecred/godcr/ui/values"
)

func getLabel(lbl decredmaterial.Label) decredmaterial.Label {
Expand Down Expand Up @@ -57,6 +58,9 @@ func getHeading(txt string, level int, theme *decredmaterial.Theme) decredmateri

lbl := lblWdgt(txt)
lbl.Font.Weight = text.Bold
if level == 4 {
lbl.TextSize = values.TextSize32
}

return lbl
}
Expand Down
1 change: 1 addition & 0 deletions ui/values/dimensions.go
Expand Up @@ -65,6 +65,7 @@ var (
TextSize22 = unit.Sp(22)
TextSize24 = unit.Sp(24)
TextSize28 = unit.Sp(28)
TextSize32 = unit.Sp(32)

AppWidth = unit.Sp(800)
AppHeight = unit.Sp(600)
Expand Down

0 comments on commit b53e922

Please sign in to comment.