fixed notification renders

This commit is contained in:
0xdcarns
2022-05-06 12:31:43 -04:00
parent 73991ce3a2
commit a9df48b001
3 changed files with 4 additions and 4 deletions

View File

@@ -13,9 +13,10 @@ import (
// ColoredText - renders a colored label
func ColoredText(text string, color color.Color) *fyne.Container {
btn := widget.NewLabel(text)
btn.Wrapping = fyne.TextWrapWord
bgColor := canvas.NewRectangle(color)
return container.New(
layout.NewGridWrapLayout(fyne.NewSize(400, 100)),
layout.NewMaxLayout(),
bgColor,
btn,
)