0.3.3 Added plus image to colors. /JL

This commit is contained in:
2022-12-20 23:07:06 +01:00
parent 17104c20d6
commit 39f280e10e
3 changed files with 8 additions and 1 deletions

View File

@@ -14,6 +14,7 @@ type (
backgroundColor walk.Brush
InfoTooltip *walk.ToolTip
WarningTooltip *walk.ToolTip
add *walk.ImageView
info *walk.ImageView
warning *walk.ImageView
Brand string
@@ -122,6 +123,12 @@ func NewBeadColor(mw *MyMainWindow, name string, id int, red byte, green byte, b
color.Checkbox.SetText(name)
log.Println("Checkbox name set")
walk.NewHSpacer(cm)
color.add, err = walk.NewImageView(cm)
if err != nil {
log.Println("Error creating add image view: ", err)
}
img, _ := walk.NewImageFromFileForDPI("images/plus_alpha.png", 96)
color.add.SetImage(img)
color.info, err = walk.NewImageView(cm)
if err != nil {
log.Println("Error creating info image view: ", err)

BIN
images/plus_alpha.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 614 B

View File

@@ -30,7 +30,7 @@ type MyMainWindow struct {
const (
AppName string = "BeadImager"
Version string = "0.3.2"
Version string = "0.3.3"
CopyRight string = "©2022 Jan Lerking"
STD_MESS string = "Ready"
LogFile string = "BeadImager.log"