mirror of
https://github.com/vsariola/sointu.git
synced 2025-08-02 20:35:03 -04:00
feat: UI work to facilitate future improvements in midi-into-track-input
This commit is contained in:
@ -46,5 +46,17 @@ func (l LabelStyle) Layout(gtx layout.Context) layout.Dimensions {
|
||||
}
|
||||
|
||||
func Label(str string, color color.NRGBA, shaper *text.Shaper) layout.Widget {
|
||||
return LabelStyle{Text: str, Color: color, ShadeColor: black, Font: labelDefaultFont, FontSize: labelDefaultFontSize, Alignment: layout.W, Shaper: shaper}.Layout
|
||||
return SizedLabel(str, color, shaper, labelDefaultFontSize)
|
||||
}
|
||||
|
||||
func SizedLabel(str string, color color.NRGBA, shaper *text.Shaper, fontSize unit.Sp) layout.Widget {
|
||||
return LabelStyle{
|
||||
Text: str,
|
||||
Color: color,
|
||||
ShadeColor: black,
|
||||
Font: labelDefaultFont,
|
||||
FontSize: fontSize,
|
||||
Alignment: layout.W,
|
||||
Shaper: shaper,
|
||||
}.Layout
|
||||
}
|
||||
|
Reference in New Issue
Block a user