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

Idea: Select options for palette etc #6

@tarwin

Description

@tarwin

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions