1
0
mirror of https://github.com/emilk/egui.git synced 2026-09-02 14:50:03 -04:00

Rename Srgba to Color32

This commit is contained in:
Emil Ernerfeldt
2021-01-02 17:02:18 +01:00
parent 4fc12bf324
commit 73f3d8cf46
31 changed files with 198 additions and 193 deletions

View File

@@ -78,7 +78,7 @@ impl FrameHistory {
}];
let rect = rect.shrink(4.0);
let line_stroke = Stroke::new(1.0, Srgba::additive_luminance(128));
let line_stroke = Stroke::new(1.0, Color32::additive_luminance(128));
if let Some(mouse_pos) = ui.input().mouse.pos {
if rect.contains(mouse_pos) {
@@ -100,7 +100,7 @@ impl FrameHistory {
}
}
let circle_color = Srgba::additive_luminance(196);
let circle_color = Color32::additive_luminance(196);
let radius = 2.0;
let right_side_time = ui.input().time; // Time at right side of screen