mirror of
https://github.com/vsariola/sointu.git
synced 2025-11-12 21:02:52 -05:00
fix(tracker/gioui): show minimized loudness in red when > 0 dB
This commit is contained in:
parent
1dcd3fe3c6
commit
c64422767e
@ -162,7 +162,8 @@ func (t *SongPanel) layoutSongOptions(gtx C) D {
|
|||||||
layout.Rigid(func(gtx C) D {
|
layout.Rigid(func(gtx C) D {
|
||||||
return t.LoudnessExpander.Layout(gtx, tr.Theme, "Loudness",
|
return t.LoudnessExpander.Layout(gtx, tr.Theme, "Loudness",
|
||||||
func(gtx C) D {
|
func(gtx C) D {
|
||||||
return Label(tr.Theme, &tr.Theme.SongPanel.RowHeader, fmt.Sprintf("%.1f dB", tr.Model.DetectorResult().Loudness[tracker.LoudnessShortTerm])).Layout(gtx)
|
loudness := tr.Model.DetectorResult().Loudness[tracker.LoudnessShortTerm]
|
||||||
|
return dbLabel(tr.Theme, loudness).Layout(gtx)
|
||||||
},
|
},
|
||||||
func(gtx C) D {
|
func(gtx C) D {
|
||||||
return layout.Flex{Axis: layout.Vertical, Alignment: layout.End}.Layout(gtx,
|
return layout.Flex{Axis: layout.Vertical, Alignment: layout.End}.Layout(gtx,
|
||||||
|
|||||||
Reference in New Issue
Block a user