bevy/crates/bevy_ui/src
ickshonpe f7aa83a247
Ui Node Borders (#7795)
# 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>
2023-06-14 22:43:38 +00:00
..
layout Fix errors in the doc comment for UiSurface::upsert_node. (#8796) 2023-06-09 11:59:57 +00:00
render Ui Node Borders (#7795) 2023-06-14 22:43:38 +00:00
widget Fix Node::physical_rect and add a physical_size method (#8551) 2023-05-11 18:38:01 +00:00
accessibility.rs Move bevy_ui accessibility systems to PostUpdate. (#8653) 2023-05-23 23:50:48 +00:00
camera_config.rs bevy_ui: Add FromReflect derives (#8495) 2023-04-26 12:17:23 +00:00
focus.rs Perform relative_cursor_position calculation vectorwise in ui_focus_system (#8795) 2023-06-09 12:01:07 +00:00
geometry.rs Flatten UI Style properties that use Size + remove Size (#8548) 2023-05-16 01:36:32 +00:00
lib.rs Ui Node Borders (#7795) 2023-06-14 22:43:38 +00:00
measurement.rs MeasureFunc improvements (#8402) 2023-05-01 15:40:53 +00:00
node_bundles.rs Ui Node Borders (#7795) 2023-06-14 22:43:38 +00:00
stack.rs Schedule-First: the new and improved add_systems (#8079) 2023-03-18 01:45:34 +00:00
ui_node.rs Ui Node Borders (#7795) 2023-06-14 22:43:38 +00:00
update.rs Split UI Overflow by axis (#8095) 2023-04-17 22:23:52 +00:00