diff --git a/.gitattributes b/.gitattributes index bffb89d4ad0..2fe00c003bf 100644 --- a/.gitattributes +++ b/.gitattributes @@ -1,3 +1,3 @@ * text=auto eol=lf Cargo.lock linguist-generated=false -**/tests/snapshots/**/*.png filter=lfs diff=lfs merge=lfs -text +*.png filter=lfs diff=lfs merge=lfs -text diff --git a/clippy.toml b/clippy.toml index f480ca93d7e..5076633912b 100644 --- a/clippy.toml +++ b/clippy.toml @@ -1,77 +1,77 @@ -# There is also a scripts/clippy_wasm/clippy.toml which forbids some methods that are not available in wasm. - -# ----------------------------------------------------------------------------- -# Section identical to scripts/clippy_wasm/clippy.toml: - -msrv = "1.76" - -allow-unwrap-in-tests = true - -# https://doc.rust-lang.org/nightly/clippy/lint_configuration.html#avoid-breaking-exported-api -# We want suggestions, even if it changes public API. -avoid-breaking-exported-api = false - -max-fn-params-bools = 2 # TODO(emilk): decrease this to 1 - -# https://rust-lang.github.io/rust-clippy/master/index.html#/large_include_file -max-include-file-size = 1000000 - -# https://rust-lang.github.io/rust-clippy/master/index.html#/type_complexity -type-complexity-threshold = 350 - -# ----------------------------------------------------------------------------- - -# https://rust-lang.github.io/rust-clippy/master/index.html#disallowed_macros -disallowed-macros = [ - 'dbg', - 'std::unimplemented', - - # TODO(emilk): consider forbidding these to encourage the use of proper log stream, and then explicitly allow legitimate uses - # 'std::eprint', - # 'std::eprintln', - # 'std::print', - # 'std::println', -] - -# https://rust-lang.github.io/rust-clippy/master/index.html#disallowed_methods -disallowed-methods = [ - "std::env::temp_dir", # Use the tempdir crate instead - - # There are many things that aren't allowed on wasm, - # but we cannot disable them all here (because of e.g. https://github.com/rust-lang/rust-clippy/issues/10406) - # so we do that in `clipppy_wasm.toml` instead. - - "std::thread::spawn", # Use `std::thread::Builder` and name the thread - - "sha1::Digest::new", # SHA1 is cryptographically broken - - "std::panic::catch_unwind", # We compile with `panic = "abort"` -] - -# https://rust-lang.github.io/rust-clippy/master/index.html#disallowed_names -disallowed-names = [] - -# https://rust-lang.github.io/rust-clippy/master/index.html#disallowed_types -disallowed-types = [ - # Use the faster & simpler non-poisonable primitives in `parking_lot` instead - "std::sync::Mutex", - "std::sync::RwLock", - "std::sync::Condvar", - # "std::sync::Once", # enabled for now as the `log_once` macro uses it internally - - "ring::digest::SHA1_FOR_LEGACY_USE_ONLY", # SHA1 is cryptographically broken - - "winit::dpi::LogicalSize", # We do our own pixels<->point conversion, taking `egui_ctx.zoom_factor` into account - "winit::dpi::LogicalPosition", # We do our own pixels<->point conversion, taking `egui_ctx.zoom_factor` into account -] - -# ----------------------------------------------------------------------------- - -# Allow-list of words for markdown in docstrings https://rust-lang.github.io/rust-clippy/master/index.html#doc_markdown -doc-valid-idents = [ - # You must also update the same list in the root `clippy.toml`! - "AccessKit", - "WebGL", - "WebGPU", - "..", -] +# There is also a scripts/clippy_wasm/clippy.toml which forbids some methods that are not available in wasm. + +# ----------------------------------------------------------------------------- +# Section identical to scripts/clippy_wasm/clippy.toml: + +msrv = "1.76" + +allow-unwrap-in-tests = true + +# https://doc.rust-lang.org/nightly/clippy/lint_configuration.html#avoid-breaking-exported-api +# We want suggestions, even if it changes public API. +avoid-breaking-exported-api = false + +max-fn-params-bools = 2 # TODO(emilk): decrease this to 1 + +# https://rust-lang.github.io/rust-clippy/master/index.html#/large_include_file +max-include-file-size = 1000000 + +# https://rust-lang.github.io/rust-clippy/master/index.html#/type_complexity +type-complexity-threshold = 350 + +# ----------------------------------------------------------------------------- + +# https://rust-lang.github.io/rust-clippy/master/index.html#disallowed_macros +disallowed-macros = [ + 'dbg', + 'std::unimplemented', + + # TODO(emilk): consider forbidding these to encourage the use of proper log stream, and then explicitly allow legitimate uses + # 'std::eprint', + # 'std::eprintln', + # 'std::print', + # 'std::println', +] + +# https://rust-lang.github.io/rust-clippy/master/index.html#disallowed_methods +disallowed-methods = [ + "std::env::temp_dir", # Use the tempdir crate instead + + # There are many things that aren't allowed on wasm, + # but we cannot disable them all here (because of e.g. https://github.com/rust-lang/rust-clippy/issues/10406) + # so we do that in `clipppy_wasm.toml` instead. + + "std::thread::spawn", # Use `std::thread::Builder` and name the thread + + "sha1::Digest::new", # SHA1 is cryptographically broken + + "std::panic::catch_unwind", # We compile with `panic = "abort"` +] + +# https://rust-lang.github.io/rust-clippy/master/index.html#disallowed_names +disallowed-names = [] + +# https://rust-lang.github.io/rust-clippy/master/index.html#disallowed_types +disallowed-types = [ + # Use the faster & simpler non-poisonable primitives in `parking_lot` instead + "std::sync::Mutex", + "std::sync::RwLock", + "std::sync::Condvar", + # "std::sync::Once", # enabled for now as the `log_once` macro uses it internally + + "ring::digest::SHA1_FOR_LEGACY_USE_ONLY", # SHA1 is cryptographically broken + + "winit::dpi::LogicalSize", # We do our own pixels<->point conversion, taking `egui_ctx.zoom_factor` into account + "winit::dpi::LogicalPosition", # We do our own pixels<->point conversion, taking `egui_ctx.zoom_factor` into account +] + +# ----------------------------------------------------------------------------- + +# Allow-list of words for markdown in docstrings https://rust-lang.github.io/rust-clippy/master/index.html#doc_markdown +doc-valid-idents = [ + # You must also update the same list in the root `clippy.toml`! + "AccessKit", + "WebGL", + "WebGPU", + "..", +] diff --git a/crates/eframe/data/icon.png b/crates/eframe/data/icon.png index cf1e6c3ebdb..91a0f0775c2 100644 Binary files a/crates/eframe/data/icon.png and b/crates/eframe/data/icon.png differ diff --git a/crates/egui/assets/ferris.png b/crates/egui/assets/ferris.png index 8741baa19d0..129c7f931c0 100644 Binary files a/crates/egui/assets/ferris.png and b/crates/egui/assets/ferris.png differ diff --git a/crates/egui_demo_lib/data/icon.png b/crates/egui_demo_lib/data/icon.png index 87f15e746e4..eb17ab1a223 100644 Binary files a/crates/egui_demo_lib/data/icon.png and b/crates/egui_demo_lib/data/icon.png differ diff --git a/examples/confirm_exit/screenshot.png b/examples/confirm_exit/screenshot.png index 931f17c9882..854955cf78d 100644 Binary files a/examples/confirm_exit/screenshot.png and b/examples/confirm_exit/screenshot.png differ diff --git a/examples/custom_3d_glow/screenshot.png b/examples/custom_3d_glow/screenshot.png index cea68ab36c2..c3907a5ec21 100644 Binary files a/examples/custom_3d_glow/screenshot.png and b/examples/custom_3d_glow/screenshot.png differ diff --git a/examples/custom_font/screenshot.png b/examples/custom_font/screenshot.png index 97132d02cd0..7e6edc3dd59 100644 Binary files a/examples/custom_font/screenshot.png and b/examples/custom_font/screenshot.png differ diff --git a/examples/custom_font_style/screenshot.png b/examples/custom_font_style/screenshot.png index 0a8cdf08e5e..bb7727a1dbe 100644 Binary files a/examples/custom_font_style/screenshot.png and b/examples/custom_font_style/screenshot.png differ diff --git a/examples/custom_keypad/screenshot.png b/examples/custom_keypad/screenshot.png index 632459e51aa..1d860e14046 100644 Binary files a/examples/custom_keypad/screenshot.png and b/examples/custom_keypad/screenshot.png differ diff --git a/examples/custom_style/screenshot.png b/examples/custom_style/screenshot.png index dc051c5d942..4c2ad30b041 100644 Binary files a/examples/custom_style/screenshot.png and b/examples/custom_style/screenshot.png differ diff --git a/examples/custom_window_frame/screenshot.png b/examples/custom_window_frame/screenshot.png index 040a31ff2db..92e11a695ee 100644 Binary files a/examples/custom_window_frame/screenshot.png and b/examples/custom_window_frame/screenshot.png differ diff --git a/examples/file_dialog/screenshot.png b/examples/file_dialog/screenshot.png index 263a8521c72..7a1cc041736 100644 Binary files a/examples/file_dialog/screenshot.png and b/examples/file_dialog/screenshot.png differ diff --git a/examples/hello_world/screenshot.png b/examples/hello_world/screenshot.png index 9581b8cf97e..da6ceede9b6 100644 Binary files a/examples/hello_world/screenshot.png and b/examples/hello_world/screenshot.png differ diff --git a/examples/hello_world_simple/screenshot.png b/examples/hello_world_simple/screenshot.png index e7423f00369..8e5d56570f9 100644 Binary files a/examples/hello_world_simple/screenshot.png and b/examples/hello_world_simple/screenshot.png differ diff --git a/examples/images/screenshot.png b/examples/images/screenshot.png index 87d3d53d4c8..7d81312aafd 100644 Binary files a/examples/images/screenshot.png and b/examples/images/screenshot.png differ diff --git a/examples/keyboard_events/screenshot.png b/examples/keyboard_events/screenshot.png index e144d870f1a..ed6ba6837f1 100644 Binary files a/examples/keyboard_events/screenshot.png and b/examples/keyboard_events/screenshot.png differ diff --git a/examples/puffin_profiler/screenshot.png b/examples/puffin_profiler/screenshot.png index 1792f0e649d..319a347308d 100644 Binary files a/examples/puffin_profiler/screenshot.png and b/examples/puffin_profiler/screenshot.png differ diff --git a/examples/screenshot/screenshot.png b/examples/screenshot/screenshot.png index 27bf79908a1..9522383246a 100644 Binary files a/examples/screenshot/screenshot.png and b/examples/screenshot/screenshot.png differ diff --git a/examples/serial_windows/screenshot.png b/examples/serial_windows/screenshot.png index 6926765b04e..b1300a4194f 100644 Binary files a/examples/serial_windows/screenshot.png and b/examples/serial_windows/screenshot.png differ diff --git a/examples/user_attention/screenshot.png b/examples/user_attention/screenshot.png index d7ee61cce5f..015bdf7ecdc 100644 Binary files a/examples/user_attention/screenshot.png and b/examples/user_attention/screenshot.png differ diff --git a/media/demo-2020-08-21.png b/media/demo-2020-08-21.png index 00101a6d510..a852ab8309c 100644 Binary files a/media/demo-2020-08-21.png and b/media/demo-2020-08-21.png differ diff --git a/media/demo-2020-10-24.png b/media/demo-2020-10-24.png index 96282a706cd..affeff063cc 100644 Binary files a/media/demo-2020-10-24.png and b/media/demo-2020-10-24.png differ diff --git a/media/demo-2021-01-02.png b/media/demo-2021-01-02.png index d6aff2e68fd..43f524a8b54 100644 Binary files a/media/demo-2021-01-02.png and b/media/demo-2021-01-02.png differ diff --git a/media/demo_light_mode.png b/media/demo_light_mode.png index 993b880abc3..16e33eb724d 100644 Binary files a/media/demo_light_mode.png and b/media/demo_light_mode.png differ diff --git a/media/light_theme.png b/media/light_theme.png index e2026ef259b..e7e991892e6 100644 Binary files a/media/light_theme.png and b/media/light_theme.png differ diff --git a/media/pompodoro-skin.png b/media/pompodoro-skin.png index cbb18ae0e7d..7f7b71fccc7 100644 Binary files a/media/pompodoro-skin.png and b/media/pompodoro-skin.png differ diff --git a/media/rerun_io_logo.png b/media/rerun_io_logo.png index cda0426627d..8e3f89a59ea 100644 Binary files a/media/rerun_io_logo.png and b/media/rerun_io_logo.png differ diff --git a/media/widget_gallery_0.23_light.png b/media/widget_gallery_0.23_light.png index a975f97cdde..4a10a56b707 100644 Binary files a/media/widget_gallery_0.23_light.png and b/media/widget_gallery_0.23_light.png differ