INNER CODE UNIT · Rust
select_color_text
David-OConnor/plascad · src/gui/mod.rs:419
pub fn select_color_text(text: &str, selected: bool) -> RichText {
let color = if selected {
Color32::GREEN
} else {
Color32::WHITE
};
RichText::new(text).color(color)
}