Fix the icon color + allow changing icons depending on the state
This commit is contained in:
parent
2c433c7df0
commit
bcb35877c1
7 changed files with 47 additions and 13 deletions
|
|
@ -42,8 +42,16 @@ declare type ControlUI = {
|
|||
declare type Control = {
|
||||
name: string,
|
||||
position: Array<number>,
|
||||
icon: string,
|
||||
iconColor?: (state: State) => string,
|
||||
icon: string | (
|
||||
internals: Map<string, string>,
|
||||
actuals: Map<string, any>,
|
||||
state: State
|
||||
) => string,
|
||||
iconColor?: (
|
||||
internals: Map<string, string>,
|
||||
actuals: Map<string, any>,
|
||||
state: State
|
||||
) => string,
|
||||
ui: Array<ControlUI>
|
||||
};
|
||||
declare type Controls = Map<string,Control>;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue