Added text/highlight colors to text edit tool
This commit is contained in:
parent
0087048a02
commit
c85fdbb61f
11 changed files with 136 additions and 100 deletions
|
|
@ -38,14 +38,14 @@ void EllipseDrawEditTool::edit_gui() {
|
|||
}, commit_update_and_layout_func);
|
||||
if(a.d.fillStrokeMode == 0 || a.d.fillStrokeMode == 2) {
|
||||
left_to_right_line_layout(gui, [&] {
|
||||
t.color_button_right("Fill color button", &a.d.fillColor, commit_update_func);
|
||||
t.color_button_right("Fill color button", &a.d.fillColor, { .onChange = commit_update_func });
|
||||
text_label(gui, "Fill Color");
|
||||
});
|
||||
}
|
||||
if(a.d.fillStrokeMode == 1 || a.d.fillStrokeMode == 2) {
|
||||
slider_scalar_field(gui, "relstrokewidth", "Outline Size", &a.d.strokeWidth, 3.0f, 40.0f, {.onEdit = commit_update_func});
|
||||
left_to_right_line_layout(gui, [&] {
|
||||
t.color_button_right("Outline color button", &a.d.strokeColor, commit_update_func);
|
||||
t.color_button_right("Outline color button", &a.d.strokeColor, { .onChange = commit_update_func });
|
||||
text_label(gui, "Outline Color");
|
||||
});
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue