PERGOLA LOGO

Tool Button – Command Button

ToolButton and CommandButton are subclasses of Button.

View as standalone SVG

var colorPickerToolButton = new pergola.ToolButton();
colorPickerToolButton.build({
  parent : buttonsGroup,
  x : 296,
  width : toolBar.height,
  height : toolBar.height - 6,
  maskFill : "#F0F0F0",
  extra : {
    rx : 7
  },
  stroke : pergola.shade([104.761, 99.009, 91.847], -15),
  symbol : {
    symbol : pergola.path + "lib/symbols/spectrum.png",
    width : 16,
    height : 16,
    x : 6.5,
    y : 4
  }
});