Commit Graph

11 Commits

Author SHA1 Message Date
Emil Ernerfeldt 82b6b3c98d
Tweak Rust Analyzer settings (#7617)
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
2025-10-09 12:56:57 +02:00
valadaptive bc090bd299
Use `RUSTUP_TOOLCHAIN=stable` for rust-analyzer (#5761)
* Resolves #5760

Overrides the toolchain used in rust-analyzer to `stable`, as [suggested
by
rustup](https://rust-analyzer.github.io/book/installation.html#rust-standard-library).
2025-03-21 13:58:02 +01:00
Emil Ernerfeldt bf6ed3adfc
Add `Context::copy_image` (#5533)
* Closes https://github.com/emilk/egui/issues/5424

This adds support for copying images to the system clipboard on native
and on web using `Context::copy_image`.
2024-12-29 18:03:32 +01:00
YgorSouza 0bc59f578b
Fix some typos from the cranky-clippy transition (#4417) 2024-04-26 07:46:25 +02:00
Emil Ernerfeldt 0a6ea15f6c
impl `Clone` for `Fonts` (#3737)
Closes https://github.com/emilk/egui/issues/3731
2023-12-25 19:00:54 +01:00
Emil Ernerfeldt 39e60e367f
Use `egui::ViewportBuilder` in `eframe::NativeOptions` (#3572)
* Part of https://github.com/emilk/egui/issues/3556

This PR replaces a bunch of options in `eframe::NativeOptions` with
`egui::ViewportBuilder`. For instance:

``` diff
 let options = eframe::NativeOptions {
-    initial_window_size: Some(egui::vec2(320.0, 240.0)),
-    drag_and_drop_support: true,
+    viewport: egui::ViewportBuilder::default()
+        .with_inner_size([320.0, 240.0])
+        .with_drag_and_drop(true),
     centered: true,
     ..Default::default()
 };
```
2023-11-19 11:08:47 +01:00
Emil Ernerfeldt a1d0e29e5e vscode: ignore target_wasm 2023-05-22 21:40:16 +02:00
Emil Ernerfeldt e6db7977f9 Fix rust analyzer overrideCommand 2023-05-22 21:40:16 +02:00
Emil Ernerfeldt 1437ec8903 Tell Rust Analyzer to run build to its own target folder 2022-12-12 10:37:41 +01:00
Emil Ernerfeldt 815598a842 .vscode/settings.json: insertFinalNewline and trimTrailingWhitespace
For when people make PR:s touching .toml, .md files
2022-02-10 19:34:07 +01:00
Emil Ernerfeldt b2323bd13e Add VSCode settings with {"editor.formatOnSave": true}
Hopefully this will increase the number of PR:s with correct formatting.
2022-02-09 18:14:55 +01:00