Added bring to front and send to back

This commit is contained in:
Yousef Khadadeh 2026-01-20 11:59:03 +03:00
parent c3cc09e6b4
commit 0821f0840e
5 changed files with 143 additions and 0 deletions

View file

@ -186,6 +186,14 @@ bool DrawingProgram::selection_action_menu(Vector2f popupPos) {
selection.delete_all();
shouldClose = true;
}
if(t.gui.text_button_left_transparent("Bring to front of layer", "Bring to front of layer")) {
selection.push_selection_to_front();
shouldClose = true;
}
if(t.gui.text_button_left_transparent("Send to back of layer", "Send to back of layer")) {
selection.push_selection_to_back();
shouldClose = true;
}
}
});
return !shouldClose;