mirror of
https://github.com/GraphiteEditor/Graphite.git
synced 2025-09-13 08:26:18 +00:00
Add two-way tool option messaging system between frontend/backend (#361)
* Add two-way tool option messaging system * Rename tool option functions * Move repeated frontend messaging code to function * Address style comments * Rename variable to be more descriptive * Move tool options update to SetActiveTool message * Refactor record of all tool options * Only pass active tool options to bar Co-authored-by: Keavon Chambers <keavon@keavon.com>
This commit is contained in:
parent
05ac4ac9b8
commit
9e73cce281
7 changed files with 59 additions and 32 deletions
|
@ -127,10 +127,12 @@ function newUpdateWorkingColors(input: any): UpdateWorkingColors {
|
|||
|
||||
export interface SetActiveTool {
|
||||
tool_name: string;
|
||||
tool_options: object;
|
||||
}
|
||||
function newSetActiveTool(input: any): SetActiveTool {
|
||||
return {
|
||||
tool_name: input.tool_name,
|
||||
tool_options: input.tool_options,
|
||||
};
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue