operatorfabric-core icon indicating copy to clipboard operation
operatorfabric-core copied to clipboard

Ui-menu: add configurable option for opfab-theme parameter name and values

Open quinarygio opened this issue 1 year ago • 0 comments

Today Opfab adds a "opfab-theme" parameter to menu url configured in ui-menu.json Make theme parameter name and values configurable. If not specified it will keep the default "opfab-theme" parameter name with "DAY" and "NIGTH" values. Example:

{
      "id": "menu2",
      "entries": [
        {
          "customMenuId": "uid_test_1",
          "url": "https://opfab.github.io/",
          "label": "menu2.entry.single",
          "linkType": "BOTH",
          "dayNightTheme": {
            "attribute": "theme",
            "day": "light",
            "night": "dark" 
          }
        }
      ]
    }

quinarygio avatar Nov 15 '24 11:11 quinarygio