0.3.3 Added plus image to colors. /JL
This commit is contained in:
7
color.go
7
color.go
@@ -14,6 +14,7 @@ type (
|
|||||||
backgroundColor walk.Brush
|
backgroundColor walk.Brush
|
||||||
InfoTooltip *walk.ToolTip
|
InfoTooltip *walk.ToolTip
|
||||||
WarningTooltip *walk.ToolTip
|
WarningTooltip *walk.ToolTip
|
||||||
|
add *walk.ImageView
|
||||||
info *walk.ImageView
|
info *walk.ImageView
|
||||||
warning *walk.ImageView
|
warning *walk.ImageView
|
||||||
Brand string
|
Brand string
|
||||||
@@ -122,6 +123,12 @@ func NewBeadColor(mw *MyMainWindow, name string, id int, red byte, green byte, b
|
|||||||
color.Checkbox.SetText(name)
|
color.Checkbox.SetText(name)
|
||||||
log.Println("Checkbox name set")
|
log.Println("Checkbox name set")
|
||||||
walk.NewHSpacer(cm)
|
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)
|
color.info, err = walk.NewImageView(cm)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
log.Println("Error creating info image view: ", err)
|
log.Println("Error creating info image view: ", err)
|
||||||
|
|||||||
BIN
images/plus_alpha.png
Normal file
BIN
images/plus_alpha.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 614 B |
2
main.go
2
main.go
@@ -30,7 +30,7 @@ type MyMainWindow struct {
|
|||||||
|
|
||||||
const (
|
const (
|
||||||
AppName string = "BeadImager"
|
AppName string = "BeadImager"
|
||||||
Version string = "0.3.2"
|
Version string = "0.3.3"
|
||||||
CopyRight string = "©2022 Jan Lerking"
|
CopyRight string = "©2022 Jan Lerking"
|
||||||
STD_MESS string = "Ready"
|
STD_MESS string = "Ready"
|
||||||
LogFile string = "BeadImager.log"
|
LogFile string = "BeadImager.log"
|
||||||
|
|||||||
Reference in New Issue
Block a user