# Objective allow specifying the left/top/right/bottom border colors separately for ui elements fixes #14773 ## Solution - change `BorderColor` to ```rs pub struct BorderColor { pub left: Color, pub top: Color, pub right: Color, pub bottom: Color, } ``` - generate one ui node per distinct border color, set flags for the active borders - render only the active borders i chose to do this rather than adding multiple colors to the ExtractedUiNode in order to minimize the impact for the common case where all border colors are the same. ## Testing modified the `borders` example to use separate colors:  the behaviour is a bit weird but it mirrors html/css border behaviour. --- ## Migration: To keep the existing behaviour, just change `BorderColor(color)` into `BorderColor::all(color)`. --------- Co-authored-by: ickshonpe <david.curthoys@googlemail.com>  | 
			||
|---|---|---|
| .. | ||
| animated_mesh_control.rs | ||
| animated_mesh_events.rs | ||
| animated_mesh.rs | ||
| animated_transform.rs | ||
| animated_ui.rs | ||
| animation_events.rs | ||
| animation_graph.rs | ||
| animation_masks.rs | ||
| color_animation.rs | ||
| custom_skinned_mesh.rs | ||
| eased_motion.rs | ||
| easing_functions.rs | ||
| gltf_skinned_mesh.rs | ||
| morph_targets.rs | ||