Skip to content

Commit

Permalink
Replace deprecated API
Browse files Browse the repository at this point in the history
  • Loading branch information
tucuxi committed Jul 16, 2024
1 parent 3d1c6ae commit a9ee0a0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion view.go
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ func (mw *metaballsWidget) CreateRenderer() fyne.WidgetRenderer {
}

func (mw *metaballsWidget) draw(w, h int) image.Image {
fgcolor := theme.ForegroundColor()
fgcolor := theme.Color(theme.ColorNameForeground)
img := image.NewRGBA(image.Rect(0, 0, w, h))
size := float32(max(w, h))
g := int(math.Ceil(float64(size) / 128))
Expand Down

0 comments on commit a9ee0a0

Please sign in to comment.