Emil Ernerfeldt
9ca4d173c5
Merge branch 'master' into zlayer
...
# Conflicts:
# crates/egui/src/containers/area.rs
# crates/egui/src/containers/popup.rs
# crates/egui/src/context.rs
# crates/egui/src/painter.rs
# crates/egui/src/ui.rs
2023-01-26 14:52:56 +01:00
Emil Ernerfeldt
9ee77aab84
Fix warning
2023-01-26 14:46:23 +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
lictex_
eee4cf6a82
add functions to check which button triggered a drag start & end ( #2507 )
...
* add button release events for drags
* add utility functions
* fix CHANGELOG.md
* fix CHANGELOG.md
Co-authored-by: Emil Ernerfeldt <emil.ernerfeldt@gmail.com>
2023-01-24 10:11:32 +01:00
Emil Ernerfeldt
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
Pâris DOUADY
518b4f447e
Allow changing ProgressBar fill color ( #2618 )
2023-01-23 15:33:02 +01:00
Emil Ernerfeldt
d4f9f6984d
Fix red doctest
2023-01-23 15:04:35 +01:00
Weasy
356ebe55da
Add rounding
fn to Button, to enable rounded buttons ( #2616 )
2023-01-23 12:37:39 +01:00
LEAVING
5029575ed0
Fix typo: 'Viewport width' -> 'Viewport height' ( #2615 )
2023-01-23 12:37:26 +01:00
Timon
30e49f1da2
Expose area interactable and movable to Window api. ( #2610 )
...
* Expose area interactable to window.
* Add movable function
* update dockstring
2023-01-23 12:37:15 +01:00
lictex_
01bbda4544
check point count before tessellating bezier ( #2506 )
2023-01-23 12:20:05 +01:00
Ales Tsurko
f87c6cbd7c
Derive Hash for KeyboardShortcut and Modifiers ( #2563 )
2023-01-23 10:06:54 +01:00
RadonCoding
ce5472633d
Fix close button not working ( #2533 )
...
* Fix close button not working
By adding the close button after the title bar drag listener the close button will sense clicks.
* Update main.rs
2023-01-23 09:55:57 +01:00
Robert Walter
0ad8aea811
Fix: button_padding
when using image+text buttons ( #2510 )
...
* feat(image-button-margin): implement image button margin
- add `image_margin` field on `Button` widget
- implement setter method called `image_margin` for `Button` widget
- use margin from `image_margin` field of `Button` widget in `Widget`
trait functions
* feat(image-button-margin): update changelog
* feat(image-button-margin): implement `map_or` clippy fix
* feat(image-button-margin): remove margin field & fix button-padding instead
* feat(image-button-margin): fix CI errors
* feat(image-button-margin): update changelog to include fix
* feat(image-button-margin): re-add changes after creating screenshots for PR
2023-01-23 09:23:57 +01:00
Fangdun Tsai
53b1d0e5e9
Add menu with an image button ( #2488 )
2023-01-23 08:22:43 +01:00
apoorv569
0eabd894bd
Fix typo in cargo run command. ( #2582 )
...
I think someone by mistake wrote `cargo run -p hello_world` instead of `cargo run -p keyboard_events`.
2023-01-17 10:58:38 +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
Andreas Reich
60b4f5e3fe
changelog & doc fix for #2539 (Window::default_open)
2023-01-07 20:51:01 +01:00
joffreybesos
f7ed135192
window starting collapsed state ( #2539 )
2023-01-07 20:48:49 +01:00
Kornel
e70204d726
Point to caller's location when using log_or_panic ( #2552 )
2023-01-07 20:27: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
charburgx
d2c7793370
export LayerId
2022-12-19 21:52:19 -06:00
lucasmerlin
80ea12877e
Add egui_skia integration to readme ( #2483 )
...
* Add egui_skia integration to readme
* sort
Co-authored-by: Emil Ernerfeldt <emil.ernerfeldt@gmail.com>
2022-12-19 12:35:42 +01:00
charburgx
5473c0f8a0
oops i broke the public api
2022-12-19 04:56:28 -06:00
charburgx
c29b80d41e
docs
2022-12-19 04:46:44 -06:00
charburgx
57f65b7be6
LayerId compat
2022-12-19 04:44:24 -06:00
Emil Ernerfeldt
99af63fad2
Add Plot::clamp_grid
( #2480 )
...
* Add Plot::clamp_grid
* Update changelog
2022-12-19 11:39:22 +01:00
charburgx
45336eaf62
remove unneeded use
statements
2022-12-19 04:31:30 -06:00
Emil Ernerfeldt
e4e1638fc0
Fix newly introduced rendering bug for thin rectangles
2022-12-19 11:31:27 +01:00
charburgx
3c2e669fe1
docs
2022-12-19 04:27:52 -06:00
charburgx
191cc70362
syntax
2022-12-19 04:12:06 -06:00
charburgx
db46385073
Merge branch 'master' into zlayer
2022-12-19 04:07:51 -06:00
charburgx
099e41bf3f
add example
2022-12-19 03:58:38 -06:00
Sven Niederberger
7e9c7dac41
Improve plot grid appearance ( #2412 )
...
* improve plot grid appearance
* update changelog
* Update crates/egui/src/widgets/plot/mod.rs
Co-authored-by: Emil Ernerfeldt <emil.ernerfeldt@gmail.com>
* address review comments
* make lines a bit weaker
* move changelog entry
Co-authored-by: Emil Ernerfeldt <emil.ernerfeldt@gmail.com>
2022-12-19 10:57:30 +01:00
charburgx
d0307417e1
implement for interact
2022-12-19 03:57:03 -06:00
Ivan
f9728b88db
Combobox .wrap(true) width usage ( #2472 )
...
* Combobox .wrap(true) width fix
.wrap(true) does note use all the available width
this fix does not change the original .wrap(false) behaviours
* Code comment convention
Co-authored-by: IVANMK-7 <68190772+IVANMK-7@users.noreply.github.com>
2022-12-19 10:55:39 +01:00
francesco-cattoglio
2c9b130423
Add Memory::any_popup_open()
( #2464 )
...
* Added the "any_popup_open()" function
* Updated CHANGELOG.md
* add PR link to changelog
Co-authored-by: Emil Ernerfeldt <emil.ernerfeldt@gmail.com>
2022-12-19 10:55:27 +01:00
Emil Ernerfeldt
6554fbb151
epaint: Improve rendering of very thin rectangles
2022-12-19 10:33:03 +01:00
charburgx
26c3fa22cb
switch to tuple in PaintList
2022-12-19 00:46:36 -06:00
charburgx
7894cd4dfd
zorder/zlayer utilities
2022-12-17 20:18:03 -06:00
charburgx
4560618d43
implement for painter
2022-12-17 18:27:10 -06:00
charburgx
1e770ae3bd
rename LayerId to AreaLayerId
2022-12-17 12:20:18 -06: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