Closed runsys closed 1 week ago
You can use this code to set the font size of the button text:
bt := core.NewButton(b).SetText("Hello")
tree.AddChildInit(bt, "text", func(w *core.Text) {
w.Styler(func(s *styles.Style) {
s.Font.Size.Dp(48)
s.Text.LineHeight.Dp(48)
})
})
If you want to change the font size of all elements, you can change the Font size
in the Settings
menu.
Describe the bug
Button style font size did not have effect. how to set default font size by code for all. version about 20240706 os freebsd 14.1
How to reproduce
see code in picture
Example code
No response
Relevant output
No response
Platform
macOS