mirror of
https://github.com/bevyengine/bevy
synced 2024-12-19 09:33:06 +00:00
a0f5ea0d36
# Objective Fixes #13479 This also fixes the gaps you can sometimes observe in outlines (screenshot from main, not this PR): <img width="636" alt="outline-gaps" src="https://github.com/user-attachments/assets/c11dae24-20f5-4aea-8ffc-1894ad2a2b79"> The outline around the last item in each section has vertical gaps. ## Solution Draw the outlines with corner radius using the existing border rendering for uinodes. The outline radius is very simple to calculate. We just take the computed border radius of the node, and if it's greater than zero, add it to the distance from the edge of the node to the outer edge of the node's outline. --- ## Showcase <img width="634" alt="outlines-radius" src="https://github.com/user-attachments/assets/1ecda26c-65c5-41ef-87e4-5d9171ddc3ae"> --------- Co-authored-by: Jan Hohenheim <jan@hohenheim.ch> |
||
---|---|---|
.. | ||
layout | ||
render | ||
widget | ||
accessibility.rs | ||
focus.rs | ||
geometry.rs | ||
lib.rs | ||
measurement.rs | ||
node_bundles.rs | ||
picking_backend.rs | ||
stack.rs | ||
ui_material.rs | ||
ui_node.rs | ||
update.rs |