the-via / app

GNU General Public License v3.0
921 stars 209 forks source link

add 'button' support in custom menus #193

Closed Xelus22 closed 1 year ago

Xelus22 commented 1 year 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