Emil Ernerfeldt
ca886ea998
Add ui.visuals() as short for ui.style().visuals
2021-02-03 00:20:39 +01:00
Emil Ernerfeldt
0f33bc7c34
Fix web blur ( #151 )
...
* [egui_web] Always use an even canvas size
Fixes https://github.com/emilk/egui/issues/103
* [egui_web] Position canvas at top of screen
This avoids jumpyness when resizing,
caused by rounding height to an even number
2021-02-01 20:44:39 +01:00
Emil Ernerfeldt
2cbea02c8b
refactor easy_mark_viewer.rs: break it up into logical parts
2021-02-01 17:00:42 +01:00
Emil Ernerfeldt
01fca2f31c
Add Ui::spacing() and Ui::spacing_mut() as shortcuts
2021-02-01 16:56:29 +01:00
Emil Ernerfeldt
c687671a9f
Publish new web demo
2021-01-31 16:52:36 +01:00
Emil Ernerfeldt
e529bd3ea4
[demo] Make syntect an optional dependency
...
Adds a whopping 1.4 MB to the WASM
2021-01-31 16:52:26 +01:00
Emil Ernerfeldt
7336df53b7
Tweak line spacing for new paragraphs
2021-01-31 16:42:54 +01:00
Emil Ernerfeldt
16d66bd22d
Replace markdown editor with new 'EasyMark' markup language
2021-01-31 16:42:32 +01:00
Emil Ernerfeldt
b647592a5a
Wrap text at dashes, punctuations or anywhere if necessary
...
Closes https://github.com/emilk/egui/issues/55
Supersedes https://github.com/emilk/egui/pull/104
2021-01-31 15:57:19 +01:00
Emil Ernerfeldt
17fdd3bb10
Label: draw underline and strikethrough on top of text
2021-01-31 00:42:00 +01:00
Emil Ernerfeldt
14e0963e50
Add Label::weak for fainter text
2021-01-30 18:49:21 +01:00
Emil Ernerfeldt
953a652c29
Add Hyperlink::from_label_and_url
2021-01-30 15:56:00 +01:00
Emil Ernerfeldt
c50190a7e8
Add fake italics (tilt text)
2021-01-30 15:55:40 +01:00
Emil Ernerfeldt
d249ed86ba
Add Label
methods for code, strong, strikethrough and underline
2021-01-30 15:51:19 +01:00
Emil Ernerfeldt
26d47eabf0
[style] Add code_bg_color
2021-01-30 15:48:17 +01:00
Emil Ernerfeldt
18e1ea1d63
Clarify which platforms egui runs on.
...
Closes https://github.com/emilk/egui/issues/145
2021-01-27 21:33:37 +01:00
Emil Ernerfeldt
5b7fc51932
Bug fix: moving windows slightly when dragging slider
2021-01-27 20:58:49 +01:00
Emil Ernerfeldt
703592ae0c
Bug fix: always set interact_pointer_pos on active Responses
2021-01-27 20:52:42 +01:00
aakamenov
e30e999ef4
Use any_click() instead of any_pressed() in check ( #144 )
2021-01-27 20:22:14 +01:00
Emil Ernerfeldt
96fb0771a2
Fix text layout bug: empty text would lack first row indentation
2021-01-27 20:17:16 +01:00
Emil Ernerfeldt
6029a438a2
Add a VERY experimental markdown viewer
2021-01-27 20:14:53 +01:00
Emil Ernerfeldt
7d8ebb4c8f
Add ui.code(text): like ui.monospace() but also adds a background
2021-01-26 22:05:14 +01:00
PauloMelo
eedb63bb3b
Add support for a HTTP body for POST ( #139 )
...
Closes https://github.com/emilk/egui/issues/137
Co-authored-by: Emil Ernerfeldt <emilernerfeldt@gmail.com>
2021-01-26 21:32:16 +01:00
Emil Ernerfeldt
1ac1a72fa8
Add issue templates
2021-01-26 19:02:16 +01:00
Emil Ernerfeldt
b8a4c9c8ce
Fix rare issue of accidentally hovering two things at once
...
Closes https://github.com/emilk/egui/issues/140
2021-01-26 18:56:30 +01:00
Emil Ernerfeldt
ba08a919ba
CI: also check --all-features ( #142 )
2021-01-26 18:45:22 +01:00
Emil Ernerfeldt
2a10747843
Mesh::split_to_u16 now returns a 16-bit indexed Mesh16
2021-01-25 22:06:06 +01:00
Emil Ernerfeldt
b493bc6efc
Wrap tesselated output in struct ClippedMesh(Rect, Mesh)
2021-01-25 21:43:17 +01:00
Emil Ernerfeldt
75fa77e040
Rename Triangles to Mesh
2021-01-25 21:23:24 +01:00
Emil Ernerfeldt
38ca36724a
[emath] Pos2: add conversions to/from (f32, f32) and [f32; 2]
...
Useful for places where we have `impl Into<Pos2>` as an argument
2021-01-25 21:11:19 +01:00
Emil Ernerfeldt
63e4ff4382
[demo] Move layout demo to own window
2021-01-25 20:52:47 +01:00
Emil Ernerfeldt
749419c9fd
[demo] Improve scroll demo and move to own window
2021-01-25 20:52:31 +01:00
Emil Ernerfeldt
5e3a89bf00
[demo] Move slider demo to own window
2021-01-25 20:14:39 +01:00
Emil Ernerfeldt
6d57a24f35
Add Slider::clamp_to_range(bool)
2021-01-25 19:55:08 +01:00
Emil Ernerfeldt
2219e135fa
Rename DragValue::range to clamp_range and also clamp incoming values
2021-01-25 19:45:59 +01:00
Emil Ernerfeldt
247026149c
Multiple mouse button support ( #135 )
...
Add support for primary, secondary and middle mouse buttons. Also improve ability to click things in low FPS situations.
This introduces a lot of breaking changes:
Backends/integrations now pass mouse events via the even stream.
Response has an interface of mostly methods instead of public members.
input.mouse is now input.pointer and has new interface.
* Rename 'mouse' to 'pointer' everywhere (pointer = mouse or touch)
* Make Response::clicked and Response::double_clicked into methods
* Remove Response::active and add dragged() and interact_pointer_pos()
* Support multiple mouse buttons
* Make PointerState interface all methods
* Make most members of Response private
2021-01-25 18:50:19 +01:00
Paul Shen
18b9214575
Prefer overlapping row in galley cursor_from_pos ( #127 )
2021-01-24 15:05:59 +01:00
Emil Ernerfeldt
9f4c31c0e0
Add Frame::group for putting a frame around some widgets
...
Closes https://github.com/emilk/egui/issues/125
2021-01-20 23:26:46 +01:00
Emil Ernerfeldt
3bec7c4f68
add popup_below_widget to show a popup area below another widget
...
Closes https://github.com/emilk/egui/issues/122
2021-01-20 23:10:56 +01:00
Paul Shen
577aa2699f
kill velocity after overscroll ( #126 )
2021-01-20 22:25:52 +01:00
Emil Ernerfeldt
d77fd9e3dc
CI: install required libraries on linux
2021-01-20 17:28:15 +01:00
Emil Ernerfeldt
c476c7f1a2
Add note about required libraries on Linux
...
Closes https://github.com/emilk/egui/issues/121
2021-01-20 17:27:58 +01:00
Emil Ernerfeldt
e2217ff63a
[style] Fade out windows on close
2021-01-20 00:31:43 +01:00
Emil Ernerfeldt
29bb7c9f9d
egui_demo_lib 0.8.1: export ColorTest
2021-01-19 17:13:29 +01:00
Emil Ernerfeldt
90a0ce969b
Add link to bevy_egui integration
2021-01-17 22:11:12 +01:00
Emil Ernerfeldt
37a3fe7f76
Release 0.8.0 - Grid layout & new visual style
2021-01-17 15:28:52 +01:00
Emil Ernerfeldt
a229f581b9
cargo update
2021-01-17 15:01:25 +01:00
Emil Ernerfeldt
9814b25246
List default egui dependencies after badges
2021-01-17 14:54:24 +01:00
Emil Ernerfeldt
31b7eda51e
Rename Egui to egui
...
Also update iamges in README.md
2021-01-17 14:48:59 +01:00
Emil Ernerfeldt
9dba63fa3f
Skip persisting style for now (so everyone gets the new default style)
2021-01-17 14:19:47 +01:00