diff --git a/ui/arduino/media/install-package.svg b/ui/arduino/media/install-package.svg new file mode 100644 index 0000000..f26feff --- /dev/null +++ b/ui/arduino/media/install-package.svg @@ -0,0 +1,33 @@ + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/ui/arduino/views/components/toolbar.js b/ui/arduino/views/components/toolbar.js index 70982b0..4746282 100644 --- a/ui/arduino/views/components/toolbar.js +++ b/ui/arduino/views/components/toolbar.js @@ -70,6 +70,16 @@ function Toolbar(state, emit) { active: state.view === 'file-manager', onClick: () => emit('change-view', 'file-manager') })} + + ${Button({ + icon: 'install-package.svg', + tooltip: `Install Package`, + active: true, + onClick: () => { + if(state.isConnected) emit('disconnect') + emit('launch-app', 'micropython-package-installer://', 'https://github.com/arduino/lab-micropython-package-installer/releases/latest') + } + })} ` }