tidbyt / community

A publishing platform for apps developed by the Tidbyt community 🚀
Apache License 2.0
379 stars 643 forks source link

Provide "Color" picker as schema type #39

Closed joeyhoer closed 6 months ago

joeyhoer commented 2 years ago

For apps which allow colors to be customized, it would be helpful if there was a color picker option available within schema. Right now, it appears that the best option is to utilize a list of predefined values with a dropdown schema.

  colors = [
    {"text": "White", "value": "#fff"},
    {"text": "Red", "value": "#f00"},
    {"text": "Green", "value": "#0f0"},
    {"text": "Blue", "value": "#00f"},
    {"text": "Yellow", "value": "#ff0"},
    {"text": "Cyan", "value": "#0ff"},
    {"text": "Magenta", "value": "#f0f"},
  ]
…
    {
      "type": "dropdown",
      "id": "color",
      "icon": "palette",
      "name": "Color",
      "description": "The color to display.",
      "options": colors,
      "default": DEFAULT_COLOR,
    },

My ideal state would be to have the Tidbyt controlled via HomeKit, and use HomeKit to set the color of the display. As long as the app accepts a single color variable, I believe this should be possible.

joeyhoer commented 1 year ago

@betterengineering Any update on this? Are there any plans to add this into your roadmap?

LukiLeu commented 1 year ago

There was one added a few weeks ago: https://tidbyt.dev/docs/reference/schema#color

tavdog commented 1 year ago

Is it time to close this as completed ?