Skip to content

Allow to setup an icon on macro action

Nicolas Vuaille requested to merge nicolas.vuaille/paraview:MacroIcon into master

Goal

Have an Icon in the macro toolbar instead of the macro name.

MacroIcon

UI to manage icon will need more work and is postponed.

See abandonned proposal

UI

On Macro / import New macro, after script is chosen, a new dialog ask for an icon (svg or png).

askForIcon

Dev

* chosen image is copied inside macro user directory and renamed according to the macro.

Implementation

  • when populating macro list from directories, look for a png / svg file with same name than macro. If present, set it as the action icon.
  • removing macro also removed icon
Edited by Nicolas Vuaille

Merge request reports