Implements a button (normal push button or toggle button) with
customer provided pictures for up, down and inactive state
if inactive pictures are missing they will be generated from the provided up and down pictures.
Pictures can be changed on the fly.
You can also specify which mouse button can be used to press / toggle the button.
Also the keyboard keyState and used Mouse button can be retrieved for implementing click + Ctrl
or right click + Shift.
You can also specify if the padding from the theme is used or displaying without a padding.
Usage
You can use this directly from the source code using standard go imports:
go get github.com/bytemystery-com/picbutton@latest
Or you can download the code directly from git:
git clone https://github.com/bytemystery-com/picbutton.git
Screenshots
The component is demonstrated in the following images: