Open Resonanz opened 1 week ago
Hi!
Since the Window::new()
function needs an Into<WidgetText>
(WidgetText) as an argument, you can actually pass in a RichText
so you can directly modify the header's style.
Example:
egui::Window::new(RichText::from("Cool window").size(20.)).show(ctx, |ui| {});
The first image below appears to me at least to have a title font that is far to large (I am using Ubuntu 24.04).
The second image shows a reduced font size but still doesn't look great to me. The code for reducing the font size for the second case is below.
A simple method call for setting the font properties would be very helpful.