Emil Ernerfeldt
2bc2fb9c39
Fix some lints found by clippy 1.73
2023-10-06 09:01:31 +02:00
Emil Ernerfeldt
12b6f2c3a0
Fix doc-link to egui_extras::install_image_loaders
2023-09-28 13:58:35 +02:00
Emil Ernerfeldt
d975c1a401
Fix HTTP web demo ( #3407 )
...
* Revert ttf-parser from 0.19.2 to 0.19.1
0.19.2's doesn't work with wasm in debug builds
* Update to poll-promise 0.3.0
* Publish new web demo
* Fix typo in changelog
* Explain why image_viewer is not part of the official web demo app
* Fix typos
* Make rfd native-only dependency
2023-09-28 12:06:55 +02:00
Emil Ernerfeldt
5a0186fa2b
Release 0.23.0 - New image API
2023-09-28 08:44:33 +02:00
Emil Ernerfeldt
9b2bcdb4a2
New web demo for 0.23
2023-09-27 16:43:53 +02:00
Emil Ernerfeldt
9a947e5547
Final image API doc tweaks
2023-09-27 16:40:26 +02:00
Emil Ernerfeldt
cfbad1f865
Update example screenshots
2023-09-27 15:34:39 +02:00
Emil Ernerfeldt
a128b10ef4
Update Rerun.io logo and copy
2023-09-27 15:27:51 +02:00
Emil Ernerfeldt
dbf3405597
Explain the purpose of the ImageSource::Bytes URI ( #3402 )
...
Closes https://github.com/emilk/egui/issues/3363
2023-09-27 13:53:33 +02:00
Emil Ernerfeldt
a9272e0e55
Update dependencies in Cargo.lock ( #3401 )
...
* Update to ehttp 0.3.1 with better error messages
* Explain why we are using an old cocoa
* cargo update
❯ cargo update
Updating crates.io index
Updating accesskit v0.11.0 -> v0.11.2
Updating accesskit_consumer v0.15.0 -> v0.15.2
Updating accesskit_macos v0.7.0 -> v0.9.0
Updating accesskit_unix v0.5.0 -> v0.5.2
Updating accesskit_windows v0.14.0 -> v0.14.3
Updating accesskit_winit v0.14.0 -> v0.14.4
Updating addr2line v0.19.0 -> v0.21.0
Removing ahash v0.7.6
Updating aho-corasick v1.0.1 -> v1.1.1
Adding allocator-api2 v0.2.16
Updating android-activity v0.4.1 -> v0.4.3
Adding android-tzdata v0.1.1
Updating anyhow v1.0.71 -> v1.0.75
Updating arboard v3.2.0 -> v3.2.1
Updating arrayvec v0.7.2 -> v0.7.4
Updating async-channel v1.8.0 -> v1.9.0
Updating async-executor v1.5.1 -> v1.5.3
Adding async-fs v1.6.0
Updating async-lock v2.7.0 -> v2.8.0
Adding async-process v1.8.0
Updating async-recursion v1.0.4 -> v1.0.5
Adding async-signal v0.2.1
Updating async-task v4.4.0 -> v4.4.1
Updating async-trait v0.1.68 -> v0.1.73
Adding atomic-waker v1.1.2
Updating backtrace v0.3.67 -> v0.3.69
Adding base64 v0.21.4
Updating bindgen v0.65.1 -> v0.68.1
Updating bitflags v2.3.1 -> v2.4.0
Adding blocking v1.4.0
Updating bumpalo v3.13.0 -> v3.14.0
Updating bytemuck v1.13.1 -> v1.14.0
Updating bytemuck_derive v1.4.1 -> v1.5.0
Updating bytes v1.4.0 -> v1.5.0
Updating calloop v0.10.5 -> v0.10.6
Updating cc v1.0.79 -> v1.0.83
Updating cfg-expr v0.15.1 -> v0.15.5
Updating chrono v0.4.24 -> v0.4.31
Updating cocoa-foundation v0.1.1 -> v0.1.2
Updating concurrent-queue v2.2.0 -> v2.3.0
Updating core-graphics-types v0.1.1 -> v0.1.2
Updating cpufeatures v0.2.7 -> v0.2.9
Updating crossbeam-utils v0.8.15 -> v0.8.16
Adding deranged v0.3.8
Removing dirs v4.0.0
Removing dirs-sys v0.3.7
Updating dlib v0.5.0 -> v0.5.2
Updating dyn-clone v1.0.11 -> v1.0.14
Updating either v1.8.1 -> v1.9.0
Updating enum-map v2.5.0 -> v2.6.3
Updating enum-map-derive v0.11.0 -> v0.14.0
Updating enumflags2 v0.7.7 -> v0.7.8
Updating enumflags2_derive v0.7.7 -> v0.7.8
Updating enumn v0.1.8 -> v0.1.12
Adding equivalent v1.0.1
Updating errno v0.3.1 -> v0.3.3
Adding event-listener v3.0.0
Updating fancy-regex v0.7.1 -> v0.11.0
Adding fastrand v2.0.1
Adding fdeflate v0.3.0
Updating flate2 v1.0.25 -> v1.0.27
Updating form_urlencoded v1.1.0 -> v1.2.0
Updating getrandom v0.2.9 -> v0.2.10
Updating gimli v0.27.2 -> v0.28.0
Updating glutin v0.30.8 -> v0.30.10
Updating glutin_egl_sys v0.5.0 -> v0.5.1
Updating gpu-descriptor v0.2.3 -> v0.2.4
Updating gpu-descriptor-types v0.1.1 -> v0.1.2
Adding hashbrown v0.14.0
Updating hermit-abi v0.3.1 -> v0.3.3
Updating iana-time-zone v0.1.56 -> v0.1.57
Updating idna v0.3.0 -> v0.4.0
Updating image v0.24.6 -> v0.24.7
Adding indexmap v2.0.0
Updating io-lifetimes v1.0.10 -> v1.0.11
Updating is-terminal v0.4.7 -> v0.4.9
Updating itoa v1.0.6 -> v1.0.9
Updating libc v0.2.144 -> v0.2.148
Adding linux-raw-sys v0.4.7
Updating lock_api v0.4.9 -> v0.4.10
Updating log v0.4.17 -> v0.4.20
Updating memchr v2.5.0 -> v2.6.3
Adding memoffset v0.7.1
Updating miniz_oxide v0.6.2 -> v0.7.1
Updating mio v0.8.6 -> v0.8.8
Adding nix v0.26.4
Updating num-traits v0.2.15 -> v0.2.16
Adding num_enum v0.6.1
Adding num_enum_derive v0.6.1
Updating object v0.30.3 -> v0.32.1
Updating once_cell v1.17.1 -> v1.18.0
Updating orbclient v0.3.45 -> v0.3.46
Updating os_str_bytes v6.5.0 -> v6.5.1
Updating parking v2.1.0 -> v2.1.1
Updating parking_lot_core v0.9.7 -> v0.9.8
Updating paste v1.0.12 -> v1.0.14
Updating percent-encoding v2.2.0 -> v2.3.0
Updating pin-project-lite v0.2.9 -> v0.2.13
Adding piper v0.2.1
Updating plist v1.4.0 -> v1.5.0
Updating png v0.17.7 -> v0.17.10
Updating prettyplease v0.2.5 -> v0.2.15
Updating proc-macro2 v1.0.58 -> v1.0.67
Updating profiling v1.0.8 -> v1.0.11
Updating quick-xml v0.26.0 -> v0.29.0
Updating quote v1.0.27 -> v1.0.33
Updating regex v1.8.2 -> v1.9.5
Adding regex-automata v0.3.8
Removing regex-syntax v0.6.29
Removing regex-syntax v0.7.2
Adding regex-syntax v0.7.5
Updating ron v0.8.0 -> v0.8.1
Removing rustix v0.37.19
Adding rustix v0.37.23
Adding rustix v0.38.14
Updating rustls v0.20.8 -> v0.21.7
Adding rustls-webpki v0.100.3
Adding rustls-webpki v0.101.6
Updating ryu v1.0.13 -> v1.0.15
Updating scopeguard v1.1.0 -> v1.2.0
Updating serde v1.0.163 -> v1.0.188
Updating serde_derive v1.0.163 -> v1.0.188
Updating serde_json v1.0.96 -> v1.0.107
Updating serde_repr v0.1.12 -> v0.1.16
Updating serde_spanned v0.6.2 -> v0.6.3
Updating sha1 v0.10.5 -> v0.10.6
Updating shlex v1.1.0 -> v1.2.0
Adding signal-hook-registry v1.4.1
Adding simd-adler32 v0.3.7
Updating siphasher v0.3.10 -> v0.3.11
Updating slab v0.4.8 -> v0.4.9
Updating smallvec v1.10.0 -> v1.11.1
Updating smithay-client-toolkit v0.16.0 -> v0.16.1
Updating strict-num v0.1.0 -> v0.1.1
Updating syn v2.0.16 -> v2.0.37
Updating syntect v5.0.0 -> v5.1.0
Updating system-deps v6.1.0 -> v6.1.1
Updating target-lexicon v0.12.7 -> v0.12.11
Updating tempfile v3.5.0 -> v3.8.0
Updating termcolor v1.2.0 -> v1.3.0
Updating thiserror v1.0.40 -> v1.0.49
Updating thiserror-impl v1.0.40 -> v1.0.49
Removing time v0.1.45
Removing time v0.3.21
Adding time v0.3.29
Updating time-core v0.1.1 -> v0.1.2
Updating time-macros v0.2.9 -> v0.2.15
Updating toml v0.7.4 -> v0.7.8
Updating toml_datetime v0.6.2 -> v0.6.3
Updating toml_edit v0.19.9 -> v0.19.15
Updating tracing-attributes v0.1.24 -> v0.1.26
Updating ttf-parser v0.19.0 -> v0.19.2
Updating tts v0.25.5 -> v0.25.6
Updating typenum v1.16.0 -> v1.17.0
Updating unicode-ident v1.0.8 -> v1.0.12
Updating unicode-width v0.1.10 -> v0.1.11
Updating ureq v2.6.2 -> v2.7.1
Updating url v2.3.1 -> v2.4.1
Updating waker-fn v1.1.0 -> v1.1.1
Updating walkdir v2.3.3 -> v2.4.0
Removing wasi v0.10.0+wasi-snapshot-preview1
Updating wasm-bindgen-futures v0.4.36 -> v0.4.37
Updating webbrowser v0.8.10 -> v0.8.11
Removing webpki v0.22.1
Updating webpki-roots v0.22.6 -> v0.23.1
Updating which v4.4.0 -> v4.4.2
Updating winapi-util v0.1.5 -> v0.1.6
Adding windows v0.51.1
Adding windows-core v0.51.1
Updating windows-implement v0.44.0 -> v0.48.0
Updating windows-interface v0.44.0 -> v0.48.0
Updating windows-targets v0.48.0 -> v0.48.5
Updating windows_aarch64_gnullvm v0.48.0 -> v0.48.5
Updating windows_aarch64_msvc v0.48.0 -> v0.48.5
Updating windows_i686_gnu v0.48.0 -> v0.48.5
Updating windows_i686_msvc v0.48.0 -> v0.48.5
Updating windows_x86_64_gnu v0.48.0 -> v0.48.5
Updating windows_x86_64_gnullvm v0.48.0 -> v0.48.5
Updating windows_x86_64_msvc v0.48.0 -> v0.48.5
Updating winnow v0.4.6 -> v0.5.15
Adding xdg-home v1.0.0
Updating xml-rs v0.8.15 -> v0.8.19
Updating zbus v3.10.0 -> v3.14.1
Updating zbus_macros v3.10.0 -> v3.14.1
Updating zbus_names v2.5.1 -> v2.6.0
Updating zvariant v3.14.0 -> v3.15.0
Updating zvariant_derive v3.14.0 -> v3.15.0
❯ cargo update -p ureq --precise 2.6.2
Updating crates.io index
Downgrading rustls v0.21.7 -> v0.20.9
Removing rustls-webpki v0.100.3
Removing rustls-webpki v0.101.6
Downgrading ureq v2.7.1 -> v2.6.2
Adding webpki v0.22.1
Downgrading webpki-roots v0.23.1 -> v0.22.6
❯ cargo update -p plist --precise 1.4.0
Updating crates.io index
Downgrading plist v1.5.0 -> v1.4.0
Downgrading quick-xml v0.29.0 -> v0.26.0
❯ cargo update -p ron --precise 0.8.0
Updating crates.io index
Removing base64 v0.21.4
Downgrading ron v0.8.1 -> v0.8.0
* Remove unnecessary mut
* Silence over-eager clippy
* Add misisng `'static` lifetime to `run_simple_native`
* ❯ cargo update -p android-activity --precise 0.4.1
Updating crates.io index
Downgrading android-activity v0.4.2 -> v0.4.1
Removing num_enum v0.6.1
Removing num_enum_derive v0.6.1
2023-09-27 12:49:24 +02:00
Emil Ernerfeldt
f138131bc8
Improve top-level crate docs, and sort features is Cargo.toml
2023-09-27 11:40:28 +02:00
Emil Ernerfeldt
8ef443948f
Improve the About windows in the demo library ( #3400 )
...
* Tweak size of rerun logo
* Move history of immediate mode to docs
* Add link to Rerun.io from demo-lib's About window
2023-09-27 11:38:52 +02:00
Emil Ernerfeldt
35945dea46
Misc code cleanup ( #3398 )
...
* eframe README: explain how to enable copy/paste
* Implement Debug for a couple of structs
* Code cleanup
* Better docs
* profile ron serialization
* CI: Allow "exclude from changelog" as the only label
2023-09-27 09:06:17 +02:00
Emil Ernerfeldt
b3e19f5b7d
Move App::persist_window to NativeOptions and App::max_size_points to WebOptions ( #3397 )
...
* Move `App::persist_window` to `NativeOptions`
* Move `App::max_size_points` to `WebOptions`
* Build fixes
2023-09-27 08:48:48 +02:00
Emil Ernerfeldt
1b18f8e266
Add Area::constrain_to and Window::constrain_to ( #3396 )
...
* Rename `drag_bounds` to `constrain_to`
and allow turning off constraining for `Window`s
* Constrain DatePicker popup to screen
* Fix typo
2023-09-27 08:40:24 +02:00
Emil Ernerfeldt
1911248ade
Fix interaction with moved color-picker ( #3395 )
2023-09-27 08:20:04 +02:00
Emil Ernerfeldt
1b830bbcb4
Less loud warning when loading old memories
2023-09-26 21:29:04 +02:00
Emil Ernerfeldt
dff52eddfd
README.md: new images, better text ( #3392 )
...
* Update images in README.md
* Add ferris image to hello_world example
* Clean up and improve README.md, with top-level link to Rerun
* Move sections around
2023-09-26 21:17:43 +02:00
Emil Ernerfeldt
23ce4e70ca
Add option to show a callstack to the widget under the mouse ( #3391 )
2023-09-26 15:50:35 +02:00
Emil Ernerfeldt
e8986b1e59
egui_extras: syntax-highlighting of .toml ( #3388 )
2023-09-25 17:48:22 +02:00
Emil Ernerfeldt
8bf0055bda
Better handle additive colors in plots ( #3387 )
2023-09-25 15:45:32 +02:00
Emil Ernerfeldt
fdd493d48f
Misc cleanup ( #3381 )
...
* Give credit to recent big-time contributors in the main README.md
* Better named profiling scopes
* Document everything in memory.rs
* Better doc-strings
* Add a section about dependencies to the main README.md
* Improve egui_extras docs
* fix typos
2023-09-24 09:32:31 +02:00
Emil Ernerfeldt
99a1b5b62e
Add Context::open_url and Context::copy_text ( #3380 )
...
* Add Context::open_url
* Add `Context::copy_text`
* Fix doctest
* Fix another doctest
2023-09-24 09:31:21 +02:00
Emil Ernerfeldt
33a0f50f6a
Improve text truncation: always include elision character ( #3366 )
...
* Add Row::text
* Rename elide_at_width -> truncate_at_width
* Move text layout tests to own module
* Add test to check that elision character is always included
* Include elision character in more circumstances
* Append overflow character if we can't replace
* Always append … when eliding
* Add a secondary text to the text layout demo
2023-09-21 10:41:49 +02:00
Emil Ernerfeldt
6870d141d7
Add Context::style_mut ( #3359 )
2023-09-18 21:07:44 +02:00
Emil Ernerfeldt
dbf9b79d06
Fix typo
...
Closes https://github.com/emilk/egui/issues/3346
2023-09-18 17:15:51 +02:00
Emil Ernerfeldt
8073ca6fe0
Fix problems with tabs in text ( #3355 )
...
* Move ascent out of `GlyphInfo`
* Give a function a better name
* Make tab and thin space act more like a normal space
2023-09-18 14:09:15 +02:00
Emil Ernerfeldt
fea9047abe
Fix moving slider with arrow keys ( #3354 )
...
It would sometimes get stuck on the same value due to "smart-aim"
2023-09-18 13:20:45 +02:00
Emil Ernerfeldt
ceb8723c5e
Bug fix: arrow keys won't move focus away from TextEdit ( #3352 )
...
* Bug fix: arrow keys won't move focus away from TextEdit
* Fix using arrow-keys to move slider
* Typo
2023-09-18 13:08:41 +02:00
Emil Ernerfeldt
a3dfd08d71
More image polish ( #3343 )
...
* docs
* paint_texture_at
* comment
* Fix doc-tests
2023-09-15 10:57:25 +02:00
Emil Ernerfeldt
2bbceb856b
"Final" image polish ( #3342 )
...
* Improve the Image API a bit
* Improve image view demo
* Better names
* calculate -> calc
2023-09-15 10:13:50 +02:00
Emil Ernerfeldt
d7d222d3f6
Polish image API ( #3338 )
...
* Imoprove docs for callback shapes
* Improve docs for loader traits
* Use snake_case for feature `all_loaders`
* Make loaders publix
* Slightly better error message on image load failure
* Improve image loading error messages
* Use `bytes://` schema for included bytes loader
* Try user loaders first
* Move `image_loading_spinners` to `Visuals`
* Unify and simplify code
* Make the main text of `Button` optional
This largely makes ImageButton obsolete
* Fix docstrings
* Better docs
* typos
* Use the more explicit `egui_extras::install_image_loaders`
* Simplify `Image::paint_at` function
2023-09-14 16:33:10 +02:00
Emil Ernerfeldt
e367c20779
egui_extras: always depend on log crate (#3336 )
...
* egui_extras: always depend on `log` crate
* syntax_highlighting fix: "serde" is always on
* Add "serde" flag to egui when using egui_extras
2023-09-14 11:20:34 +02:00
Emil Ernerfeldt
5e785ae00a
Add syntax highlighing feature to egui_extras ( #3333 )
...
* Add syntax highlighing feature to egui_extras
Enable "syntect" feature for great syntax highlighting of any language.
If not a simple fallback is used that works fine for C++, Rust, Python
* Check --no-default-features of egui_extras on CI
* spelling
* Fix building egui_extras without additional features
2023-09-13 20:39:40 +02:00
Emil Ernerfeldt
4b5146d35d
Add more profiling scopes ( #3332 )
2023-09-13 19:32:19 +02:00
Emil Ernerfeldt
fc3bddd0cf
Add more puffin profile scopes to eframe ( #3330 )
...
* Add puffin profile scopes to the startup and running of eframe
* puffin_profiler example: start puffin right away
* cargo format let-else statements
* More profile scopes
* Add some `#[inline]`
* Standardize puffin profile scope definitions
* standardize again
* Silence warning when puffin is disabled
2023-09-13 09:00:38 +02:00
Emil Ernerfeldt
62e27d623a
Move README section on writing a new integration to the egui crate docs
...
Closes https://github.com/emilk/egui/issues/3326
2023-09-10 13:57:24 +02:00
Emil Ernerfeldt
2338a854f9
Fix deadlock in the texture/image loaders ( #3314 )
2023-09-06 15:36:08 +02:00
Emil Ernerfeldt
82704bebbf
Update MSRV to Rust 1.70.0 ( #3310 )
...
* Update to Rust 1.70
* Fix renamed clippy lint
* Use let-else more
* Code cleanup
* Remove derelict Safety comments
* Enable more clippy lints
2023-09-06 07:59:24 +02:00
Emil Ernerfeldt
707ca04c08
Add opt-in puffin feature to egui-extras ( #3307 )
...
* Add opt-in `puffin` feature to `egui-extras`
Image loading can be slow.
Related to https://github.com/emilk/egui/pull/3297
* Silence warning
2023-09-05 14:11:29 +02:00
Emil Ernerfeldt
67168be069
Improve clippy, and add more docs ( #3306 )
...
* Silence a few clippy warnings
* Use named threads
* Remove some deprecated functions
* Document Context and Ui fully
* Use `parking_lot::Mutex` in `eframe`
* Expand clippy.toml files
* build fix
2023-09-05 14:11:22 +02:00
Emil Ernerfeldt
436996b79e
Update web-time to 0.2 ( #3308 )
2023-09-05 14:11:07 +02:00
Emil Ernerfeldt
b9f9cab914
Update webpki 0.22.0 -> 0.22.1 ( #3305 )
2023-09-05 13:03:37 +02:00
Emil Ernerfeldt
46ea72abe4
Add control of line height and letter spacing ( #3302 )
...
* Add `TextFormat::extra_letter_spacing`
* Add control of line height
* Add to text layout demo
* Move the text layout demo to its own window in the demo app
* Fix doclink
* Better document points vs pixels
* Better documentation and code cleanup
2023-09-05 10:45:11 +02:00
Emil Ernerfeldt
e3362dafac
CI: Update to actions/checkout@v4 ( #3304 )
2023-09-05 10:18:38 +02:00
Emil Ernerfeldt
8c84bbfde4
Prune old egui memory data when reaching some limit ( #3299 )
...
* Add generations to serialized state
* Make IdTypeMap into a field struct
* Less code duplication
* Implement garbage collection during serialization
* Add unit-test
* Add docstring
* Build fix
* another fix
2023-09-04 21:46:57 +02:00
Emil Ernerfeldt
9e86bb8d6a
Add opt-in puffin feature to egui ( #3298 )
...
* Add opt-in `puffin` feature to egui
* fix web build
* Fix web for realz
2023-09-04 15:01:22 +02:00
Emil Ernerfeldt
5f742b9aba
Improve documentation of eframe, especially for wasm32 ( #3295 )
...
* Improve documentation of `eframe`, especially for wasm32
* remove dead code
* fix
2023-09-04 09:55:47 +02:00
Emil Ernerfeldt
209cbeb030
Replace instant with web_time ( #3296 )
2023-09-04 09:37:35 +02:00
Emil Ernerfeldt
70bfc7e09f
Add eframe::storage_dir ( #3286 )
...
* Add `eframe::storage_dir`
Now you can easily tell where eframe stores its state
* egui_plot: work even without the `serde` featur flag
2023-08-29 15:22:07 +02:00
Emil Ernerfeldt
a59eda7a27
egui-winit: Recognize numpad enter/plus/minus ( #3285 )
...
Numpad enter should work the same as the normal return key.
Numpad plus/minus should now work for scaling ui
(together with cmd/ctrl)
2023-08-29 14:04:12 +02:00
Emil Ernerfeldt
7b169ec13d
Break out plotting to own crate egui_plot ( #3282 )
...
This replaces `egui::plot` with the new crate `egui_plot`
2023-08-27 17:22:49 +02:00
Emil Ernerfeldt
b6f46b000b
Some clippy fixes from 1.72.0
2023-08-25 07:44:25 +02:00
Emil Ernerfeldt
ec506c0a43
Use the minus character instead of "dash" ( #3271 )
...
* Use the minus character instead of "dash"
See https://github.com/rerun-io/rerun/issues/3053
* docstring
* fix
2023-08-22 15:35:27 +02:00
Emil Ernerfeldt
3c4223c6b1
Support images with rounded corners ( #3257 )
...
* Add `Rect::ZERO`
* Add `Rounding::ZERO`
* Add `RectShape::new`
* Add `Image::rounding` to support images with rounded corners
2023-08-15 09:29:30 +02:00
Emil Ernerfeldt
481f44828c
Improve "Reset everything" button in demo ( #3255 )
...
Closes https://github.com/emilk/egui/issues/3254
2023-08-14 18:57:39 +02:00
Emil Ernerfeldt
a3ae81cadb
Add option to truncate text at wrap width ( #3244 )
...
* Add option to clip text to wrap width
* Spelling
* Better naming, and report back wether the text was elided
* Improve docstrings
* Simplify
* Fix max_rows with multiple paragraphs
* Add note
* Typos
* fix doclink
* Add `Label::elide`
* Label: show full non-elided text on hover
* Add demo of `Label::elide`
* Call it `Label::truncate`
* Clarify limitations of `break_anywhere`
* Better docstrings
2023-08-14 11:22:04 +02:00
Emil Ernerfeldt
6633ecce64
Fix wrong detection of OS ( #3238 )
...
We had a bunch of `cfg!(windows)` and `cfg!(macos)` which should
have been `cfg!(target_os = "windows")`.
I wonder what the effects of this PR will be fore Windows 😬
2023-08-12 13:50:31 +02:00
Emil Ernerfeldt
dd417cfc1a
eframe: Better restore Window position on Mac when on secondary monitor ( #3239 )
2023-08-11 16:25:22 +02:00
Emil Ernerfeldt
f78db80840
Update to wasm-bindgen 0.2.87 ( #3237 )
...
* Update to wasm-bindgen 0.2.87
Required by the new `wgpu` version
* Catch unknown arguments to build_demo_web.sh
2023-08-11 15:34:16 +02:00
Emil Ernerfeldt
dd5285cccb
Support multi-threaded Wasm ( #3236 )
...
Replace `atomic_refcell` with `parking_lot` on wasm32.
`parking_lot` has had problems running on wasm32 before
(https://github.com/emilk/egui/issues/1401 )
but it works these days.
If we have problems again we can always switch to `std::sync::Mutex`.
Closes https://github.com/emilk/egui/issues/3102
2023-08-11 15:08:00 +02:00
Emil Ernerfeldt
08fb447fb5
Increase MSRV to 1.67 ( #3234 )
...
* Bump MSRV to 1.67
* clippy fixes
* cargo clippy: inline format args
* Add `clippy::uninlined_format_args` to cranky lints
* Fix clippy on wasm
* More clippy fixes
2023-08-11 13:54:02 +02:00
Emil Ernerfeldt
bdeae9e959
Fix crash in DragValue when only setting min_decimals ( #3231 )
2023-08-11 08:24:39 +02:00
Emil Ernerfeldt
1e885abe08
Gracefully catch error saving state to disk ( #3230 )
2023-08-10 17:28:21 +02:00
Emil Ernerfeldt
7e035c6dd1
Allow users to opt-out of default winit features ( #3228 )
...
* Do not enable winit features by default
* Enable default winit features by default
* Add x11 feature
2023-08-10 17:09:01 +02:00
Emil Ernerfeldt
d568d9f5d0
Lint vertical spacing in the code ( #3224 )
...
* Lint vertical spacing in the code
* Add some vertical spacing for readability
2023-08-10 15:26:54 +02:00
Emil Ernerfeldt
83c18498e9
Refactor: turn ClippedShape from struct-enum to a normal struct ( #3225 )
2023-08-10 14:50:11 +02:00
Emil Ernerfeldt
66cbb61ad5
Add PlotUi::response() to replace plot_clicked() etc ( #3223 )
...
Closes https://github.com/emilk/egui/pull/2571
2023-08-10 13:14:19 +02:00
Emil Ernerfeldt
8cdffc4e2d
Replace uses of RangeInclusive<f32> with emath::Rangef ( #3221 )
...
* Replace uses of `RangeInclusive<f32>` with `emath::Rangef`
* Fix doc-test
2023-08-10 13:07:00 +02:00
Emil Ernerfeldt
abe91b00a4
Improve generate_changelog.py
2023-08-09 17:13:22 +02:00
Emil Ernerfeldt
51da2ac490
Improve documentation of Window/Area::resizable
2023-08-09 17:13:10 +02:00
Emil Ernerfeldt
92593b70fa
Changelogs: document that they are updated upon release (not by users)
2023-08-09 17:12:47 +02:00
Emil Ernerfeldt
46daaa8a34
Improve PR template
2023-08-09 12:51:22 +02:00
Emil Ernerfeldt
9c15783fab
CI: update list of accepted PR labels
2023-08-09 12:51:08 +02:00
Emil Ernerfeldt
0e5f93b65d
Add Margin::expand_rect and shrink_rect ( #3214 )
...
* Add `Margin::expand_rect` and `shrink_rect`
* fix typo
* Use the new helpers
2023-08-08 11:50:10 +02:00
Emil Ernerfeldt
924a903610
Rename _typos.toml to .typos.toml
2023-08-08 10:34:37 +02:00
Emil Ernerfeldt
083d61fccd
Update to puffin 0.16 ( #3144 )
2023-07-10 12:29:01 +02:00
Emil Ernerfeldt
5cd40f9685
Fix some typos
2023-06-11 19:34:32 +02:00
Emil Ernerfeldt
0fda44c4ad
fix typo in changelog
2023-06-05 14:56:39 +02:00
Emil Ernerfeldt
307565efa5
Release 0.22.0 - A plethora of small improvements
2023-05-23 19:58:04 +02:00
Emil Ernerfeldt
5fc82c746e
New web demo for the 0.22 release
2023-05-23 19:54:03 +02:00
Emil Ernerfeldt
cccdfd246e
Cleanup ahead of release
2023-05-23 19:53:32 +02:00
Emil Ernerfeldt
cb6bcde22c
Update changelogs
2023-05-23 17:33:01 +02:00
Emil Ernerfeldt
b2281c46e4
Update example screenshots
2023-05-23 13:38:02 +02:00
Emil Ernerfeldt
b07a675439
Fix egui_extras chonos dependency list
2023-05-23 13:30:54 +02:00
Emil Ernerfeldt
bb252e2788
Check egui_extras --all-features on CI ( #3019 )
...
* Check egui_extras --all-features on CI
* Fix egui_extras with `datepicker` feature
2023-05-23 09:26:40 +02:00
Emil Ernerfeldt
8c5d235bfb
cargo update ( #3018 )
...
* cargo update
Updating crates.io index
Updating ab_glyph v0.2.20 -> v0.2.21
Updating aho-corasick v0.7.20 -> v1.0.1
Updating android-activity v0.4.0 -> v0.4.1
Updating anyhow v1.0.69 -> v1.0.71
Updating arrayref v0.3.6 -> v0.3.7
Updating async-broadcast v0.5.0 -> v0.5.1
Updating async-executor v1.5.0 -> v1.5.1
Updating async-io v1.12.0 -> v1.13.0
Updating async-lock v2.6.0 -> v2.7.0
Updating async-recursion v1.0.2 -> v1.0.4
Updating async-task v4.3.0 -> v4.4.0
Updating async-trait v0.1.64 -> v0.1.68
Updating atomic_refcell v0.1.9 -> v0.1.10
Adding base64 v0.21.1
Updating bindgen v0.64.0 -> v0.65.1
Updating bitflags v2.1.0 -> v2.3.1
Updating block-buffer v0.10.3 -> v0.10.4
Updating bumpalo v3.12.0 -> v3.13.0
Updating bytemuck v1.13.0 -> v1.13.1
Updating bytemuck_derive v1.4.0 -> v1.4.1
Updating cfg-expr v0.11.0 -> v0.15.1
Updating chrono v0.4.23 -> v0.4.24
Updating ciborium v0.2.0 -> v0.2.1
Updating ciborium-io v0.2.0 -> v0.2.1
Updating ciborium-ll v0.2.0 -> v0.2.1
Updating clang-sys v1.4.0 -> v1.6.1
Updating clap v3.2.23 -> v3.2.25
Updating cocoa-foundation v0.1.0 -> v0.1.1
Updating concurrent-queue v2.1.0 -> v2.2.0
Updating core-foundation-sys v0.8.3 -> v0.8.4
Updating cpufeatures v0.2.5 -> v0.2.7
Updating crossbeam-utils v0.8.14 -> v0.8.15
Removing cxx v1.0.89
Removing cxx-build v1.0.89
Removing cxxbridge-flags v1.0.89
Removing cxxbridge-macro v1.0.89
Updating digest v0.10.6 -> v0.10.7
Updating dyn-clone v1.0.10 -> v1.0.11
Updating enum-map v2.4.2 -> v2.5.0
Updating enumn v0.1.6 -> v0.1.8
Removing errno v0.2.8
Updating fastrand v1.8.0 -> v1.9.0
Adding fdeflate v0.3.0
Updating flate2 v1.0.25 -> v1.0.26
Updating futures-core v0.3.26 -> v0.3.28
Updating futures-io v0.3.26 -> v0.3.28
Updating futures-lite v1.12.0 -> v1.13.0
Updating futures-sink v0.3.26 -> v0.3.28
Updating futures-task v0.3.26 -> v0.3.28
Updating futures-util v0.3.26 -> v0.3.28
Updating generic-array v0.14.6 -> v0.14.7
Updating getrandom v0.2.8 -> v0.2.9
Updating gimli v0.27.1 -> v0.27.2
Updating glutin v0.30.4 -> v0.30.8
Updating glutin_egl_sys v0.4.0 -> v0.5.0
Updating gpu-alloc v0.5.3 -> v0.5.4
Adding home v0.5.5
Updating iana-time-zone v0.1.53 -> v0.1.56
Updating iana-time-zone-haiku v0.1.1 -> v0.1.2
Updating image v0.24.5 -> v0.24.6
Updating indexmap v1.9.2 -> v1.9.3
Updating io-lifetimes v1.0.6 -> v1.0.10
Updating itoa v1.0.5 -> v1.0.6
Updating jni v0.20.0 -> v0.21.1
Updating jobserver v0.1.25 -> v0.1.26
Updating js-sys v0.3.61 -> v0.3.63
Updating libc v0.2.139 -> v0.2.144
Removing link-cplusplus v1.0.8
Removing linux-raw-sys v0.1.4
Removing linux-raw-sys v0.3.2
Adding linux-raw-sys v0.3.8
Updating memmap2 v0.5.8 -> v0.5.10
Adding miniz_oxide v0.7.1
Updating mio v0.8.5 -> v0.8.6
Updating naga v0.12.0 -> v0.12.1
Removing nom8 v0.2.0
Updating num_enum v0.5.9 -> v0.5.11
Updating num_enum_derive v0.5.9 -> v0.5.11
Updating objc2 v0.3.0-beta.3 -> v0.3.0-beta.3.patch-leaks.3
Updating once_cell v1.17.0 -> v1.17.1
Updating orbclient v0.3.42 -> v0.3.45
Updating ordered-stream v0.1.4 -> v0.2.0
Updating os_str_bytes v6.4.1 -> v6.5.0
Updating owned_ttf_parser v0.18.1 -> v0.19.0
Updating parking v2.0.0 -> v2.1.0
Updating paste v1.0.11 -> v1.0.12
Updating pkg-config v0.3.26 -> v0.3.27
Updating plist v1.4.0 -> v1.4.3
Updating png v0.17.7 -> v0.17.8
Updating polling v2.5.2 -> v2.8.0
Adding prettyplease v0.2.5
Updating proc-macro-crate v1.3.0 -> v1.3.1
Updating proc-macro2 v1.0.56 -> v1.0.58
Updating profiling v1.0.7 -> v1.0.8
Updating puffin v0.14.2 -> v0.14.3
Updating quick-xml v0.26.0 -> v0.28.2
Updating quote v1.0.26 -> v1.0.27
Updating range-alloc v0.1.2 -> v0.1.3
Updating redox_syscall v0.3.4 -> v0.3.5
Updating regex v1.7.1 -> v1.8.2
Removing regex-syntax v0.6.28
Adding regex-syntax v0.6.29
Adding regex-syntax v0.7.2
Updating rfd v0.11.0 -> v0.11.4
Updating rgb v0.8.35 -> v0.8.36
Updating rustc-demangle v0.1.21 -> v0.1.23
Removing rustix v0.36.9
Removing rustix v0.37.3
Adding rustix v0.37.19
Updating ruzstd v0.3.0 -> v0.3.1
Updating ryu v1.0.12 -> v1.0.13
Removing scratch v1.0.3
Updating sctk-adwaita v0.5.3 -> v0.5.4
Updating serde v1.0.152 -> v1.0.163
Updating serde_derive v1.0.152 -> v1.0.163
Updating serde_json v1.0.92 -> v1.0.96
Updating serde_repr v0.1.10 -> v0.1.12
Adding serde_spanned v0.6.2
Adding simd-adler32 v0.3.5
Updating slab v0.4.7 -> v0.4.8
Updating socket2 v0.4.7 -> v0.4.9
Removing syn v1.0.107
Removing syn v2.0.15
Adding syn v1.0.109
Adding syn v2.0.16
Updating system-deps v6.0.3 -> v6.1.0
Adding target-lexicon v0.12.7
Updating tempfile v3.4.0 -> v3.5.0
Updating thiserror v1.0.38 -> v1.0.40
Updating thiserror-impl v1.0.38 -> v1.0.40
Updating time v0.3.17 -> v0.3.21
Updating time-core v0.1.0 -> v0.1.1
Updating time-macros v0.2.6 -> v0.2.9
Updating tiny-skia v0.8.3 -> v0.8.4
Updating tiny-skia-path v0.8.3 -> v0.8.4
Updating toml v0.5.11 -> v0.7.4
Updating toml_datetime v0.5.1 -> v0.6.2
Updating toml_edit v0.18.1 -> v0.19.9
Updating tracing-attributes v0.1.23 -> v0.1.24
Updating tracing-core v0.1.30 -> v0.1.31
Updating ttf-parser v0.18.1 -> v0.19.0
Updating tts v0.25.0 -> v0.25.5
Updating unicode-bidi v0.3.10 -> v0.3.13
Updating unicode-ident v1.0.6 -> v1.0.8
Updating walkdir v2.3.2 -> v2.3.3
Updating wasm-bindgen-futures v0.4.34 -> v0.4.36
Updating web-sys v0.3.61 -> v0.3.63
Updating webbrowser v0.8.7 -> v0.8.10
Removing wepoll-ffi v0.1.2
Updating windows v0.43.0 -> v0.48.0
Removing windows-sys v0.42.0
Updating windows-targets v0.42.1 -> v0.42.2
Updating windows_aarch64_gnullvm v0.42.1 -> v0.42.2
Updating windows_aarch64_msvc v0.42.1 -> v0.42.2
Updating windows_i686_gnu v0.42.1 -> v0.42.2
Updating windows_i686_msvc v0.42.1 -> v0.42.2
Updating windows_x86_64_gnu v0.42.1 -> v0.42.2
Updating windows_x86_64_gnullvm v0.42.1 -> v0.42.2
Updating windows_x86_64_msvc v0.42.1 -> v0.42.2
Updating winit v0.28.1 -> v0.28.6
Adding winnow v0.4.6
Updating xml-rs v0.8.4 -> v0.8.13
Updating zbus v3.9.0 -> v3.10.0
Updating zbus_macros v3.9.0 -> v3.10.0
Updating zbus_names v2.5.0 -> v2.5.1
Updating zstd-sys v2.0.6+zstd.1.5.2 -> v2.0.8+zstd.1.5.5
Updating zvariant v3.10.0 -> v3.14.0
Updating zvariant_derive v3.10.0 -> v3.14.0
Adding zvariant_utils v1.0.1
* Downgrade flate2 and png to avoid duplicated deps
* downgrade plist to avoid duplication of base64 crate
* Allow license `Apache-2.0 WITH LLVM-exception`
* Update to puffin 0.15
2023-05-23 09:25:39 +02:00
Emil Ernerfeldt
03bb89153b
eframe: Use NativeOptions::AppId for the persistance location ( #3014 )
...
* eframe: Use NativeOptions::AppId for the persistance location
* Fix doclinks
* Fix typo in docs
Closes https://github.com/emilk/egui/issues/3003
2023-05-23 08:38:14 +02:00
Emil Ernerfeldt
9d5b324787
Fix typo in docs
...
Closes https://github.com/emilk/egui/issues/3003
2023-05-23 08:37:32 +02:00
Emil Ernerfeldt
68a4239036
Fix --no-default-features ( #3015 )
2023-05-22 22:11:07 +02:00
Emil Ernerfeldt
86d1d1fe76
Trim deny.toml
2023-05-22 21:40:16 +02:00
Emil Ernerfeldt
b5c24d6ec8
egui_demo_app: add some native window info
2023-05-22 21:40:16 +02:00
Emil Ernerfeldt
a1d0e29e5e
vscode: ignore target_wasm
2023-05-22 21:40:16 +02:00
Emil Ernerfeldt
6a80e6fc74
Add doc-test example for Modifiers::matches
2023-05-22 21:40:16 +02:00
Emil Ernerfeldt
7583a44e32
Format Cargo.toml
2023-05-22 21:40:16 +02:00
Emil Ernerfeldt
45826999ac
Add profiling scopes to app icon stuff
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
b758e9dbf0
Update accesskit to 0.11 ( #3012 )
...
* Update accesskit to 0.11
* Add instructions on how to test the web viewer to CONTRIBUTING.md
Also removed dependency on `jq`
Closes https://github.com/emilk/egui/issues/2859
2023-05-22 19:20:58 +02:00
Emil Ernerfeldt
d7dcfe4dae
Remove references to the removed custom_3d_three-d example
2023-05-22 17:04:58 +02:00
Emil Ernerfeldt
d765c610c1
Update list of Fedora Rawhide dependencies
...
Closes https://github.com/emilk/egui/issues/2946
2023-05-22 16:43:26 +02:00