![]() # Objective Implement borders for UI nodes. Relevant discussion: #7785 Related: #5924, #3991 <img width="283" alt="borders" src="https://user-images.githubusercontent.com/27962798/220968899-7661d5ec-6f5b-4b0f-af29-bf9af02259b5.PNG"> ## Solution Add an extraction function to draw the borders. --- Can only do one colour rectangular borders due to the limitations of the Bevy UI renderer. Maybe it can be combined with #3991 eventually to add curved border support. ## Changelog * Added a component `BorderColor`. * Added the `extract_uinode_borders` system to the UI Render App. * Added the UI example `borders` --------- Co-authored-by: Nico Burns <nico@nicoburns.com> |
||
---|---|---|
.. | ||
borders.rs | ||
button.rs | ||
flex_layout.rs | ||
font_atlas_debug.rs | ||
grid.rs | ||
overflow_debug.rs | ||
overflow.rs | ||
relative_cursor_position.rs | ||
size_constraints.rs | ||
text_debug.rs | ||
text_wrap_debug.rs | ||
text.rs | ||
transparency_ui.rs | ||
ui_scaling.rs | ||
ui.rs | ||
viewport_debug.rs | ||
window_fallthrough.rs | ||
z_index.rs |