Emil Ernerfeldt
eb0812a953
eframe web: ensure modifiers keys won't stick in a down state on alt-tab ( #2857 )
...
* eframe web: ensure modifiers keys won't stick in a down state on alt-tab
* Update changelog
* Properly set the has_focus input flag on web
2023-03-31 10:11:41 +02:00
Emil Ernerfeldt
5cdbce04a8
Update to accesskit 0.10.1 ( #2855 )
...
* Update to accesskit 0.10.1
* Add helper script to run cargo deny
2023-03-30 10:23:54 +02:00
Emil Ernerfeldt
92c4e23aac
eframe: add a simplified native-only API for simple native apps ( #2453 )
...
* eframe: add a simplified native-only API for simple native apps
* build-fix
* Fix doc-test
2023-03-30 10:00:47 +02:00
Emil Ernerfeldt
b8816d6988
Run cargo-deny on a matrix of targets ( #2852 )
...
* Run cargo-deny on a matrix of targets
* Try rust-cache
* Restrict the number of OSes
2023-03-30 09:12:11 +02:00
Emil Ernerfeldt
59c2c4c70d
Update tempfile to fix CVE ( #2809 )
...
> cargo update -p tempfile
Updating crates.io index
Adding errno v0.2.8
Adding errno-dragonfly v0.1.2
Adding io-lifetimes v1.0.6
Adding linux-raw-sys v0.1.4
Removing remove_dir_all v0.5.3
Adding rustix v0.36.9
Updating tempfile v3.3.0 -> v3.4.0
2023-03-14 08:50:06 +01:00
Emil Ernerfeldt
f94187ab71
Remove misleading safety-badges
...
See https://github.com/emilk/egui/issues/2723
2023-02-28 22:35:08 +01:00
Emil Ernerfeldt
7215fdfb7c
Release eframe 0.21.3 - fix web input of the the letter P
2023-02-15 08:26:45 +01:00
Emil Ernerfeldt
e2778d9d6a
eframe: Fix inputting of the letter P on web ( #2740 )
...
* eframe: Fix inputting of the letter P on web
* Update changelog
* silence clippy
2023-02-15 08:24:52 +01:00
Emil Ernerfeldt
38849fe381
Release eframe 0.21.2 - support --no-default-features
2023-02-12 19:34:37 +01:00
Emil Ernerfeldt
df7e5bd57a
Allow compiling eframe with --no-default-features ( #2728 )
...
* Check that we can compile eframe with --no-default-features
* Allow compiling eframe with `--no-default-features`
This is useful for libraries that depend on `eframe::Frame`
but don't care what renderer eframe is using.
2023-02-12 19:29:42 +01:00
Emil Ernerfeldt
e3e781ced8
fix puffin_profiler example
2023-02-12 19:27:10 +01:00
Emil Ernerfeldt
97756bc246
Add badges to all crates' README.md
2023-02-12 18:08:13 +01:00
Emil Ernerfeldt
f71d79a0ff
Release egui-winit, eframe 0.21.1 - fix crash on monitor size/dpi change
...
https://github.com/emilk/egui/pull/2722
The crash could happen if the monitor size or DPI changes between runs
2023-02-12 15:29:47 +01:00
Emil Ernerfeldt
530e9f667c
format: add some blank lines where it was needed
2023-02-10 18:03:46 +01:00
Emil Ernerfeldt
409fb968d3
add cargo config file that sets --cfg=web_sys_unstable_apis on wasm32
2023-02-10 17:56:10 +01:00
Emil Ernerfeldt
1581f0229e
examples/README.md: explain that the examples are for master
...
and add a link to the latest release
2023-02-08 20:34:43 +01:00
Emil Ernerfeldt
ae722ab0cf
Release 0.21.0 - Deadlock fix and winit update
2023-02-08 20:11:21 +01:00
Emil Ernerfeldt
1384fa3287
Publish new web demo
2023-02-08 20:10:12 +01:00
Emil Ernerfeldt
83b5b81227
Update changelogs with recent additions
2023-02-08 19:36:33 +01:00
Emil Ernerfeldt
63fa3aec10
Update example screenshots
2023-02-08 19:04:04 +01:00
Emil Ernerfeldt
ebeb788b1f
We no longer use tts, so remove speech-related dependencies ( #2698 )
2023-02-08 18:45:44 +01:00
Emil Ernerfeldt
0fc25c2680
Fix: make sure always_on_top is respected on glow again
2023-02-08 18:12:52 +01:00
Emil Ernerfeldt
449dd1c23c
cargo update ( #2697 )
...
* cargo update
Updating anyhow v1.0.68 -> v1.0.69
Updating bindgen v0.63.0 -> v0.64.0
Removing cocoa v0.24.1
Updating glutin v0.30.3 -> v0.30.4
Updating glutin_egl_sys v0.3.1 -> v0.4.0
Updating glutin_glx_sys v0.3.0 -> v0.4.0
Updating glutin_wgl_sys v0.3.0 -> v0.4.0
Updating proc-macro2 v1.0.50 -> v1.0.51
Updating rgb v0.8.34 -> v0.8.35
Updating serde_json v1.0.91 -> v1.0.92
Updating tiny-skia v0.8.2 -> v0.8.3
Updating tiny-skia-path v0.8.2 -> v0.8.3
Removing windows-sys v0.36.1
Removing windows_aarch64_msvc v0.36.1
Removing windows_i686_gnu v0.36.1
Removing windows_i686_msvc v0.36.1
Removing windows_x86_64_gnu v0.36.1
Removing windows_x86_64_msvc v0.36.1
Updating zbus v3.8.0 -> v3.9.0
Updating zbus_macros v3.8.0 -> v3.9.0
* Update wasm-bindgen to 0.2.84
* cargo update
Updating js-sys v0.3.60 -> v0.3.61
Updating wasm-bindgen-futures v0.4.33 -> v0.4.34
Updating web-sys v0.3.60 -> v0.3.61
* Update pollster to 0.3
* Update rfd to 0.11
* Make sure we never depend on cmake
2023-02-08 18:11:34 +01:00
Emil Ernerfeldt
636a39cbe1
Update glow to 0.12 ( #2695 )
...
* Remove three-d example due to glow incompatibility
* Update to glow 0.12
* Remove three-d from deny.toml
* Add line to changelog
2023-02-08 17:16:44 +01:00
Emil Ernerfeldt
e8b9e706ca
Fix Window::pivot causing windows to move around ( #2694 )
...
* Fix Window::pivot causing windows to move around
* Add line to changelog
2023-02-08 12:41:36 +01:00
Emil Ernerfeldt
a8d5a82a7f
Lowe multisampling in examples from 8 to 4
...
Closes https://github.com/emilk/egui/issues/2658
2023-02-08 10:14:43 +01:00
Emil Ernerfeldt
c2d37571f7
constrain popups to the screen
2023-02-08 10:02:50 +01:00
Emil Ernerfeldt
90cd178117
Document GlyphInfo::id
2023-02-08 10:01:47 +01:00
Emil Ernerfeldt
7397be3401
Fix item spacing in CollapsingHeader
2023-02-08 10:01:37 +01:00
Emil Ernerfeldt
1edd333864
Update to winit 0.28.1
2023-02-08 10:00:03 +01:00
Emil Ernerfeldt
4721a0a680
Check --all-targets in CI ( #1395 )
2023-02-08 09:35:01 +01:00
Emil Ernerfeldt
8d6c2580f4
Add Checkbox::without_text
...
Closes https://github.com/emilk/egui/pull/2508
2023-02-08 08:42:00 +01:00
Emil Ernerfeldt
b1e214bbdf
Add Order::TOP
2023-02-06 08:48:12 +01:00
Emil Ernerfeldt
cef0c0b6d8
Fix typo
2023-02-05 21:58:15 +01:00
Emil Ernerfeldt
d5dcc87ace
Improve custom_window_frame
2023-02-05 21:58:15 +01:00
Emil Ernerfeldt
d15ce22e2e
winit: Fix bug where the cursor could get stuck using the wrong icon
2023-02-05 08:48:40 +01:00
Emil Ernerfeldt
660566c499
eframe: ask if the window is minimized or maximized ( #2672 )
...
* eframe: ask if the window is minimized or maximized
* Improve note
2023-02-04 16:05:23 +01:00
Emil Ernerfeldt
21a59143a4
cargo update ( #2671 )
...
* cargo update
Updating crates.io index
Updating ab_glyph v0.2.18 -> v0.2.20
Updating ab_glyph_rasterizer v0.1.7 -> v0.1.8
Updating ahash v0.8.2 -> v0.8.3
Updating anyhow v1.0.66 -> v1.0.68
Updating async-broadcast v0.4.1 -> v0.5.0
Updating async-recursion v1.0.0 -> v1.0.2
Updating async-trait v0.1.59 -> v0.1.64
Updating atomic_refcell v0.1.8 -> v0.1.9
Updating bumpalo v3.11.1 -> v3.12.0
Updating bytemuck v1.12.3 -> v1.13.0
Updating bytemuck_derive v1.3.0 -> v1.4.0
Updating bytes v1.3.0 -> v1.4.0
Updating calloop v0.10.3 -> v0.10.5
Updating cc v1.0.77 -> v1.0.79
Removing chunked_transfer v1.4.0
Updating clipboard-win v4.4.2 -> v4.5.0
Updating concurrent-queue v2.0.0 -> v2.1.0
Updating cxx v1.0.83 -> v1.0.89
Updating cxx-build v1.0.83 -> v1.0.89
Updating cxxbridge-flags v1.0.83 -> v1.0.89
Updating cxxbridge-macro v1.0.83 -> v1.0.89
Updating document-features v0.2.6 -> v0.2.7
Updating dyn-clone v1.0.9 -> v1.0.10
Updating either v1.8.0 -> v1.8.1
Updating enum-map v2.4.1 -> v2.4.2
Updating enum-map-derive v0.10.0 -> v0.11.0
Updating futures-core v0.3.25 -> v0.3.26
Updating futures-io v0.3.25 -> v0.3.26
Updating futures-sink v0.3.25 -> v0.3.26
Updating futures-task v0.3.25 -> v0.3.26
Updating futures-util v0.3.25 -> v0.3.26
Updating glob v0.3.0 -> v0.3.1
Updating heck v0.4.0 -> v0.4.1
Updating image v0.24.4 -> v0.24.5
Updating itoa v1.0.4 -> v1.0.5
Updating jpeg-decoder v0.2.6 -> v0.3.0
Updating js-sys v0.3.60 -> v0.3.61
Updating libc v0.2.138 -> v0.2.139
Updating link-cplusplus v1.0.7 -> v1.0.8
Updating nom v7.1.1 -> v7.1.3
Adding nom8 v0.2.0
Updating num_enum v0.5.7 -> v0.5.9
Updating num_enum_derive v0.5.7 -> v0.5.9
Updating once_cell v1.16.0 -> v1.17.0
Updating ordered-stream v0.1.2 -> v0.1.4
Updating owned_ttf_parser v0.17.1 -> v0.18.1
Updating parking_lot_core v0.9.5 -> v0.9.7
Updating paste v1.0.9 -> v1.0.11
Updating plist v1.3.1 -> v1.4.0
Updating polling v2.5.1 -> v2.5.2
Updating proc-macro-crate v1.2.1 -> v1.3.0
Updating proc-macro2 v1.0.47 -> v1.0.50
Updating puffin v0.14.0 -> v0.14.2
Updating puffin_http v0.11.0 -> v0.11.1
Adding quick-xml v0.26.0
Updating quote v1.0.21 -> v1.0.23
Updating regex v1.7.0 -> v1.7.1
Updating rustls v0.20.7 -> v0.20.8
Updating ryu v1.0.11 -> v1.0.12
Updating scratch v1.0.2 -> v1.0.3
Updating serde v1.0.149 -> v1.0.152
Updating serde_derive v1.0.149 -> v1.0.152
Updating serde_json v1.0.89 -> v1.0.91
Updating serde_repr v0.1.9 -> v0.1.10
Updating syn v1.0.105 -> v1.0.107
Updating termcolor v1.1.3 -> v1.2.0
Updating thiserror v1.0.37 -> v1.0.38
Updating thiserror-impl v1.0.37 -> v1.0.38
Updating tinyvec_macros v0.1.0 -> v0.1.1
Updating toml v0.5.9 -> v0.5.11
Adding toml_datetime v0.5.1
Adding toml_edit v0.18.1
Updating ttf-parser v0.17.1 -> v0.18.1
Updating typenum v1.15.0 -> v1.16.0
Updating unicode-bidi v0.3.8 -> v0.3.10
Updating unicode-ident v1.0.5 -> v1.0.6
Updating ureq v2.5.0 -> v2.6.2
Updating wasm-bindgen v0.2.83 -> v0.2.84
Updating wasm-bindgen-backend v0.2.83 -> v0.2.84
Updating wasm-bindgen-futures v0.4.33 -> v0.4.34
Updating wasm-bindgen-macro v0.2.83 -> v0.2.84
Updating wasm-bindgen-macro-support v0.2.83 -> v0.2.84
Updating wasm-bindgen-shared v0.2.83 -> v0.2.84
Updating wayland-sys v0.30.0 -> v0.30.1
Updating web-sys v0.3.60 -> v0.3.61
Updating webbrowser v0.8.6 -> v0.8.7
Updating webpki-roots v0.22.5 -> v0.22.6
Updating which v4.3.0 -> v4.4.0
Updating x11-dl v2.20.1 -> v2.21.0
Updating zbus v3.6.2 -> v3.8.0
Updating zbus_macros v3.6.2 -> v3.8.0
Updating zbus_names v2.4.0 -> v2.5.0
Updating zstd-sys v2.0.4+zstd.1.5.2 -> v2.0.6+zstd.1.5.2
Updating zvariant v3.9.0 -> v3.10.0
Updating zvariant_derive v3.9.0 -> v3.10.0
* Remove unnecessary import of wasm_bindgen::JsCast (its now in prelude)
* egui_glow/README.md: add line on how to run the example
* revert wasm-bindgen update
* Revert "Remove unnecessary import of wasm_bindgen::JsCast (its now in prelude)"
This reverts commit 95c3076cce76577d9f0f35e48f99b4acd2dbe62e.
2023-02-04 13:41:34 +01:00
Emil Ernerfeldt
06d753c289
Update SVG crates ( #2670 )
...
* Update resvg, tiny-skia and usv to latest
* Remove default features from svg crates
Users can always opt-in to them themselves
* Update png 0.17.6 -> 0.17.7
2023-02-04 13:00:04 +01:00
Emil Ernerfeldt
8344e88f8a
Update to to winit 0.28 ( #2654 )
...
* Update to winit 0.28
Mac trackpads pinch gestures will now generate `egui::Event::Zoom`
* Update accesskit_winit
* Try to get Android CI green
* Fix wayland compilation
* Add comment about android-activity
* Update changelogs
* Fix call to register_xlib_error_hook
2023-02-04 12:43:43 +01:00
Emil Ernerfeldt
e4eaf99072
Remove native screen reader support ( #2669 )
...
* Remove native screen reader support
Use the "accesskit" feature flag to `eframe` instead.
[AccessKit](https://github.com/AccessKit/accesskit ) is the future.
`tts` was a mess to compile on many platforms, so I no longer want
the native `tts` dependency.
* Update tts to 0.25
* Update changelogs
* Turn on all feature flags for package.metadata.docs.rs
* remove tts from deny.toml skip-tree
* Update web build scripts
* Update deny.toml
2023-02-04 11:47:36 +01:00
Emil Ernerfeldt
1353a5733f
Deprecate egui_glium - looking for new maintainer ( #2668 )
...
* Deprecate egui_glium - looking for new maintainer
egui_glium was the first backend of egui, and it served us well for
a long time, but we have long since moved on to glow and wgpu.
Not egui_glium is holding back an update to latest winit.
Since development on glium has long since been discontinued I will
therefore deprecate egui_glium with this PR.
The code is still there in the repository for a while longer,
but is no longer compiled.
If there is any interest in maintaining egui_glium, then fork it and
make a PR to remove the last egui_glium from this repository.
I will give you publish rights on crates.io.
* update glutin 0.30.2 -> 0.30.3
* cargo update -p backtrace
Updating crates.io index
Updating addr2line v0.17.0 -> v0.19.0
Updating backtrace v0.3.66 -> v0.3.67
Updating gimli v0.26.2 -> v0.27.1
Removing miniz_oxide v0.5.4
Updating object v0.29.0 -> v0.30.3
* cargo deny: allow duplicates of windows-sys, wayland-sys, and nix
* cargo-deny whitelist tiny-skia
2023-02-04 11:21:02 +01:00
Emil Ernerfeldt
a6b60d5d58
Control Separator widths, and less clipping in ScrollArea ( #2665 )
...
* Add Separator::grow and Separator::shrink
* Be more conservative with the clipping in ScrollArea:s
* Add test of the growing separator
* Improve test output
* Update changelog
* Add back a little bit more clipping
* Make the minimum scroll handle length a bit longer
* More clip rect tweaks
2023-02-03 13:19:25 +01:00
Emil Ernerfeldt
8c3d8b3ba5
Make sure the panel resize lines are visible when hovered/resizing
2023-02-03 09:31:24 +01:00
Emil Ernerfeldt
312cab5355
Export egui::Margin
2023-02-03 09:31:04 +01:00
Emil Ernerfeldt
5444ab269a
Add Response::with_new_rect
2023-02-02 21:12:06 +01:00
Emil Ernerfeldt
d01e4342f0
Update accesskit_winit and dark_light ( #2655 )
...
* Update accesskit_winit to 0.8.1
* Update dark_light to 1.0
2023-01-31 10:41:27 +01:00
Emil Ernerfeldt
cc20dcb9d0
eframe: Improve window centering ( #2651 )
...
* Create the winit::Window in one unified place
* Fix wrong unit of initial_window_pos
* Improve centering
2023-01-30 15:52:30 +01:00
Emil Ernerfeldt
f222ee044e
Fix for highlighting SelectableLabel
2023-01-28 00:21:53 +01:00
Emil Ernerfeldt
c72bdb77b5
Add ability to highlight any widget ( #2632 )
...
* Add ability to highlight any widget
* Add line to changelog
* Demote the demo to a test
2023-01-27 23:36:14 +01:00
Emil Ernerfeldt
e7c0547e23
DragValue and Slider text is now proportional instead of monospace (#2638 )
...
* DragValue and Slider text is now proportional instead of monospace
Control with `Style::drag_value_text_style`
* Update changelog
2023-01-27 23:30:20 +01:00
Emil Ernerfeldt
fe7ff66266
Make the line left of indented regions optional ( #2636 )
...
* Make the line left of indented regions optional
Controlled with Visuals::indent_has_left_vline
* Add line to changelog
* Fix doclink
2023-01-27 11:12:08 +01:00
Emil Ernerfeldt
4a0bafbeab
Update webbrowser ( #2631 )
...
* Update webbrowser
* Update webbrowser in Cargo.toml too
Make sure all users get updated too
2023-01-26 11:31:39 +01:00
Emil Ernerfeldt
5b1cad2b72
Constrain menus to the screen
2023-01-26 11:13:21 +01:00
Emil Ernerfeldt
8ce0e1c520
Avoid deadlocks by using lambdas for context lock ( #2625 )
...
ctx.input().key_pressed(Key::A) -> ctx.input(|i| i.key_pressed(Key::A))
2023-01-25 10:24:23 +01:00
Emil Ernerfeldt and Andreas Reich
4bd4eca2e4
Add ability to hide button backgrounds ( #2621 )
...
* Add Spacing::combo_width
* Put ComboBox arrow closer to the text
* Tweak faint_bg_color
* Make it possible to have buttons without background
…while still having background for sliders, checkboxes, etc
* Rename mandatory_bg_fill -> bg_fill
* tweak grid stripe color (again)
* Make the animated part of the ProgressBar more visible
* Add line in changelog
* Add another line in changelog
* Menu fix: use the `open` widget style for open menus
* Adjust sizes on menu buttons and regular buttons to make sure they match
* Update comment
Co-authored-by: Andreas Reich <andreas@rerun.io >
* optional_bg_fill -> weak_bg_fill
Co-authored-by: Andreas Reich <andreas@rerun.io >
2023-01-24 10:11:05 +01:00
Emil Ernerfeldt
c75e72693c
Fix rendering of … (ellipsis)
...
Broken when we introduced thing space support
2023-01-23 20:24:38 +01:00
Emil Ernerfeldt
d4f9f6984d
Fix red doctest
2023-01-23 15:04:35 +01:00
Emil Ernerfeldt
cd0f66b9ae
eframe web: ctrl-P and cmd-P will not open the print dialog ( #2598 )
2023-01-16 14:40:19 +01:00
Emil Ernerfeldt
34f587d1e1
Add emath::inverse_lerp
2022-12-22 12:33:06 +01:00
Emil Ernerfeldt
fa0d7f7f7f
Add Response::on_hover_and_drag_cursor
2022-12-21 17:47:52 +01:00
Emil Ernerfeldt
a68c891092
Improve choice of number of decimals to show when hovering in plot
2022-12-20 15:27:01 +01:00
Emil Ernerfeldt
0e2656b77c
Add ScrollArea::drag_to_scroll
2022-12-20 11:09:53 +01:00
Emil Ernerfeldt
99af63fad2
Add Plot::clamp_grid ( #2480 )
...
* Add Plot::clamp_grid
* Update changelog
2022-12-19 11:39:22 +01:00
Emil Ernerfeldt
e4e1638fc0
Fix newly introduced rendering bug for thin rectangles
2022-12-19 11:31:27 +01:00
Emil Ernerfeldt
6554fbb151
epaint: Improve rendering of very thin rectangles
2022-12-19 10:33:03 +01:00
Emil Ernerfeldt
6ae4bc486b
Add Slider::drag_value_speed
2022-12-15 17:05:43 +01:00
Emil Ernerfeldt
367087f84f
Annotate at_least and at_most with #[must_use]
2022-12-15 15:38:31 +01:00
Emil Ernerfeldt and Vladislav Zhukov
ea5c9483a2
Fix bug in Mesh::split_to_u16 ( #2459 )
...
Co-authored-by: Vladislav Zhukov <vlad.zhukov@elektron.se >
2022-12-15 11:13:01 +01:00
Emil Ernerfeldt
37fd141dd1
Rename eframe::EframeError to eframe::Error
2022-12-14 17:29:54 +01:00
Emil Ernerfeldt
4e8341d35c
Don't render the \r (Carriage Return) character, because it sucks ( #2452 )
...
* Don't render the \r (Carriage Return) character, because it sucks
* Update PR links
* Fix doclink
2022-12-14 15:15:29 +01:00
Emil Ernerfeldt
df9df39f10
eframe: set_window_size, set_fullscreen and set_window_pos updates info
2022-12-14 14:14:20 +01:00
Emil Ernerfeldt
a70b173333
Toggle fullscreen in egui_demo_app with F11
2022-12-14 14:13:52 +01:00
Emil Ernerfeldt
126be51ac3
Add Visuals::striped as global default for Grids and Tables
2022-12-13 21:02:39 +01:00
Emil Ernerfeldt
51081d69fc
Maybe fix WSLg ( #2439 )
2022-12-13 16:06:19 +01:00
Emil Ernerfeldt
0ba2d8ca1d
Add Visuals::menu_rounding
2022-12-13 15:44:27 +01:00
Emil Ernerfeldt
4a72abc8ec
Clamp eframe window size to at most the size of the largest monitor ( #2445 )
...
This can hopefully fix some reported bugs where
2022-12-13 09:09:36 +01:00
Emil Ernerfeldt
32677a54e4
egui-winit: improve clipboard logging
2022-12-13 09:09:25 +01:00
Emil Ernerfeldt
26eb002270
Remove references to old, fixed Firefox WebGL bug
2022-12-12 21:45:57 +01:00
Emil Ernerfeldt
c58ac86935
egui-wgpu: only depend on epaint (not entire egui) ( #2438 )
...
* egui-wgpu: only depend on epaint (not entire egui)
* Update changelog link
* Fix doclinks
2022-12-12 17:25:00 +01:00
Emil Ernerfeldt
e0b5bb17e5
Improve the look of thin lines, making them look weaker ( #2437 )
...
* Revert "fix all clippy lints and remove them from allow list in cranky (#2419 )"
This reverts commit 930ef2db38 .
* Explain the cranky lints better
* Add Color32::gamma_multiply
* Remove unused pub use
* Remove non-existing crate category
* Improve color test with more lines
* Improve the look of thin lines, making them look weaker
Before they looked were too strong for the thickness.
* Use asserts for shader compilations
* Update changelogs
2022-12-12 16:18:05 +01:00
Emil Ernerfeldt
6c4fc50fdf
Make egui_wgpu::winit::Painter::set_window async ( #2434 )
...
* Make `egui_wgpu::winit::Painter::set_window` async
* Fix changelog link
2022-12-12 15:37:55 +01:00
Emil Ernerfeldt
7a658e3ddb
Add Event::Key::repeat that is set to true if the event is a repeat ( #2435 )
...
* Add `Event::Key::repeat` that is set to `true` if the event is a repeat
* Update changelog
* Improve docstring
2022-12-12 15:37:42 +01:00
Emil Ernerfeldt
cb77458f70
eframe error handling ( #2433 )
...
* eframe::run_native: return errors instead of crashing
* Detect and handle glutin errors
* egui_demo_app: silence wgpu log spam
* Add trace logs for why eframe is shutting down
* Fix: only save App state once on Mac
* Handle Winit failure
* Log where we load app state from
* Don't panic on zero-sized window
* Clamp loaded window size to not be too tiny to see
* Simplify code: more shared code in window_builder
* Improve code readability
* Fix wasm32 build
* fix android
* Update changelog
2022-12-12 15:16:32 +01: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
059e6f719d
egui-winit: don't call set_cursor each frame on any platform
...
On some platforms (WSL?) the setting of the cursor can also fail,
leading to warnings being logged by winit each frame. Not good.
2022-12-12 10:26:14 +01:00
Emil Ernerfeldt
228f30ed46
Release 0.20.1 of eframe egui-winit egui_glium egui_glow - docs fixes
2022-12-11 17:04:23 +01:00
Emil Ernerfeldt
d7189d69f6
Release 0.20.1 - Fix key-repeat
2022-12-11 16:59:54 +01:00
Emil Ernerfeldt
2713f60f5b
Update web demo
2022-12-11 16:57:20 +01:00
Emil Ernerfeldt
4e3ae098a9
Improve eframe wasm32 docs
2022-12-11 16:52:37 +01:00
Emil Ernerfeldt
0a1b85f35a
Revert key-repeat behavior ( #2429 )
...
* Revert key-repeat behavior
This fixes key-repeats everywhere in egui where it was broken,including:
- Enter in TextEdit:s
- Arrow keys for sliders and dragvalues
- …
* Update changelog
* Remove old comment
2022-12-11 16:26:57 +01:00
Emil Ernerfeldt
32606c2223
Fix docs.rs build issues for eframe, egui-winit, egui_glium, egui_glow ( #2420 )
...
* Fix docs.rs build issues for eframe, egui-winit, egui_glium, egui_glow
I hope we can get rid of the `tts` crate very soon,
now that AcessKit has landed. It is only used for web atm.
Should probably be removed from all native libraries.
* Update changelogs
2022-12-09 12:24:47 +01:00
Emil Ernerfeldt
54675f8983
Update changelog for #2416
2022-12-09 09:55:16 +01:00
Emil Ernerfeldt
85f615f21c
Fix incorrect date in CHANGELOGs
2022-12-09 08:29:44 +01:00
Emil Ernerfeldt
7d91e90481
Release 0.20.0 - AccessKit, prettier text, overlapping widgets
2022-12-08 15:11:54 +01:00
Emil Ernerfeldt
124ef8ddf8
Update poll-promise and unicode_names2
2022-12-08 15:08:59 +01:00
Emil Ernerfeldt
896a299bf9
New web demo
2022-12-08 14:55:12 +01:00
Emil Ernerfeldt
4af7dc9e35
Very small doc and changelog tweaks
2022-12-08 14:49:13 +01:00
Emil Ernerfeldt
da0a178701
Style tweaks ( #2406 )
...
* Note the namechange of egui::color to egui::ecolor
* Use a solid triangle for collapsing headers and windows
* Add Shadow::NONE
* Add Visuals::panel_fill, window_fill and window_stroke
* Bug fix: ComboBox::width sets the outer width of the ComboBox
* egui_extras::Table: add functions to access the `Ui` for the header/body
* ComboBox: use solid triangle
* Tweak default menu margin
* Nudge panel separator lines so they stay visible
* Update changelogs
2022-12-08 10:55:13 +01:00
Emil Ernerfeldt
e30ac7f91a
Only add glutin dependency if you are using the glow backend ( #2402 )
2022-12-06 14:29:58 +01:00