Rust egui Tutorial #18: Tooltips — Add Hover Hints to Any Widget

8views
00
9:58
T
Taught by Celeste AI - AI Coding Coach
View on YouTube
Description
Learn how to add tooltips to any egui widget in Rust! This episode covers three tooltip styles: simple text hints, rich multi-widget tooltips, and cursor-following tooltips. We also add a dark/light theme toggle. Student code: https://github.com/GoCelesteAI/egui_tooltips What You'll Learn: • .on_hover_text() — simple string tooltips on buttons, labels, and text fields • .on_hover_ui() — rich tooltips with headings, labels, and full egui layout • .on_hover_ui_at_pointer() — tooltips that follow the mouse cursor • Chain tooltip methods on any egui Response • Dark/light mode toggle with ctx.set_visuals() • RichText with Color32 for conditional colored text This is Episode 18 of the "Learn egui in Neovim" series, where we build real Rust desktop apps using egui and code everything in Neovim. Series playlist: [link] Chapters: 0:00 Intro 0:12 App Preview 0:22 What We'll Cover 0:54 Create Project & Dependencies 1:08 main.rs — Window Setup 2:02 app.rs — Struct & Default 2:42 impl App — Toolbar with Tooltips 4:22 on_hover_text — Simple Tooltip 4:50 on_hover_ui — Rich Tooltip 5:40 Theme Toggle & set_visuals 6:16 CentralPanel — Count Label & Name Field 7:14 Hover Examples — on_hover_ui_at_pointer 7:56 Status with Conditional Color 8:50 Save & Build 9:08 App Demo 10:08 Recap 10:48 Next Episode #rust #egui #rustlang #gui #tooltips #tutorial #neovim #programming
Back to tutorials

Duration

9:58

Published

March 13, 2026

Added to Codegiz

March 15, 2026

Open in YouTube