Fix panic with many participants

This commit is contained in:
Conrad Irwin 2024-01-12 10:01:18 -07:00
parent bc09ce6ffc
commit 981858ef3c

View file

@ -37,7 +37,7 @@ impl Color {
Color::Info => cx.theme().status().info, Color::Info => cx.theme().status().info,
Color::Placeholder => cx.theme().colors().text_placeholder, Color::Placeholder => cx.theme().colors().text_placeholder,
Color::Accent => cx.theme().colors().text_accent, Color::Accent => cx.theme().colors().text_accent,
Color::Player(i) => cx.theme().styles.player.0[i.clone() as usize].cursor, Color::Player(i) => cx.theme().styles.player.color_for_participant(*i).cursor,
Color::Error => cx.theme().status().error, Color::Error => cx.theme().status().error,
Color::Selected => cx.theme().colors().text_accent, Color::Selected => cx.theme().colors().text_accent,
Color::Success => cx.theme().status().success, Color::Success => cx.theme().status().success,