emilk / emilk/egui

Visual indication support for menu_image_button and ImageButton with no frame

Open
#3,560 2 comments 0 reactions 0 assignees View on GitHub
bug
Dominant language
Rust
Stars
30.6k
Forks
2.1k
Avg merge
1d 9h
Merged PRs (30d)
72

Description

**Describe the bug**
Currently tab doesn't show any indicator for both `menu_image_button` and `ImageButton`

**To Reproduce**
Steps to reproduce the behavior:
1. Make a new `ImageButton` e.g.
```rust
ui.add(
ImageButton::new(SizedTexture::new(
texture_id,
egui::Vec2::new(5.0, 5.0),
))
.frame(false)
)
```
2. Hit `tab` and notice that the selected element is isn't shown.

**Expected behavior**
Like other buttons an image button should show a selection indicator even without a frame

Contributor guide

Open the contributing guide

Research direction

Start by locating the ImageButton and menu_image_button implementations and compare their tab-focus rendering with other buttons. Reproduce the provided frame(false) example, then verify that tab selection shows an indicator for both image-button variants without a frame.

Written by the indexing model from the issue text.

Assessment

Tech stack
rust
Domain
frontend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.