Skip to main content
widgets

PicButton

Implements a button using pictures for the states

by Reiner Pröls

About

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.

addon screenshot addon screenshot addon screenshot

Installation

You can install this add-on using go get:

go get github.com/bytemystery-com/picbutton

Or you can download the code directly from git:

git clone https://github.com/bytemystery-com/picbutton.git