(defwidget hardware_button []
     (box :class "hardware_button"
       (eventbox
       :onhover "${update_hardware_reveal}true"
       :onhoverlost "${hardware_clicked ? "echo" : "${update_hardware_reveal}false"}"
       :onclick "${hardware_clicked ? "${update_hardware_clicked}false" : "${update_hardware_clicked}true"}"
       (image
         :class "hardware_icon"
         :path hardware_icon
         :image-width 16
        ))))

(defvar hardware_clicked false)

(defvar update_hardware_clicked "eww update hardware_clicked=")
(defvar update_hardware_reveal "eww update hardware_reveal=")

(defvar hardware_icon "widgets/hardware_stats/hardware-tab/button-icon.png")
