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

@ -10,6 +10,8 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).
the command line tools.
### Fixed
- Numeric updown widget calculated dp-to-px conversion incorrectly, resulting in
wrong scaling ([#150][i150])
- Empty patch should not crash the native synth ([#148][i148])
## [0.4.1]
@ -213,3 +215,4 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).
[i145]: https://github.com/vsariola/sointu/issues/145
[i146]: https://github.com/vsariola/sointu/issues/146
[i148]: https://github.com/vsariola/sointu/issues/148
[i150]: https://github.com/vsariola/sointu/issues/150

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
}