mirror of
https://github.com/emilk/egui.git
synced 2026-09-01 14:20:04 -04:00
@@ -4,7 +4,7 @@ version = "0.23.0"
|
||||
authors = ["Emil Ernerfeldt <emil.ernerfeldt@gmail.com>"]
|
||||
description = "An easy-to-use immediate mode GUI that runs on both web and native"
|
||||
edition = "2021"
|
||||
rust-version = "1.70"
|
||||
rust-version = "1.72"
|
||||
homepage = "https://github.com/emilk/egui"
|
||||
license = "MIT OR Apache-2.0"
|
||||
readme = "../../README.md"
|
||||
|
||||
@@ -1399,7 +1399,7 @@ impl Style {
|
||||
fn text_styles_ui(ui: &mut Ui, text_styles: &mut BTreeMap<TextStyle, FontId>) -> Response {
|
||||
ui.vertical(|ui| {
|
||||
crate::Grid::new("text_styles").show(ui, |ui| {
|
||||
for (text_style, font_id) in text_styles.iter_mut() {
|
||||
for (text_style, font_id) in &mut *text_styles {
|
||||
ui.label(RichText::new(text_style.to_string()).font(font_id.clone()));
|
||||
crate::introspection::font_id_ui(ui, font_id);
|
||||
ui.end_row();
|
||||
|
||||
Reference in New Issue
Block a user