Emil Ernerfeldt
9f1f0a9038
Add documentation for `Layout`
Related to https://github.com/emilk/egui/issues/1836
2 years ago
Emil Ernerfeldt
fdc2d1cd6d
epaint tessellator: don't emit empty meshes
Closes https://github.com/emilk/egui/issues/1772
2 years ago
Emil Ernerfeldt
77b4bacdf4
Make widget_text module public
Closes https://github.com/emilk/egui/issues/1756
2 years ago
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
2 years ago
Julian
0338843950
(eframe) add Frame.set_visible ( #1808 )
2 years ago
Milo Moisson
cbe22a0371
Update the link to the nannou egui integration. ( #1827 )
The project has now moved to the official repository. The old is an archived repo.
Thanks
2 years ago
Sahil Singh
48d48096eb
Add support for ctrl+h as backspace ( #1812 )
2 years ago
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)
2 years ago
Emil Ernerfeldt
898f4804b7
Enable and fix a bunch more lints
2 years ago
Aiden
e76c919c7e
Added WebGlContextOption for eframe::WebOptions ( #1803 )
* Added WebGlContextOption for eframe::WebOptions
* Fix doclink
* Fix minor doc issue
Co-authored-by: xxvvii <xuwei@aecg.com.cn>
Co-authored-by: Emil Ernerfeldt <emil.ernerfeldt@gmail.com>
2 years ago
Emil Ernerfeldt
c062bca6ee
faster builds: remove `tracing-attributes` feature from `tracing`
2 years ago
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 2e1280b61e
.
* Explain why tts is stuck on an old version
* Downgrade `rfd` to avoid problems with duplicate `windows` crate
2 years ago
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)
2 years ago
Ashley
9739009f20
Update wgpu to 0.13 ( #1670 )
* Update the wgsl syntax used in egui-wgpu
* Updates for the latest version of wgpu
* Update the wgpu version
* get_preffered_format -> get_supported_formats
* Just use an array access for compatible formats
* Use the naga cli to validate the egui demo app custom wgpu shader
* Run cargo check on the custom3d wgpu app
Co-authored-by: Emil Ernerfeldt <emil.ernerfeldt@gmail.com>
2 years ago
Barugon
433719717a
Don't call scroll if TextEdit is fully in view ( #1779 )
* Don't call scroll if TextEdit is fully in view
* Explain why the new logic was added
* cargo fmt
Co-authored-by: Emil Ernerfeldt <emil.ernerfeldt@gmail.com>
2 years ago
Thomas Hansen
cb9bc8698d
Browser Hotkey Conflicts ( #1697 )
* code hotkey to N, move superscript hotkey to Y
ctrl A S D F G H are all taken, CTRL Q is traditionally to remove formatting and should be reserved for that. CTRL W E R T are also all taken. CTRL Z X C V are taken so all of the first 4/5 keys of each row except Q are inaccessible.
* strike through conflict, update text
* fixed underline command
* added ALTSHIFT, browser documentation
* underline ALTSHIFT Q
it leaves the Q character which is considered a bug but before this pull underline was not working entirely so this is progress
* update text
* ALTSHIFT is treated as a command
* added eighth command, ALTSHIFT+W adds two spaces
* CTRL+Y to toggle case on text_edit demo
* better code
* Revised Menu
* fix dead link
* Update lib.rs
* Update easy_mark_editor.rs
* Update egui/src/data/input.rs
Co-authored-by: Emil Ernerfeldt <emil.ernerfeldt@gmail.com>
* update
* reverted variables used for debugging
* fixed labels hotkey conflict
* comments
* fmt
* cargo fmt
* Nice hotkey menu
Co-authored-by: Emil Ernerfeldt <emil.ernerfeldt@gmail.com>
2 years ago
Yuan Chang
14ae4b24a7
Support rich text convert from cow-string. ( #1774 )
2 years ago
Sahil Singh
5f364795cc
Add doc example for hint_text persistence ( #1776 )
2 years ago
Zeenobit
0c65a9df41
Add `body_unindented` to `HeaderResponse` ( #1731 )
2 years ago
Ashley
980a06b95e
Don't force the webgl backend in egui-wgpu ( #1781 )
2 years ago
Emil Ernerfeldt
406703568e
Minor clippy fixes (clippy::format_push_string)
2 years ago
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"
2 years ago
Red Artist
935913b1ec
Add Context::request_repaint_after ( #1694 )
2 years ago
Michael Birdhouse
1a89cb35e1
Fix uneven table striping ( #1680 )
* Fix uneven table striping
* simplify the code
Co-authored-by: Emil Ernerfeldt <emil.ernerfeldt@gmail.com>
2 years ago
wucke13
bd5f553c3a
Fix multiple partial updates of the same texture ( #1338 )
Co-authored-by: Wanja Zaeske <wanja.zaeske@dlr.de>
Co-authored-by: Emil Ernerfeldt <emil.ernerfeldt@gmail.com>
2 years ago
Barugon
f5b2363fff
Fix persistence of window position ( #1745 )
* Fix window position
* Better comment
* Add doc link
2 years ago
Barugon
5b3bff22e2
Make Windows specific code Windows specific ( #1747 )
2 years ago
Nazarí González
9c26093fea
Added `notan_egui` as 3rd party integration ( #1741 )
2 years ago
mitchmindtree
7eeb292adf
Refactor common code in `egui-wgpu` shader entry points ( #1730 )
Creates `unpack_color` and `position_from_screen` functions to share
common logic between the alternative vertex shader entry points.
2 years ago
Emil Ernerfeldt
8c7c4c764b
Don't load fonts in doctests ( #1711 )
I was hoping this would speed up the doctests, but it doesn't really
2 years ago
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
2 years ago
Emil Ernerfeldt
29973e5d02
Make document-features an opt-in dependency
2 years ago
Charles Ray
4525cad7af
Constrain date picker to screen ( #1699 )
Co-authored-by: Emil Ernerfeldt <emil.ernerfeldt@gmail.com>
2 years ago
Zicklag
62a00c4597
Fix bug in egui-wgpu ( #1716 )
2 years ago
Cisco
8446665b02
Fix on-hover typo in plot module ( #1714 )
2 years ago
Emil Ernerfeldt
3169ce62d5
Document feature flags using crate document-features ( #1725 )
2 years ago
Zicklag
218d4d4eea
WGPU PaintCallback Fixes ( #1704 )
* Expose egui WGPU Textures and Limit Exposed API
This allows paint callbacks to access textures allocated by egui, and
also hides the functions on the `RenderPass` that users should not need
to call.
* Fix WGPU Rendering Bug When Using Paint Callbacks
Depending on the order custom paint callbacks were rendered, some of the
egui meshes would previously not be rendered at all in a seemingly random
fashion.
* Make egui_wgpu::Renderer Functions Public Again
2 years ago
Emil Ernerfeldt
083e20474b
deny warnings on CI and check.sh with -D warnings ( #1710 )
2 years ago
John Wells
f8ce51e5aa
Add screen-13-egui link to README.md ( #1709 )
2 years ago
follower
e2bfdbe8b0
egui-wgpu: Ensure docs for `winit` feature are generated. ( #1700 )
per https://github.com/emilk/egui/issues/381#issuecomment-839707073
2 years ago
Emil Ernerfeldt
e6cfa5028e
Add link to chinese translation of egui docs
2 years ago
Emil Ernerfeldt
ac9faaf1c1
epaint_assert that partial texture update is within texture size
2 years ago
Emil Ernerfeldt
42edb92232
Fix compilation of screenshot example (merge race)
2 years ago
Erdal Acar
7987920f7e
Fix exit handling ( #1696 )
2 years ago
Emil Ernerfeldt
20c8ee302c
Allow software rendering OpenGL by default ( #1693 )
Follow-up to https://github.com/emilk/egui/pull/1681
2 years ago
René Rössler
4a7a2d6430
eframe::App::post_rendering ( #1591 )
2 years ago
Ashley
abff2dcae2
Add some padding to the egui-wgpu uniform buffer for WebGL ( #1671 )
Required on Chromium
2 years ago
Emil Ernerfeldt
2771c8c3e5
Fix doclinks
2 years ago
Benedikt Terhechte
72e38370fe
Add flag to disable hardware acceleration ( #1681 )
This is a fix for the behaviour on macOS platforms where any egui app would use the dedicated GPU and consume more power than needed. Not all apps might have dedicated GPU requirements.
2 years ago
Zicklag
1d9524cc59
Re-implement PaintCallbacks With Support for WGPU ( #1684 )
* Re-implement PaintCallbacks With Support for WGPU
This makes breaking changes to the PaintCallback system, but makes it
flexible enough to support both the WGPU and glow backends with custom
rendering.
Also adds a WGPU equivalent to the glow demo for custom painting.
2 years ago