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:
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user