Emil Ernerfeldt
aebec6329a
Use ⚠ instead of ‼ in "Debug build" warning
...
The latter is not supported by the default fonts
2022-10-24 15:00:50 +02:00
Emil Ernerfeldt
7b8c17042c
eframe: Make fullsize_content mac-only
2022-10-21 08:55:56 +02:00
Emil Ernerfeldt
7803285221
Remove Debug trait constraint on Id sources
2022-10-10 22:34:08 +02:00
Emil Ernerfeldt
f4d2aa5b4a
Only call the request_repaint_callback at most once per frame ( #2126 )
...
egui-winit adds new repaint events to the event loop on each call, and on some platforms this becomes very expensive.
2022-10-10 10:47:20 +02:00
Emil Ernerfeldt
eba3927ace
Remove .with_srgb(false) when constructing window ( #2110 )
2022-10-08 11:43:48 +02:00
Emil Ernerfeldt
f61044cef7
Fix copy-paste on Windows ( #2120 )
...
Closes https://github.com/emilk/egui/issues/2109
Since arboard 3.0 you must absolutely not hold onto `arboard::Clipbaord`
longer than you are using it.
See https://github.com/1Password/arboard/issues/84
2022-10-07 14:46:42 +02:00
Emil Ernerfeldt
3ec170cc1e
Tweak warning color in bright mode
2022-10-06 11:49:12 +02:00
Emil Ernerfeldt
4dd5ffa254
Fix: make ScrollAreaOutput public
2022-10-06 09:03:18 +02:00
Emil Ernerfeldt
c441f33ecf
Cargo deny: also check wasm32-unknown-unknown
2022-10-03 10:37:50 +02:00
Emil Ernerfeldt
dd67f3631f
Add Painter::image convenience function
2022-10-03 10:26:19 +02:00
Emil Ernerfeldt
77df8ca0b0
Update some crates ( #2100 )
...
* Update crate webbrowser 0.7 -> 0.8
* Update criterion 0.3 -> 0.4
* Update tts 0.20 -> 0.24
* revert tts update
2022-10-02 20:33:45 +02:00
Emil Ernerfeldt
2ee9ab3151
Added link to egui-glutin-gl
2022-09-27 23:08:43 +02:00
Emil Ernerfeldt
91b2d5da6f
Fix typo in wgpu warning message
2022-09-25 16:46:40 +02:00
Emil Ernerfeldt
4ac1e28eae
Improve text redering and do all color operation in gamma space ( #2071 )
2022-09-24 17:53:11 +02:00
Emil Ernerfeldt
29fa63317e
Fix text sizes being too small ( #2069 )
...
Closes https://github.com/emilk/egui/issues/2068
Before this PR, the default font, Ubuntu-Light, was ~11% smaller
than it should have been, and the default monospace font, Hack,
was ~14% smaller. This means that setting the font size `12` in egui
would yield smaller text than using that font size in any other app.
Ooops!
The change is that this PR now takes into account the ttf properties
`units_per_em` and `height_unscaled`.
If your egui application has specified you own font sizes or text styles
you will see the text in your application grow
larger, unless you go in and compensate by dividing all font sizes by
~1.21 for Ubuntu-Light/Proportional and ~1.16 for Hack/Monospace,
and with something else if you are using a custom font!
This effects any use of `FontId`, `RichText::size`, etc.
This PR changes the default `Style::text_styles` to compensate,
so the default egui style should look the same before and after this PR.
2022-09-21 21:31:08 +02:00
Emil Ernerfeldt
990a8c8b44
Fix sRGB blending and cleanup the relevant code ( #2070 )
...
* Fix sRGBA blending on Mac
* Clean up handling of sRGB support
* Assume sRGB support if any extension has sRGB in it
* improve logging very slightly
2022-09-21 21:30:02 +02:00
Emil Ernerfeldt
12dc61ed0f
update arboard to 3.0 ( #2067 )
2022-09-21 09:14:55 +02:00
Emil Ernerfeldt
2b0bf82b51
Make eframe::App::as_any_mut optional to implement ( #2061 )
2022-09-20 13:58:55 +02:00
Emil Ernerfeldt
c5495d69fb
egui-wgpu: Fix crash on zero-sized scissor rects ( #2039 )
2022-09-13 09:32:05 +02:00
Emil Ernerfeldt
e0c7533ede
eframe native: Make sure we only shut down once
...
I don't trust winit to actually exit on ControlFlow::Exit
Perhaps this will solve https://github.com/emilk/egui/issues/2027
2022-09-08 10:50:35 +02:00
Emil Ernerfeldt
1fe08bf7e4
eframe: reduce repaint log level from debug to trace
2022-09-07 16:27:53 +02:00
Emil Ernerfeldt
5500895845
eframe: make sure we save app state on Cmd-Q ( #2013 )
...
Cmd-Q emits a `winit::event::Event::LoopDestroyed` and then the app closes, without `run_return` returning (despite its name).
2022-09-06 16:07:58 +02:00
Emil Ernerfeldt
1d5f20b46c
Improve docstrings
...
Closes https://github.com/emilk/egui/issues/2001
2022-09-05 12:05:29 +02:00
Emil Ernerfeldt
ac4d75e9b4
egui-winit: don't repaint when just moving window ( #1980 )
...
* Bug fix: reset repaint countdown when we pass it
* eframe: debug-print what winit event caused a repaint
* egui-winit: don't repaint when only moving window
* fix docstring
2022-08-29 11:20:19 +02:00
Emil Ernerfeldt
3142c52b94
Minor wgpu-web releated stuff ( #1977 )
...
* egui_demo_app: remove wgpu and pollster as direct dependencies
* eframe: use same web-sys version as wgpu crate
* Make note that web_sys_unstable_apis is required by the wgpu crate
* Rename the glow web painter in eframe
* Remove trait DummyWebGLConstructor from web_glow_painter.rs
* cargo fmt
* Fix check.sh
2022-08-28 10:58:58 +02:00
Emil Ernerfeldt
b978b06159
Simplify, clean up and speed up CI ( #1970 )
...
Use https://github.com/Swatinem/rust-cache
2022-08-27 09:54:47 +02:00
Emil Ernerfeldt
d5933daee5
egui_glow: allow empty (zero-sized) textures
...
See https://github.com/emilk/egui/issues/1960
2022-08-24 14:34:34 +02:00
Emil Ernerfeldt
8797c02ed9
Publish new web demo that works on Es100
2022-08-20 19:55:54 +02:00
Emil Ernerfeldt
bd5250f85d
Disable custom 3D painting example in the egui demo app for Es100 ( #1945 )
...
Closes https://github.com/emilk/egui/issues/1944
2022-08-20 19:54:18 +02:00
Emil Ernerfeldt
97ce103209
Release 0.19.0 - wgpu backend, repaint_after, continue-after-close
2022-08-20 16:49:58 +02:00
Emil Ernerfeldt
13f5d62b4b
Commit a new web demo
2022-08-20 16:37:59 +02:00
Emil Ernerfeldt
127931ba45
eframe: rename quit/exit to "close" ( #1943 )
...
Since https://github.com/emilk/egui/pull/1919 we can continue
the application after closing the native window. It therefore makes
more sense to call `frame.close()` to close the native window,
instead of `frame.quit()`.
2022-08-20 16:08:59 +02:00
Emil Ernerfeldt
2453756782
Fix broken GitHub source links due to #1940
2022-08-20 15:18:02 +02:00
Emil Ernerfeldt
8737933101
Improve documentation and logging
2022-08-20 15:06:43 +02:00
Emil Ernerfeldt
725aa5277b
Update crate rfd to 0.10 (in file_dialog example)
...
Also update ab_glyph from 0.2.15 to 0.2.16
2022-08-20 14:42:37 +02:00
Emil Ernerfeldt
eb10ef94f7
Build-fix for --no-default-features
2022-08-20 14:40:33 +02:00
Emil Ernerfeldt
f4cc1c5465
eframe: Don't follow system theme by default ( #1941 )
...
I have gone back and forth on this a bit, but I think the arguments
AGAINST following the system theme are many:
* `dark-light` is a big dependency with problems on Linux.
* Many people prefer the dark mode and ask how to set it as the default
(even though they are using light mode in their OS).
* A developer may be surprised when the app changes theme when
they run it on another computer.
So, the path of least surprise is to make this an opt-in feature
with dark mode as the default mode.
On native, you add the `dark-light` feature to enable it.
On web, you set `WebOptions::follow_system_theme`.
2022-08-20 11:11:07 +02:00
Emil Ernerfeldt
40e440b2f7
Update changelog with recent PR merges
2022-08-20 10:42:31 +02:00
Emil Ernerfeldt
041f2e64ba
Move all crates into a crates directory ( #1940 )
2022-08-20 10:41:49 +02:00
Emil Ernerfeldt
5c63648c02
clean up rust.yml ( #1939 )
2022-08-20 09:32:48 +02:00
Emil Ernerfeldt
193a434717
eframe persistence: persistence failure is now logged instead of a panic
2022-08-19 12:04:43 +02:00
Emil Ernerfeldt
277f199df4
eframe: make sure we can serialize i128/u128 with ron
...
Some eframe users may be relying on this.
2022-08-19 12:04:08 +02:00
Emil Ernerfeldt
5514a8afda
Update dependencies ( #1933 )
...
* Update ahash from 0.7 to 0.8
Opt to use ahash::HashMap over ahash::AHashMap
* Fix ahash compilation for web
* Update ron to 0.8
* Add note about why we cannot update tiny-skia
* cargo update
Updating crates.io index
Updating android_system_properties v0.1.2 -> v0.1.4
Updating anyhow v1.0.58 -> v1.0.62
Updating async-broadcast v0.4.0 -> v0.4.1
Updating async-channel v1.6.1 -> v1.7.1
Updating async-io v1.7.0 -> v1.8.0
Updating async-task v4.2.0 -> v4.3.0
Updating async-trait v0.1.56 -> v0.1.57
Updating backtrace v0.3.65 -> v0.3.66
Updating bit-set v0.5.2 -> v0.5.3
Updating bumpalo v3.10.0 -> v3.11.0
Updating bytemuck v1.10.0 -> v1.12.1
Updating bytemuck_derive v1.1.0 -> v1.2.1
Updating bytes v1.1.0 -> v1.2.1
Updating cast v0.2.7 -> v0.3.0
Updating chrono v0.4.19 -> v0.4.22
Updating clap v3.2.8 -> v3.2.17
Updating clipboard-win v4.4.1 -> v4.4.2
Updating combine v4.6.4 -> v4.6.6
Updating concurrent-queue v1.2.2 -> v1.2.4
Updating criterion v0.3.5 -> v0.3.6
Updating criterion-plot v0.4.4 -> v0.4.5
Updating crossbeam-channel v0.5.5 -> v0.5.6
Updating crossbeam-deque v0.8.1 -> v0.8.2
Updating crossbeam-epoch v0.9.9 -> v0.9.10
Updating crossbeam-utils v0.8.10 -> v0.8.11
Updating document-features v0.2.1 -> v0.2.3
Updating dyn-clone v1.0.6 -> v1.0.9
Removing easy-parallel v3.2.0
Updating either v1.7.0 -> v1.8.0
Updating enum-map v2.1.0 -> v2.4.1
Updating enum-map-derive v0.8.0 -> v0.10.0
Updating event-listener v2.5.2 -> v2.5.3
Updating fastrand v1.7.0 -> v1.8.0
Updating futures-core v0.3.21 -> v0.3.23
Updating futures-io v0.3.21 -> v0.3.23
Updating futures-sink v0.3.21 -> v0.3.23
Updating futures-task v0.3.21 -> v0.3.23
Updating futures-util v0.3.21 -> v0.3.23
Updating gimli v0.26.1 -> v0.26.2
Updating gpu-descriptor v0.2.2 -> v0.2.3
Removing hashbrown v0.11.2
Removing hashbrown v0.12.1
Adding hashbrown v0.12.3
Adding iana-time-zone v0.1.46
Updating image v0.24.2 -> v0.24.3
Updating inplace_it v0.3.3 -> v0.3.4
Updating itoa v1.0.2 -> v1.0.3
Updating js-sys v0.3.58 -> v0.3.59
Updating libc v0.2.126 -> v0.2.132
Updating libm v0.2.2 -> v0.2.5
Removing memmap2 v0.3.1
Removing memmap2 v0.5.4
Adding memmap2 v0.5.7
Removing num-iter v0.1.43
Updating object v0.28.4 -> v0.29.0
Updating once_cell v1.13.0 -> v1.13.1
Updating os_str_bytes v6.1.0 -> v6.3.0
Updating owned_ttf_parser v0.15.0 -> v0.15.1
Removing parking_lot v0.11.2
Removing parking_lot_core v0.8.5
Updating plotters v0.3.1 -> v0.3.3
Updating plotters-backend v0.3.2 -> v0.3.4
Updating plotters-svg v0.3.1 -> v0.3.3
Updating proc-macro-crate v1.1.3 -> v1.2.1
Updating proc-macro2 v1.0.40 -> v1.0.43
Updating quote v1.0.20 -> v1.0.21
Updating redox_syscall v0.2.13 -> v0.2.16
Updating regex v1.5.6 -> v1.6.0
Updating regex-syntax v0.6.26 -> v0.6.27
Updating rfd v0.8.0 -> v0.8.4
Removing rustc_version v0.4.0
Updating ryu v1.0.10 -> v1.0.11
Updating sctk-adwaita v0.4.1 -> v0.4.2
Removing semver v1.0.12
Updating serde v1.0.138 -> v1.0.143
Updating serde_derive v1.0.138 -> v1.0.143
Updating serde_json v1.0.82 -> v1.0.83
Updating serde_repr v0.1.8 -> v0.1.9
Updating slab v0.4.6 -> v0.4.7
Removing smithay-client-toolkit v0.15.4
Updating smithay-clipboard v0.6.5 -> v0.6.6
Updating syn v1.0.98 -> v1.0.99
Updating thiserror v1.0.31 -> v1.0.32
Updating thiserror-impl v1.0.31 -> v1.0.32
Updating time v0.3.11 -> v0.3.13
Adding tiny-skia v0.7.0
Adding tiny-skia-path v0.7.0
Updating tracing v0.1.35 -> v0.1.36
Updating tracing-core v0.1.28 -> v0.1.29
Updating tracing-subscriber v0.3.14 -> v0.3.15
Updating unicode-ident v1.0.1 -> v1.0.3
Updating unicode_names2 v0.5.0 -> v0.5.1
Updating ureq v2.4.0 -> v2.5.0
Updating wasm-bindgen-futures v0.4.31 -> v0.4.32
Updating web-sys v0.3.58 -> v0.3.59
Updating webpki-roots v0.22.3 -> v0.22.4
Updating weezl v0.1.6 -> v0.1.7
Updating wgpu-core v0.13.1 -> v0.13.2
Updating wgpu-hal v0.13.1 -> v0.13.2
Updating wgpu-types v0.13.0 -> v0.13.2
Updating windows v0.32.0 -> v0.37.0
Updating windows_aarch64_msvc v0.32.0 -> v0.37.0
Updating windows_i686_gnu v0.32.0 -> v0.37.0
Updating windows_i686_msvc v0.32.0 -> v0.37.0
Updating windows_x86_64_gnu v0.32.0 -> v0.37.0
Updating windows_x86_64_msvc v0.32.0 -> v0.37.0
Updating x11-dl v2.19.1 -> v2.20.0
Updating zbus_names v2.1.0 -> v2.2.0
Updating zvariant v3.4.1 -> v3.6.0
Updating zvariant_derive v3.4.1 -> v3.6.0
* Add "Unicode-DFS-2016" to deny.toml whitelist
2022-08-19 11:46:38 +02:00
Emil Ernerfeldt
39b63f6163
Warn if using an TextShape from before a change to pixels_per_point
...
Closes https://github.com/emilk/egui/issues/1915
2022-08-16 22:47:23 +02:00
Emil Ernerfeldt
9c58f12a6c
eframe: several windows in series ( #1919 )
...
* Add example of opening several eframe windows in series
* Reuse the same winit event loop
* Ignore events to the wrong window
* Run run_return again
2022-08-15 16:31:03 +02:00
Emil Ernerfeldt
923b67ef9c
Update to winit 0.27.2, glutin 0.29.0, glium 0.32 ( #1914 )
2022-08-14 16:23:46 +02:00
Emil Ernerfeldt
7c25a9238e
Remove get_ prefix from functions to better follow Rust API Guidelines
2022-08-08 12:21:53 +02:00
Emil Ernerfeldt
e38955fbac
Fix: remember to call integration.post_rendering on wgpu path
2022-08-08 12:15:51 +02:00
Emil Ernerfeldt
9e41fa021a
eframe: rename render_state to wgpu_render_state for added clarity
2022-08-08 12:15:31 +02:00
Emil Ernerfeldt
66c601f775
Continue execution after closing native eframe window ( #1889 )
...
This adds `NativeOptions::run_and_return` with default value `true`.
If `true`, execution will continue after the eframe window is closed. This is a new behavior introduced in this PR.
If `false`, the app will close once the eframe window is closed. The is the old behavior.
This is `true` by default, and the `false` option is only there so we can revert if we find any bugs.
When `true`, [`winit::platform::run_return::EventLoopExtRunReturn::run_return`](https://docs.rs/winit/latest/winit/platform/run_return/trait.EventLoopExtRunReturn.html#tymethod.run_return ) is used. The winit docs warns of its usage, recommending `EventLoop::run`, but 🤷
When `false`, [`winit::event_loop::EventLoop::run`](https://docs.rs/winit/latest/winit/event_loop/struct.EventLoop.html#method.run ) is used.
This is a really useful feature. You can now use `eframe` to quickly open up a window and show some data or options, and then continue your program after the `eframe` window is closed
My previous attempt at this caused some problems, but my new attempt seems to be working much better, at least on my Mac.
2022-08-05 08:20:31 +02:00
Emil Ernerfeldt
a827c3e033
Add glow::Painter::intermediate_fbo()
...
This allow callbacks to restore to the correct framebuffer
after using their own temporary FBO.
See discussion in https://github.com/emilk/egui/issues/1744
2022-08-03 09:38:46 +02:00
Emil Ernerfeldt
53249d36df
Remove superflous #[cfg(test)]
2022-08-03 09:31:43 +02:00
Emil Ernerfeldt
cb0d5a58ab
Fix incorrect documentation for Response::context_menu
...
Closes https://github.com/emilk/egui/issues/1882
2022-08-03 08:26:42 +02:00
Emil Ernerfeldt
06adb09fa3
Make stick_to_bottom take a bool argument
2022-08-02 20:34:50 +02:00
Emil Ernerfeldt
263c9bd601
Make use of AppRunnerRef
...
Follow-up to #1650
2022-08-02 17:44:27 +02:00
Emil Ernerfeldt
10788ccc92
More newlines for improved readability ( #1880 )
...
* Add blank lines above all `fn`, `impl`, `struct`, etc
* Even newlines between docstringed struct and enum fields
* Improve some documentation
2022-08-02 17:26:33 +02:00
Emil Ernerfeldt
5d8ef5326b
Change build_demo_web.sh option from --fast to --optimize
2022-08-02 09:56:38 +02:00
Emil Ernerfeldt
2500a60062
Code cleanup and improved docs
2022-07-30 18:40:49 +02:00
Emil Ernerfeldt
d659e5d24f
Add Shape::hline and Shape::vline
2022-07-30 15:34:24 +02:00
Emil Ernerfeldt
c62f3409bd
Fix misnamed variable (content_is_too_small -> content_is_too_large)
...
See https://github.com/emilk/egui/issues/1376
2022-07-30 15:33:08 +02:00
Emil Ernerfeldt
235d77713d
Improve README.md files
2022-07-29 16:07:48 +02:00
Emil Ernerfeldt
6de9d89b65
Add emath::exponential_smooth_factor
2022-07-29 16:07:35 +02:00
Emil Ernerfeldt
4e8a6e3370
misc code cleanup
2022-07-29 16:07:26 +02:00
Emil Ernerfeldt
b0fa0c65cc
fix typo
2022-07-29 15:56:04 +02:00
Emil Ernerfeldt
2612dd1064
Add Visuals::error_fg_color and Visuals::warn_fg_color
2022-07-29 15:32:32 +02:00
Emil Ernerfeldt
8c09804abd
eframe: selectively expose parts of the API based on compile target (#1867 )
...
A lot of the `eframe` API is native-only or web-only. With this PR, only the parts that are implemented for each platform is exposed.
This means you'll need to add `#[cfg(target_arch = "wasm32")]` around code that uses the web-parts of the eframe API, and add `#[cfg(not(target_arch = "wasm32"))]` around the parts that are for native/desktop.
2022-07-29 14:37:23 +02:00
Emil Ernerfeldt
51052c08e9
code cleanup: Pos2::new -> pos2, Vec2::new -> vec2
2022-07-29 14:34:26 +02:00
Emil Ernerfeldt
105cb4b8f2
eframe: add function to set, query and toggle fullscreen mode ( #1866 )
...
Closes https://github.com/emilk/egui/pull/674
Adds `NativeOptions:fullscreen`, `Frame::set_fullscreen` and `WindowInfo::fullscreen`.
2022-07-29 14:21:23 +02:00
Emil Ernerfeldt
278db1c94b
Fix plot auto bounds ( #1865 )
...
* Better estimate the plot bounds for generator functions
Avoid infinities, and sample more densely
* Optimize and improve plot auto-bounds logic
* Fix cropping out of the top/bottom of plots during auto-bounds
2022-07-29 12:32:47 +02:00
Emil Ernerfeldt
97880e18d7
Make egui_demo_app native window size larger by default
2022-07-29 11:14:37 +02:00
Emil Ernerfeldt
09d636b089
egui-wgpu: correctly handle viewport rectangle for callbacks
...
This is important for when a callback shape is inside a ScrollArea.
2022-07-29 00:06:08 +02:00
Emil Ernerfeldt
2278128e66
Add bacon.toml for https://github.com/Canop/bacon
2022-07-26 11:21:57 +02:00
Emil Ernerfeldt
8e2de26e4e
Enable more clippy lints
2022-07-26 11:18:21 +02:00
Emil Ernerfeldt
a7012cf8a6
Use pinned version of wasm-bindgen-cli ( #1855 )
...
* Use pinned version of wasm-bindgen-cli
* Update wasm-bindgen to 0.2.82
* Call setup_web.sh from scripts that depends on it
2022-07-25 23:02:10 +02:00
Emil Ernerfeldt
c02fbfe973
Make it easier to disable tts
...
This is a small step in mitigating https://github.com/emilk/egui/issues/1125
2022-07-25 22:17:52 +02:00
Emil Ernerfeldt
cf591da1a0
Use past tense in all changelogs (for consistency)
2022-07-23 23:55:21 +02:00
Emil Ernerfeldt
8b3d218f4b
Update changelogs with all changes from all PR:s since 0.18 release
2022-07-23 23:54:13 +02:00
Emil Ernerfeldt
d76d055d49
eframe: only enable puffin feature on egui_glow if glow is enabled
2022-07-22 11:09:27 +02:00
Emil Ernerfeldt
41f31116ce
Layout::left_to_right/right_to_left now takes the valign as argument
...
Previous default was `Align::Center`.
Closes https://github.com/emilk/egui/issues/1040
Closes https://github.com/emilk/egui/issues/1836
Closes https://github.com/emilk/egui/pull/1837
2022-07-22 11:02:26 +02:00
Emil Ernerfeldt
9f1f0a9038
Add documentation for Layout
...
Related to https://github.com/emilk/egui/issues/1836
2022-07-22 10:41:14 +02:00
Emil Ernerfeldt
fdc2d1cd6d
epaint tessellator: don't emit empty meshes
...
Closes https://github.com/emilk/egui/issues/1772
2022-07-22 10:25:20 +02:00
Emil Ernerfeldt
77b4bacdf4
Make widget_text module public
...
Closes https://github.com/emilk/egui/issues/1756
2022-07-21 20:52:50 +02:00
Emil Ernerfeldt
0337d78eaa
Fix inpuit requiring ALT key
...
Common on Mac, maybe other platforms too.
Closes https://github.com/emilk/egui/issues/1795
Bug introduced in https://github.com/emilk/egui/pull/1697
2022-07-21 20:25:53 +02:00
Emil Ernerfeldt
bf15bb6e19
Use cargo cranky instead of cargo clippy ( #1820 )
...
* Use cargo cranky instead of cargo clippy
cargo cranky (https://github.com/ericseppanen/cargo-cranky )
is a new tool that passes lints specified in a Cranky.toml
to cargo clippy.
This is a possible solution to
https://github.com/rust-lang/cargo/issues/5034
* Remove `-W clippy::all` from `check.sh` (rely on `Cranky.toml` instead)
2022-07-20 12:34:19 +02:00
Emil Ernerfeldt
898f4804b7
Enable and fix a bunch more lints
2022-07-11 23:08:48 +02:00
Emil Ernerfeldt
c062bca6ee
faster builds: remove tracing-attributes feature from tracing
2022-07-04 00:11:08 +02:00
Emil Ernerfeldt
0f0031ebbb
cargo update ( #1794 )
...
* cargo update
Updating crates.io index
Updating anyhow v1.0.57 -> v1.0.58
Updating arboard v2.1.0 -> v2.1.1
Updating async-broadcast v0.3.4 -> v0.4.0
Updating async-io v1.6.0 -> v1.7.0
Updating async-trait v0.1.53 -> v0.1.56
Updating bindgen v0.59.2 -> v0.60.1
Updating bumpalo v3.9.1 -> v3.10.0
Updating bytemuck v1.9.1 -> v1.10.0
Updating cfg-expr v0.10.2 -> v0.10.3
Updating clang-sys v1.3.1 -> v1.3.3
Adding clap v3.2.8
Adding clap_lex v0.2.4
Updating crossbeam-channel v0.5.4 -> v0.5.5
Updating crossbeam-epoch v0.9.8 -> v0.9.9
Updating crossbeam-utils v0.8.8 -> v0.8.10
Updating dyn-clone v1.0.5 -> v1.0.6
Updating either v1.6.1 -> v1.7.0
Updating enum-map v2.1.0 -> v2.4.0
Updating enum-map-derive v0.8.0 -> v0.9.0
Updating flate2 v1.0.23 -> v1.0.24
Updating getrandom v0.2.6 -> v0.2.7
Updating gif v0.11.3 -> v0.11.4
Adding hashbrown v0.12.1
Updating indexmap v1.8.1 -> v1.9.1
Updating itoa v1.0.1 -> v1.0.2
Updating jpeg-decoder v0.2.4 -> v0.2.6
Updating linked-hash-map v0.5.4 -> v0.5.6
Updating log v0.4.16 -> v0.4.17
Updating memmap2 v0.5.3 -> v0.5.4
Updating miniz_oxide v0.5.1 -> v0.5.3
Updating mio v0.8.2 -> v0.8.4
Removing miow v0.3.7
Adding nix v0.24.1
Removing ntapi v0.3.7
Updating num-rational v0.4.0 -> v0.4.1
Updating num-traits v0.2.14 -> v0.2.15
Updating num_threads v0.1.5 -> v0.1.6
Updating object v0.28.3 -> v0.28.4
Updating once_cell v1.10.0 -> v1.12.0
Adding os_str_bytes v6.1.0
Updating parking_lot v0.12.0 -> v0.12.1
Updating parking_lot_core v0.9.1 -> v0.9.3
Updating proc-macro2 v1.0.37 -> v1.0.40
Updating profiling v1.0.5 -> v1.0.6
Updating puffin v0.13.1 -> v0.13.3
Updating quote v1.0.18 -> v1.0.20
Updating rayon v1.5.2 -> v1.5.3
Updating rayon-core v1.9.2 -> v1.9.3
Updating regex v1.5.5 -> v1.5.6
Updating regex-syntax v0.6.25 -> v0.6.26
Adding remove_dir_all v0.5.3
Updating rfd v0.8.0 -> v0.8.4
Updating rgb v0.8.32 -> v0.8.33
Updating ron v0.7.0 -> v0.7.1
Updating rustls v0.20.4 -> v0.20.6
Updating rustybuzz v0.5.0 -> v0.5.1
Updating ryu v1.0.9 -> v1.0.10
Updating semver v1.0.7 -> v1.0.12
Updating serde v1.0.136 -> v1.0.138
Updating serde_derive v1.0.136 -> v1.0.138
Updating serde_json v1.0.79 -> v1.0.82
Updating serde_repr v0.1.7 -> v0.1.8
Updating smallvec v1.8.0 -> v1.9.0
Adding smithay-client-toolkit v0.16.0
Updating smithay-clipboard v0.6.5 -> v0.6.6
Updating str-buf v1.0.5 -> v1.0.6
Removing strsim v0.8.0
Updating svgtypes v0.8.0 -> v0.8.1
Updating syn v1.0.92 -> v1.0.98
Adding tempfile v3.3.0
Adding textwrap v0.15.0
Updating thiserror v1.0.30 -> v1.0.31
Updating thiserror-impl v1.0.30 -> v1.0.31
Removing time v0.1.43
Removing time v0.3.9
Adding time v0.1.44
Adding time v0.3.11
Updating tiny-skia v0.6.3 -> v0.6.6
Updating tracing v0.1.34 -> v0.1.35
Updating tracing-attributes v0.1.21 -> v0.1.22
Updating tracing-core v0.1.26 -> v0.1.28
Updating tracing-subscriber v0.3.11 -> v0.3.14
Updating ttf-parser v0.15.0 -> v0.15.2
Updating tts v0.20.3 -> v0.20.4
Updating twox-hash v1.6.2 -> v1.6.3
Adding uds_windows v1.0.2
Adding unicode-ident v1.0.1
Updating unicode-normalization v0.1.19 -> v0.1.21
Removing vec_map v0.8.2
Updating wasi v0.10.2+wasi-snapshot-preview1 -> v0.10.0+wasi-snapshot-preview1
Updating wgpu v0.13.0 -> v0.13.1
Updating wgpu-core v0.13.0 -> v0.13.1
Updating wgpu-hal v0.13.0 -> v0.13.1
Removing windows v0.32.0
Adding windows v0.33.0
Adding windows v0.37.0
Updating windows-sys v0.32.0 -> v0.36.1
Removing windows_aarch64_msvc v0.32.0
Adding windows_aarch64_msvc v0.33.0
Adding windows_aarch64_msvc v0.36.1
Adding windows_aarch64_msvc v0.37.0
Removing windows_i686_gnu v0.32.0
Adding windows_i686_gnu v0.33.0
Adding windows_i686_gnu v0.36.1
Adding windows_i686_gnu v0.37.0
Removing windows_i686_msvc v0.32.0
Adding windows_i686_msvc v0.33.0
Adding windows_i686_msvc v0.36.1
Adding windows_i686_msvc v0.37.0
Removing windows_x86_64_gnu v0.32.0
Adding windows_x86_64_gnu v0.33.0
Adding windows_x86_64_gnu v0.36.1
Adding windows_x86_64_gnu v0.37.0
Removing windows_x86_64_msvc v0.32.0
Adding windows_x86_64_msvc v0.33.0
Adding windows_x86_64_msvc v0.36.1
Adding windows_x86_64_msvc v0.37.0
Updating zbus v2.1.1 -> v2.3.2
Updating zbus_macros v2.1.1 -> v2.3.2
Updating zstd v0.10.0+zstd.1.5.2 -> v0.11.2+zstd.1.5.2
Updating zstd-safe v4.1.4+zstd.1.5.2 -> v5.0.2+zstd.1.5.2
Updating zstd-sys v1.6.3+zstd.1.5.2 -> v2.0.1+zstd.1.5.2
Updating zvariant v3.1.2 -> v3.4.1
Updating zvariant_derive v3.1.2 -> v3.4.1
❯ cargo update -p smithay-clipboard --precise 0.6.5
Updating crates.io index
Removing nix v0.24.1
Removing smithay-client-toolkit v0.16.0
Updating smithay-clipboard v0.6.6 -> v0.6.5
* Downgrade enum-map so we can build with rust 1.60
* update syntect
* Update usvg and resvg
* Fix syntect update
* Update tts to 0.22
* Make egui_demo_app compile for wasm with wgpu feature
This broke in https://github.com/emilk/egui/pull/1781
* Ignore rfd tree in deny.toml
* Revert "Update tts to 0.22"
This reverts commit 2e1280b61ef9422c76491ab718ad8da105657097.
* Explain why tts is stuck on an old version
* Downgrade `rfd` to avoid problems with duplicate `windows` crate
2022-07-03 20:12:57 +02:00
Emil Ernerfeldt
bd2cab2f0e
Update three d ( #1793 )
...
* Update three-d to 0.12
* Fix Z fighting in three-d example
Closes https://github.com/emilk/egui/issues/1744
* cargo deny: ignore three-d (only used in examples)
2022-07-03 18:29:12 +02:00
Emil Ernerfeldt
406703568e
Minor clippy fixes (clippy::format_push_string)
2022-07-03 11:58:53 +02:00
Emil Ernerfeldt
eeae485629
Implement repaint_after for eframe web ( #1760 )
...
* Implement repaint_after for eframe web
Follow-up to #1694
* cargo fmt
* Simplify demo UI for "repaint_after"
2022-06-22 14:25:42 +02:00
Emil Ernerfeldt
8c7c4c764b
Don't load fonts in doctests ( #1711 )
...
I was hoping this would speed up the doctests, but it doesn't really
2022-06-10 14:33:16 +02:00
Emil Ernerfeldt
317436c057
Use dark-light on Mac and Windows ( #1726 )
...
* Use dark-light on Mac and Windows
dark-light has a nasty problem on Linux: https://github.com/frewsxcv/rust-dark-light/issues/17
So we made dark-light opt-in in https://github.com/emilk/egui/pull/1437
This PR makes dark-light a default dependency again,
but only use it on Max and Windows.
This is controlled with the new NativeOptions::follow_system_theme.
If this isn't enabled, then NativeOptions::default_theme is used.
* Add eframe::WebOptions
2022-06-09 17:41:59 +02:00
Emil Ernerfeldt
29973e5d02
Make document-features an opt-in dependency
2022-06-09 17:41:37 +02:00
Emil Ernerfeldt
3169ce62d5
Document feature flags using crate document-features ( #1725 )
2022-06-09 15:27:22 +02:00
Emil Ernerfeldt
083e20474b
deny warnings on CI and check.sh with -D warnings ( #1710 )
2022-06-02 21:06:12 +02:00
Emil Ernerfeldt
e6cfa5028e
Add link to chinese translation of egui docs
2022-05-29 21:16:32 +02:00
Emil Ernerfeldt
ac9faaf1c1
epaint_assert that partial texture update is within texture size
2022-05-29 21:00:49 +02:00
Emil Ernerfeldt
42edb92232
Fix compilation of screenshot example (merge race)
2022-05-29 20:59:39 +02:00
Emil Ernerfeldt
20c8ee302c
Allow software rendering OpenGL by default ( #1693 )
...
Follow-up to https://github.com/emilk/egui/pull/1681
2022-05-29 20:37:19 +02:00
Emil Ernerfeldt
2771c8c3e5
Fix doclinks
2022-05-28 18:09:08 +02:00