Commit Graph

1965 Commits

Author SHA1 Message Date
Emil Ernerfeldt 973c3f22d1
Revert "Update tts to 0.21.1" (#1482)
This reverts commit de038b9546.
2022-04-12 21:40:57 +02:00
Emil Ernerfeldt 08b208586a egui-winit: if clipboard fails to start, fall back to local clipboard 2022-04-12 11:39:35 +02:00
Emil Ernerfeldt d364dfac66 Add Rect::distance_to_pos 2022-04-12 11:33:48 +02:00
Emil Ernerfeldt 038b3cf2e2 Add `Painter::hline` and `Painter::vline` 2022-04-12 10:54:38 +02:00
Emil Ernerfeldt 701ae3cb46 egui_extras::Table: fix bugs in the virtual scrolling 2022-04-11 17:54:57 +02:00
Emil Ernerfeldt 56b127f209 Simplify table demo 2022-04-11 17:25:44 +02:00
Emil Ernerfeldt de038b9546 Update tts to 0.21.1 2022-04-11 16:36:25 +02:00
Emil Ernerfeldt efc0b992e0 egui_extras: fix bug when restoring persisted table widths 2022-04-11 14:27:32 +02:00
Emil Ernerfeldt e97241861e egui_extras Table/Strip: less aggressive cell clipping 2022-04-11 10:55:52 +02:00
Emil Ernerfeldt 917f9e1768 Refactor and simplify feature flags 2022-04-11 10:53:16 +02:00
Emil Ernerfeldt 426b933d2f egui_extras: add `cell_layout` option to set the layout of all cells 2022-04-11 10:29:34 +02:00
Emil Ernerfeldt 0e0eedfdda Add ui.horizontal_centered 2022-04-11 10:28:45 +02:00
Emil Ernerfeldt 772ef84242 egui_extras Table/Strip: fix some spacing bugs 2022-04-11 10:19:07 +02:00
Emil Ernerfeldt c88e1f8b29 egui_extras: improve Table/Strip docs, and only panic in debug builds 2022-04-11 10:17:36 +02:00
Emil Ernerfeldt 65d16695ae
Replace copypasta with arboard (#1475)
* Replace copypasta with arboard

Closes https://github.com/emilk/egui/issues/1474

* Clean up deny.toml
2022-04-10 16:41:07 +02:00
Alexis Sellier b036257729
Make `FontId` functions constant (#1463) 2022-04-10 16:40:42 +02:00
Emil Ernerfeldt 9b37c82d46 Update three-d to 0.11 2022-04-10 10:00:57 +02:00
Emil Ernerfeldt 29d214912f Improve explanation of immediate mode
Closes https://github.com/emilk/egui/issues/1465
2022-04-10 09:43:23 +02:00
Emil Ernerfeldt c2ab0404b7
Fix crash in text layout (#1468)
Fix text layout bug added in https://github.com/emilk/egui/pull/1291
2022-04-09 22:43:40 +02:00
Emil Ernerfeldt cf0338d48f
Rust 1.60.0 + refactor cargo features (#1467)
* Update to rust 1.60.0
* Rename the feature `convert_bytemuck` to `bytemuck`
* Rename the feature `serialize` to `serde`.
* Make use of the "weak dependency" cargo feature
* Set rust-version = "1.60" for all crates
* egui_glow: clipboard, links, persistence & winit are now opt-in features
2022-04-09 13:54:47 +02:00
Emil Ernerfeldt bdfc512b01 Add docstring example for `TableBody::rows` 2022-04-09 13:34:55 +02:00
Emil Ernerfeldt cd0fb1f3d9 Simplify table demo 2022-04-09 13:18:57 +02:00
wayne 0c87e02f55
egui_extras: enable virtual scroll for heterogenous rows (#1444)
Introduce `TableBody::heterogenous_rows` for "virtual scrolling" over rows with differing heights.
2022-04-09 13:18:33 +02:00
Friz64 dd58d5175f
Replace `top_most_layer` with more flexible `layer_ids` (#1266) 2022-04-08 09:06:04 +02:00
Emil Ernerfeldt 8cf196a34b Use proper shebang for all bash scripts: #!/usr/bin/env bash 2022-04-07 17:34:34 +02:00
Emil Ernerfeldt 7cd285ecbc misc clippy fixes from 1.60.0 2022-04-07 17:03:19 +02:00
Zachary Kohnen dffab1c737
Add Shape::galley_with_color (#1461) 2022-04-06 18:47:46 +02:00
Emil Ernerfeldt 68d5806b41 Add a text blending test to the color test 2022-04-05 14:23:30 +02:00
Emil Ernerfeldt a9ae8c3e2c
Smaller checkboxes and radiobutton without a label (#1456)
Co-authored-by: Michael Völkl <michaelvoelkl@zoho.com>
2022-04-05 09:16:58 +02:00
Emil Ernerfeldt bd25526a4f check.sh: fail on rustdoc failure
Same as https://github.com/emilk/egui/pull/1454
2022-04-05 08:07:57 +02:00
Nicklas Møller f8e833ad8b
Fail docs build when warnings are generated (#1454) 2022-04-05 08:06:41 +02:00
Emil Ernerfeldt c3b6d1bab9
Warn about Id clashes for Grid, Plot, ScrollArea, Table (#1452)
Id clashes can cause subtle bugs.

egui already warns when the same Id is used to interact with different
parts of the screen.

This adds warnings about id clashes for some widgets that store state:
Grid, Plot, ScrollArea, Table.

The PR also adds `Context::check_for_id_clash` so users who create
their own widgets can add the same type of check.
2022-04-04 13:13:34 +02:00
Emil Ernerfeldt 2d30bd751c emath: add Rect::signed_distance_to_pos and Vec2::abs 2022-04-04 11:24:08 +02:00
Emil Ernerfeldt 5d19f381f9 Fix TexEdit clipping half the cursor when in the first column
Closes https://github.com/emilk/egui/issues/1449
2022-04-04 09:20:19 +02:00
Emil Ernerfeldt dfd6a91cb0 Fix doclinks 2022-04-03 20:38:51 +02:00
awaken1ng 901b7c7994
[epaint] Add more text wrapping options (#1291) 2022-04-03 20:28:47 +02:00
Emil Ernerfeldt d09fa63d9c Fix `Ui::add_visible` sometimes leaving the `Ui` in a disabled state
Closes https://github.com/emilk/egui/issues/1436
2022-04-03 19:38:34 +02:00
4JX 6091370962
Add more doc-links in docstrings (#1419) 2022-04-03 18:18:35 +02:00
Emil Ernerfeldt 861b0e11ba
Fix sh/check.sh (#1446)
* Don't bother serializing date in widget gallery
* Make egui_extras non-optional dependency of egui_demo_lib
2022-04-03 18:14:40 +02:00
Emil Ernerfeldt 10f30a0c52
Fix tessellation of Shape::Vec of heterogenous TextureId:s (#1445)
Closes https://github.com/emilk/egui/issues/1443
2022-04-03 18:14:27 +02:00
Lucas Kent c2039920de
Add Plot::allow_scroll (#1382) 2022-04-03 10:43:55 +02:00
Emil Ernerfeldt 95efbbc03e
Remember to update glow window size when DPI changes (#1441) 2022-04-03 10:20:49 +02:00
Emil Ernerfeldt aa6a2bb73f Update PR template to suggests users to run ./sh/check.sh 2022-04-03 09:52:25 +02:00
Emil Ernerfeldt 5dff1e42c6
More table improvements (#1440)
* Clip by default
* Fix some spacing bugs
* datepicker: look nicer in light mode
* datepicker: show month names
* Table: don't allow resize of last column if it is Size::Remainder
2022-04-01 15:27:42 +02:00
Emil Ernerfeldt c029f25c13 Table: don't allow resize of last column if it is Size::Remainder 2022-04-01 14:44:25 +02:00
Emil Ernerfeldt 51cc9c9a9a Table: fix bug with item spacing 2022-04-01 14:43:43 +02:00
Emil Ernerfeldt 21c32a18d8
Table resize (#1438)
* Let 1D strips fill up parent width/height
* Add Strip + Table + DatePicker to egui_extras changelog
* Expose some dragging- and pointer related context/memory methods
* Make tables resizable
2022-04-01 12:01:00 +02:00
Collin Kemper a52bbade45
Place dark-light behind a feature gate in eframe and egui_glow (#1437) 2022-04-01 11:10:47 +02:00
René Rössler 1d32670cf3
Dynamic sized strips, tables, and date picker (#963) 2022-03-31 21:13:25 +02:00
follower 95ff7ec000
Typo fixes in egui_web README (#1433) 2022-03-30 10:19:42 +02:00