1
0
mirror of https://github.com/emilk/egui.git synced 2026-08-30 13:20:05 -04:00

Replace TODO: with TODO(emilk): and update code guidelines

This commit is contained in:
Emil Ernerfeldt
2022-05-21 16:53:25 +02:00
parent 3d5e203d86
commit f3e305a646
60 changed files with 140 additions and 112 deletions

View File

@@ -90,7 +90,7 @@ impl ColorTest {
ui.separator();
// TODO: test color multiplication (image tint),
// TODO(emilk): test color multiplication (image tint),
// to make sure vertex and texture color multiplication is done in linear space.
self.show_gradients(ui, WHITE, (RED, GREEN));

View File

@@ -64,7 +64,7 @@ impl EasyMarkEditor {
ScrollArea::vertical()
.id_source("rendered")
.show(&mut columns[1], |ui| {
// TODO: we can save some more CPU by caching the rendered output.
// TODO(emilk): we can save some more CPU by caching the rendered output.
crate::easy_mark::easy_mark(ui, &self.code);
});
});

View File

@@ -10,7 +10,7 @@
#[derive(Copy, Clone, Debug, Eq, PartialEq)]
pub enum Item<'a> {
/// `\n`
// TODO: add Style here so empty heading still uses up the right amount of space.
// TODO(emilk): add Style here so empty heading still uses up the right amount of space.
Newline,
///
Text(Style, &'a str),