fix(tracker/gioui): move alert popups north to not overlay buttons

Closes #142.
This commit is contained in:
5684185+vsariola@users.noreply.github.com 2024-09-06 22:01:00 +03:00
parent 9cb573d965
commit 59fb39d9b3
2 changed files with 6 additions and 1 deletions

View File

@ -17,6 +17,10 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).
- Do not include delay times in the delay time table if the delay unit is
disabled ([#139][i139])
### Changed
- Moved the error and warning popups slightly up so they don't block the unit
control buttons ([#142][i142])
## v0.4.0
### Added
- User can drop preset instruments into `os.UserConfigDir()/sointu/presets/` and
@ -182,5 +186,6 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).
[i129]: https://github.com/vsariola/sointu/issues/129
[i130]: https://github.com/vsariola/sointu/issues/130
[i139]: https://github.com/vsariola/sointu/issues/139
[i142]: https://github.com/vsariola/sointu/issues/142
[i145]: https://github.com/vsariola/sointu/issues/145
[i146]: https://github.com/vsariola/sointu/issues/146

View File

@ -35,7 +35,7 @@ func (a *PopupAlert) Layout(gtx C) D {
}
a.prevUpdate = now
var totalY float64
var totalY float64 = float64(gtx.Dp(38))
a.alerts.Iterate(func(alert tracker.Alert) {
var color, textColor, shadeColor color.NRGBA
switch alert.Priority {