Skip to content

Commit

Permalink
get initial color setting support working
Browse files Browse the repository at this point in the history
  • Loading branch information
kkoreilly committed Jul 6, 2024
1 parent ec3b69e commit 51da042
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions canvas/paint.go
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ func (pv *PaintView) Init() {
s.Direction = styles.Row
})
tree.AddChild(w, func(w *core.Text) {
w.SetText("<b>Stroke Paint: </b>")
w.SetText("<b>Stroke paint:</b>")
})
tree.AddChild(w, func(w *core.Switches) {
core.Bind(&pv.StrokeType, w)
Expand Down Expand Up @@ -206,8 +206,8 @@ func (pv *PaintView) Init() {
})
tree.AddChild(w, func(w *core.Frame) {}) // "stroke-blank"

tree.AddChild(w, func(w *core.ColorPicker) { // "stroke-clr")
// core.Bind(&pv.PaintStyle.StrokeStyle.Color, w)
tree.AddChild(w, func(w *core.ColorPicker) {
core.Bind(&pv.PaintStyle.StrokeStyle.Color, w)
w.OnChange(func(e events.Event) {
if pv.StrokeType == PaintSolid {
pv.Canvas.SetStrokeColor(pv.StrokeProp(), false) // not manip
Expand Down Expand Up @@ -240,7 +240,7 @@ func (pv *PaintView) Init() {
s.Direction = styles.Row
})
tree.AddChild(w, func(w *core.Text) {
w.SetText("<b>Fill Paint: </b>")
w.SetText("<b>Fill paint:</b>")
})
tree.AddChild(w, func(w *core.Switches) {
core.Bind(&pv.FillType, w)
Expand Down Expand Up @@ -270,8 +270,8 @@ func (pv *PaintView) Init() {

tree.AddChild(w, func(w *core.Frame) {}) // "fill-blank"

tree.AddChild(w, func(w *core.ColorPicker) { // "fill-clr")
// core.Bind(&pv.PaintStyle.FillStyle.Color, w)
tree.AddChild(w, func(w *core.ColorPicker) {
core.Bind(&pv.PaintStyle.FillStyle.Color, w)
w.OnChange(func(e events.Event) {
if pv.FillType == PaintSolid {
pv.Canvas.SetFillColor(pv.FillProp(), false) // not manip
Expand Down

0 comments on commit 51da042

Please sign in to comment.