|
18 | 18 | refreshBtn = widget.NewButtonWithIcon("Clear Paint", theme.DeleteIcon(), func() { |
19 | 19 | Application.paintObject.Clear() |
20 | 20 | }) |
21 | | - |
22 | 21 | savePath = widget.NewEntry() |
23 | 22 | dataFileEntry = widget.NewEntry() |
24 | 23 | targetFileEntry = widget.NewEntry() |
|
35 | 34 | colInput = widget.NewEntry() |
36 | 35 | rowInput = widget.NewEntry() |
37 | 36 | addBtn = widget.NewButtonWithIcon("Add", theme.ContentAddIcon(), addButtonFunction) |
38 | | - saveOptionsBtn = widget.NewButtonWithIcon("Save Settings", theme.SettingsIcon(), saveProjectButtonFunction) |
39 | | - resetProjectBtn = widget.NewButtonWithIcon("Reset Project", theme.ContentClearIcon(), resetProjectButtonFunction) |
| 37 | + addAndClearPaintBtn = widget.NewButtonWithIcon("Add & Clear Paint", theme.ContentCutIcon(), func() { |
| 38 | + addButtonFunction() |
| 39 | + Application.paintObject.Clear() |
| 40 | + }) |
| 41 | + saveOptionsBtn = widget.NewButtonWithIcon("Save Settings", theme.SettingsIcon(), saveProjectButtonFunction) |
| 42 | + resetProjectBtn = widget.NewButtonWithIcon("Reset Project", theme.ContentClearIcon(), resetProjectButtonFunction) |
40 | 43 | ) |
41 | 44 |
|
42 | 45 | // Layout containers |
|
67 | 70 |
|
68 | 71 | labelContainer = container.NewVBox( |
69 | 72 | widget.NewLabel("Label:"), |
70 | | - container.NewBorder(nil, statusContainer, nil, addBtn, input), |
| 73 | + container.NewBorder(nil, statusContainer, addBtn, addAndClearPaintBtn, input), |
71 | 74 | ) |
72 | 75 |
|
73 | 76 | bottomContainer = container.NewVBox( |
|
0 commit comments