Skip to content

HMI lamp widget: configurable on/off colors #4

Description

@Coldbari

The lamp is fixed to theme colors. Add optional onColor/offColor props.

Where: src/hmi/widgets/lamp.tsx (render), src/hmi/model.tsWIDGET_SCHEMA.lamp, tests/hmi/schema.test.ts LEDGER (register the new keys — the ledger test fails otherwise, by design), property panel row in src/hmi/HmiPropertyPanel.tsx.

Accept: unit test rendering both states with custom colors.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions