修改PanelExpanderButton的按钮颜色

我正在尝试修改PanelExpanderButton的按钮颜色,但是我一直都只能改变它的背景色和其他边框色,鼠标经过显示颜色等等,就是不知道怎么改变PanelExpanderButton的按钮颜色,我应该怎么做

You can see the definitions of all the buttons here:

https://gojs.net/latest/extensions/Buttons.js

The name of the button icon is named ButtonIcon, so to change it you can write:

              $("PanelExpanderButton", 
                {
                  "ButtonIcon.fill": 'lime',
                  "ButtonIcon.stroke": 'lime',
                  // other properties...
                }
              )

This is true for other elements in button also. So for the named object “ButtonBorder” you can set

"ButtonBorder.fill": 'red'

etc.

谢谢西蒙的回答,现在彻底解决了我的问题