0.0.2 Updated palette. /JL

This commit is contained in:
2022-12-08 21:55:14 +01:00
parent 23e6f58d56
commit d23451b98d
4 changed files with 423 additions and 365 deletions
BIN
View File
Binary file not shown.
+13
View File
@@ -0,0 +1,13 @@
package main
import "github.com/lxn/walk"
type (
BeadColor struct {
Checkbox *walk.CheckBox
backgroundColor walk.Color
Red uint8
Green uint8
Blue uint8
}
)
+45
View File
@@ -0,0 +1,45 @@
package main
import "encoding/xml"
type (
Palette struct {
xml.Name `xml:"palette"`
Brands []Brand `xml:"brand"`
}
Brand struct {
Name string `xml:"name"`
Series []Series `xml:"series"`
}
Series struct {
Name string `xml:"name"`
Pegboards []Pegboard `xml:"pegboard"`
Beads []Bead `xml:"beads"`
}
Pegboard struct {
Name string `xml:"name"`
Width int `xml:"width"`
Height int `xml:"height"`
}
Bead struct {
Colors []Color `xml:"color;attr"`
}
Color struct {
Name string `xml:"name"`
ProductCode string `xml:"productCode"`
Brand string `xml:"brand"`
Red uint8 `xml:"red"`
Green uint8 `xml:"green"`
Blue uint8 `xml:"blue"`
IsPearl bool `xml:"isPearl"`
IsTranslucent bool `xml:"isTranslucent"`
IsNeutral bool `xml:"isNeutral"`
IsGrayscale bool `xml:"isGrayscale"`
Disabled bool `xml:"disabled"`
}
)
+365 -365
View File
File diff suppressed because it is too large Load Diff