Skip to content
This repository has been archived by the owner on Nov 1, 2023. It is now read-only.

Idea: Select options for palette etc #6

Open
tarwin opened this issue Mar 19, 2023 · 0 comments
Open

Idea: Select options for palette etc #6

tarwin opened this issue Mar 19, 2023 · 0 comments

Comments

@tarwin
Copy link

tarwin commented Mar 19, 2023

Would be nice to be able to allow selection of color palettes or other options with visual feedback.

A color palette could be defined as follows:

{
  id: 'palette',
  name: 'Palette',
  type: 'select',
  default: '',
  options: [
    ['ff0000', '00ff00'],
    ['0000ff', '00ffff'],
  ]
}

Or as a palette type with more complex options:

{
  id: 'palette',
  name: 'Palette',
  type: 'palette',
  default: 'redGreen',
  options: [
    { id: 'redGreen', name: 'Red / Green', palette: ['ff0000', '00ff00'] },
    { id: 'blueCyan', name: 'Blue / Cyan', palette: ['0000ff', '00ffff'] },
  ]
}

Example rendering from QQL:

image

May also be nice to have a selection with custom rendering. Maybe simply allowing selection given images:

{
  id: 'shape',
  name: 'shape',
  type: '',
  default: 'circle',
  options: [
    { id: 'circle', name: 'Circle', url: '/icon/circle.svg' },
    { id: 'square': name: 'Square', url: '/icon/square.svg' },
    { id: 'triangle': name: 'Triangle', url: '/icon/triangle.svg' },
  ]
}

Example from QQL:

image

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant