1
0
mirror of https://github.com/emilk/egui.git synced 2026-08-30 13:20:05 -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

@@ -101,7 +101,7 @@ pub trait App {
/// This is the background of your windows if you don't set a central panel.
fn clear_color(&self) -> egui::Rgba {
// NOTE: a bright gray makes the shadows of the windows look weird.
egui::Srgba::from_rgb(12, 12, 12).into()
egui::Color32::from_rgb(12, 12, 12).into()
}
}
@@ -196,7 +196,7 @@ pub trait TextureAllocator {
&mut self,
id: egui::TextureId,
size: (usize, usize),
srgba_pixels: &[egui::Srgba],
srgba_pixels: &[egui::Color32],
);
/// Free the given texture.