|
23 | 23 | targetFileEntry = widget.NewEntry() |
24 | 24 | openPaint = widget.NewButtonWithIcon("OpenPaint", theme.WindowMaximizeIcon(), openPaintWindowOperation) |
25 | 25 | changePath = widget.NewButtonWithIcon("Browse", theme.FolderIcon(), browseOperation) |
26 | | - saveBtn = widget.NewButtonWithIcon("Save File", theme.DocumentSaveIcon(), saveOperation) |
| 26 | + saveBtn = widget.NewButtonWithIcon("Save file", theme.DocumentSaveIcon(), exportFileOperation) |
27 | 27 | input = widget.NewEntry() |
28 | | - exportBtn = widget.NewButtonWithIcon("Export PNG", theme.FileImageIcon(), expertOperation) |
| 28 | + exportBtn = widget.NewButtonWithIcon("Export PNG", theme.FileImageIcon(), expertPNGOperation) |
29 | 29 | flatMatrixCheck = widget.NewCheck("Flat Matrix", func(b bool) { |
30 | 30 | Options.FlatMatrix = b |
31 | 31 | }) |
|
38 | 38 | addButtonFunction() |
39 | 39 | Application.paintObject.Clear() |
40 | 40 | }) |
41 | | - saveOptionsBtn = widget.NewButtonWithIcon("Save Settings", theme.SettingsIcon(), saveProjectButtonFunction) |
42 | | - resetProjectBtn = widget.NewButtonWithIcon("Reset Project", theme.ContentClearIcon(), resetProjectButtonFunction) |
| 41 | + saveOptionsBtn = widget.NewButtonWithIcon("Save Settings", theme.SettingsIcon(), func() { |
| 42 | + applyProjectSetting(true) |
| 43 | + }) |
| 44 | + resetProjectBtn = widget.NewButtonWithIcon("Reset Project", theme.ContentClearIcon(), resetProjectSetting) |
| 45 | + toolbar = widget.NewToolbar( |
| 46 | + widget.NewToolbarAction(theme.DocumentSaveIcon(), saveProjectFileFunction), |
| 47 | + widget.NewToolbarAction(theme.ContentUndoIcon(), loadProjectFileFunction)) |
43 | 48 | ) |
44 | 49 |
|
45 | 50 | // Layout containers |
|
74 | 79 | ) |
75 | 80 |
|
76 | 81 | bottomContainer = container.NewVBox( |
| 82 | + container.NewPadded(toolbar), |
77 | 83 | container.NewPadded(settingsContainer), |
78 | 84 | container.NewPadded(actionContainer), |
79 | 85 | container.NewPadded(labelContainer), |
|
0 commit comments