Skip to content

Add reload preset button to brush HUD in popup palette

When drawing on Android tablet, I mostly use canvas-only to maximize available space. However, to reset a brush preset to default settings, I have to switch out of canvas-only, reload on the toolbar and then switch back. I propose to add a button to reload brush preset to the brush HUD in the popup palette:

Screenshot_20200821_231059

Reloading presets seems to be broken in current master. However, according to console output, the action is triggered. I have also tested the patch on top of krita/4.3, where it reloads the preset as expected.

Test Plan

Scenario: reloading a dirty preset

Given the current preset is dirty (it's size/opacity/flow/... have been changed)
When I activate the popup palette
And click the reload button in the brush HUD
Then the brush preset is reloaded with it's default settings

Formalities Checklist

  • I confirmed this builds.
  • I confirmed Krita ran and the relevant functions work.
  • I tested the relevant unit tests and can confirm they are not broken. (If not possible, don't hesitate to ask for help!)
  • I made sure my commits build individually and have good descriptions as per KDE guidelines.
  • I made sure my code conforms to the standards set in the HACKING file.
  • I can confirm the code is licensed and attributed appropriately, and that unattributed code is mine, as per KDE Licensing Policy.

Merge request reports

Loading