mirror of
https://github.com/vsariola/sointu.git
synced 2025-05-28 03:10:24 -04:00
fix(tracker/gioui): DPI scaling of the numeric updown icons
Closes #150.
This commit is contained in:
parent
7d6daba3d2
commit
4ee355bb45
@ -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
|
||||
|
@ -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
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user