fix(tracker/gioui): DPI scaling of the numeric updown icons

Closes #150.
This commit is contained in:
5684185+vsariola@users.noreply.github.com
2024-09-19 11:17:11 +03:00
parent 7d6daba3d2
commit 4ee355bb45
2 changed files with 4 additions and 1 deletions

View File

@ -128,7 +128,7 @@ func (s *NumericUpDownStyle) button(height int, icon *widget.Icon, delta int, cl
size = 1
}
if icon != nil {
p := gtx.Dp(unit.Dp(size))
p := size
if p < 1 {
p = 1
}