bevyengine / bevyengine/bevy

Feathers: `pane_header()` and `pane_body()` border inconsistency

Open
#25,127 1 comment 0 reactions 0 assignees View on GitHub
A-UI C-Bug S-Needs-Design
Dominant language
Rust
Stars
48.2k
Forks
4.8k
Avg merge
3d 22h
Merged PRs (30d)
161

Description

`pane_header()`'s Node is bordered while `pane_body()`'s isn't which produces a visual inconsistency, with a jarring 1 pixel offset:

Image

Adding the same border on the body's left, bottom and right sides feels more pleasing overall, as illustrated by this comparison on `feathers_gallery`:

Image
Image

Open question is how to deal with headerless panes, which should add a top border. As a matter of fact they should also fix their top corners radii too, to mach the bottom ones.

Is this too naive ?
```rust
pub fn pane_body(header_less: bool) -> impl Scene {}
```

Can the body detect the presence of a sibling header automatically ?

Contributor guide

Open the contributing guide

Research direction

Locate the Feathers implementations of pane_header() and pane_body(), then compare their border and corner-radius behavior in the feathers_gallery example. Check how headerless panes are represented or rendered before deciding whether the body needs explicit context. Done means the panes have consistent borders and corner radii, including the intended headerless case.

Written by the indexing model from the issue text.

Assessment

Tech stack
rust
Domain
design, game-dev
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Quiet
Clarity
Mostly clear
Newbie friendliness
48/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.