Skip to content

Custom colors in info panel #2644

Open
Open
@mtrezza

Description

@mtrezza

New Feature / Enhancement Checklist

Current Limitation

The panel uses a fixed set of colors for fonts and backgrounds.

Feature / Enhancement Description

Allow to set custom font and background color per item.

Example Use Case

The feature allows to visually highlight values that require attention, for example:

{
  "panel": {
    "segments": [
      {
        "title": "Accounts",
        "titleFontColor": "#ffffff",
        "titleBackgroundColor": "#000000"
        "items": [
          {
            "type": "keyValue",
            "key": "Checking Account",
            "value": "USD -1.00",
            "fontColor": "#ffffff",
            "backgroundColor": "#ff0000"
          },
          {
            "type": "keyValue",
            "key": "Savings Account",
            "value": "USD 1.00"
          }
        }
      ]
    }
  }

Should be displayed like this:

Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    bounty:$20Bounty applies for fixing this issue (Parse Bounty Program)type:featureNew feature or improvement of existing feature

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions