Funny thing: if I move the Toolbar definition into toolbar.nim and don't use it in mainwindow.nim then the code(main.nim) won't see method setIcon from common.nim.
This means that if I have this: let toolbar = newToolbar() then anyAction.setIcon("...") won't work...