egui icon indicating copy to clipboard operation
egui copied to clipboard

Function : Returns the `FontId` corresponding to the given `TextStyle`

Open rustbasic opened this issue 1 year ago • 0 comments

Function : Returns the FontId corresponding to the given TextStyle

Before : hard

    let font_id = TextStyle::Button.resolve(ui.style());

After : easy

    let font_id = ui.text_style_font_id(&TextStyle::Button);

I'm not sure what would be a good name for the function.

rustbasic avatar Aug 01 '24 16:08 rustbasic