give the image some space on for the border

This commit is contained in:
2025-05-06 15:16:35 -04:00
parent 0669f68f6c
commit acb3735be2

View File

@@ -118,8 +118,9 @@ func updateImage(file string, img *tk.LabelWidget) {
return
}
i = imaging.Fit(i,
must(strconv.Atoi(tk.WinfoScreenWidth(tk.App))),
must(strconv.Atoi(tk.WinfoScreenHeight(tk.App))),
// -50 to give some space to breathe around the edges
must(strconv.Atoi(tk.WinfoScreenWidth(tk.App)))-50,
must(strconv.Atoi(tk.WinfoScreenHeight(tk.App)))-50,
imaging.Linear,
)
repaint(img, filepath.Base(file), tk.Data(i))