the-via / app

GNU General Public License v3.0
765 stars 173 forks source link

add 'button' support in custom menus #193

Closed Xelus22 closed 10 months ago

Xelus22 commented 10 months ago

Add button support to the custom menus

https://github.com/the-via/reader/pull/28 in the-via/reader is also required

image

Tested with Hayabusa with this configuration

"menus": [
  {
    "label": "Lighting",
    "content": [
      {
        "label": "Backlight",
        "content": [
          {
            "label": "Test Button",
            "type": "button",
            "options": [34],
            "content": [ "id_caps_lock_enable", 0, 1 ]
          }
        ]
      }
    ]
  }
],

Tested and working with https://github.com/Xelus22/qmk_firmware/commit/ca7f6629eb52687f2a4fb93bc6462a099de518d5