Emil Ernerfeldt
e49245fae5
Improve the anti-aliasing of filled paths with sharp corners
This comes at the cost of these corners sometimes becoming badly
extruded instead. The sharper the corner, the bigger the problem.
A proper fix will have to wait for later.
Part of https://github.com/emilk/egui/issues/1226
3 years ago
Emil Ernerfeldt
b8fbbf7d62
Fix anti-aliasing of filled paths with counter-clockwise winding order
Part of https://github.com/emilk/egui/issues/1226
3 years ago
Emil Ernerfeldt
10634fc344
Improve the Bézier demo: drag control points and simplify code
Follow-up to https://github.com/emilk/egui/pull/1178
3 years ago
Emil Ernerfeldt
3a5ec4733f
Fix bug when debug-painting clip rectangles
3 years ago
Emil Ernerfeldt
aa53522179
Slider event fixes ( #1270 )
* Slider: return drag_started,dragged,drag_released if value was dragged
Closes https://github.com/emilk/egui/issues/1269
* Fix: DragValue correctly reports gained_focus
* Make `Slider` report gained_focus,has_focus,lost_focus from DragValue
Closes https://github.com/emilk/egui/issues/1268
3 years ago
Emil Ernerfeldt
3ed68274b0
Make `Slider` report gained_focus,has_focus,lost_focus from DragValue
Closes https://github.com/emilk/egui/issues/1268
3 years ago
Emil Ernerfeldt
0d21405855
Fix: DragValue correctly reports gained_focus
3 years ago
Emil Ernerfeldt
989a6d202f
Slider: return drag_started,dragged,drag_released if value was dragged
Closes https://github.com/emilk/egui/issues/1269
3 years ago
Benedikt Terhechte
8e62b382fd
Add some macOS emacs keybindings ( #1243 )
Move cursor left: ^B
Move cursor right: ^F
Beginning of line: ^A
End of line: ^E
Line up: ^P
Line down: ^N
3 years ago
Tulio Leao
e746e3a58b
Light edits on README.md ( #1246 )
3 years ago
Urho Laukkarinen
6abdde0334
Add more source code links to demos ( #1260 )
3 years ago
Emil Ernerfeldt
3d754e3a16
Prevent ScrollArea:s from becoming tiny ( #1255 )
Closes https://github.com/emilk/egui/issues/1097
3 years ago
Emil Ernerfeldt
b5c8f034e7
Add web location info to egui_web/epi ( #1258 )
This adds all parts of the web "location" (URL) to frame.info().web_info, included a HashMap of the query parameters, percent-decoded and ready to go.
This lets you easily pass key-value pairs to your eframe web app.
3 years ago
Emil Ernerfeldt
4e316d32e5
Fix scroll_to with align
Broke in https://github.com/emilk/egui/pull/1252
3 years ago
Emil Ernerfeldt
4af3cae26d
Scroll so that text cursor remains visible ( #1252 )
Closes https://github.com/emilk/egui/issues/165
3 years ago
cat-state
c1569ed0d7
Add Ui.input_mut & InputState.ignore_key ( #1212 )
3 years ago
Friz64
c8c871fcd1
Add `move_to_top` and `top_most_layer` ( #1242 )
3 years ago
Sven Niederberger
8f8eb5d4a9
Customize Plot label and cursor texts ( #1235 )
Co-authored-by: Emil Ernerfeldt <emil.ernerfeldt@gmail.com>
3 years ago
BctfN0HUK7Yg
cfad28936d
Color picker now always pops up next to the button ( #1237 )
3 years ago
Juan Campa
635c65773d
Allow scroll into view without specifying an alignment ( #1247 )
* Allow scroll into view without specifying an alignment
* Handle case of UI being too big to fit in the scroll view
3 years ago
Emil Ernerfeldt
c1cd47e3a7
README: Add section to FAQ about how to work with async code
3 years ago
Emil Ernerfeldt
f92df7db56
README: Add screenshot to demonstrate the skin-ability of egui
3 years ago
Alexander
62504fface
Slider: Add step parameter ( #1225 )
Co-authored-by: Emil Ernerfeldt <emil.ernerfeldt@gmail.com>
3 years ago
Juan Campa
c4528beb72
Make non interactable layers not interact ( #1240 )
* Make non interactable layers not interact
* Make menus interactable
* Fix area interactable not being updated each frame
3 years ago
4JX
14e985a894
Expose `FontTweak` through `egui::FontTweak` ( #1244 )
3 years ago
Emil Ernerfeldt
69626296f1
Make v-align and scale of user fonts tweakable ( #1241 )
* Add ability to "tweak" the scale and y-offsets of individual fonts
* Change default font tweak
This help vertically center large text.
3 years ago
Emil Ernerfeldt
3f8ba3a542
Improve the contrast of the default light mode style ( #1238 )
Makes backgrounds brighter and foregrounds darker.
3 years ago
Emil Ernerfeldt
815598a842
.vscode/settings.json: insertFinalNewline and trimTrailingWhitespace
For when people make PR:s touching .toml, .md files
3 years ago
Yusuf Bera Ertan
1ebb5ccabf
Don't install console panic hook and tracing wasm subscriber in egui_web ( #1230 )
Do so in egui_demo_app instead
3 years ago
4JX
2f042ababd
Make `Margin` pub and move to style.rs ( #1236 )
3 years ago
Emil Ernerfeldt
b2323bd13e
Add VSCode settings with {"editor.formatOnSave": true}
Hopefully this will increase the number of PR:s with correct formatting.
3 years ago
Emil Ernerfeldt
4cede42748
Add ui.weak(text)
3 years ago
Emil Ernerfeldt
defc400c21
Add an example of how to display an SVG image in egui ( #1228 )
3 years ago
Erlend Walstad
2802e03526
Per-side margins with new struct Margin ( #1219 )
3 years ago
Emil Ernerfeldt
603ec82a5e
cargo deny: clarify MPL-2.0 license and use un-patched ureq again ( #1222 )
See https://github.com/algesten/ureq/issues/478#issuecomment-1031029647
3 years ago
4JX
c9098288f5
Fix a typo: tolerence -> tolerance ( #1214 )
3 years ago
Emil Ernerfeldt
5459ab29b7
Fix: allow calling set_pixels_per_point before first frame
Closes https://github.com/emilk/egui/issues/1153
3 years ago
Emil Ernerfeldt
55067f54ce
Demo app fix: respect native pixels_per_point on startup
3 years ago
Emil Ernerfeldt
cbc53fbe2e
eframe: Add `epi::NativeOptions::initial_window_pos`
3 years ago
Manuel Innerhofer
7d41551913
Fixed typos: wether -> whether ( #1210 )
Co-authored-by: mir <mir@wisdomtag.com>
3 years ago
Emil Ernerfeldt
9ed96155e9
Rename corner_radius to rounding
Also update changelogs and clean up other aspects of
https://github.com/emilk/egui/pull/1206
3 years ago
Emil Ernerfeldt
ace2ac00da
Update to tts 0.20.2 which resolves copy-left license issue
See https://github.com/ndarilek/tts-rs/pull/21
3 years ago
4JX
7e7b9e1919
Per-corner rounding of rectangles ( #1206 )
Co-authored-by: Emil Ernerfeldt <emil.ernerfeldt@gmail.com>
3 years ago
Emil Ernerfeldt
0fa4bb9c64
Clean up all Cargo.toml: put features higher, and document them better
3 years ago
Juan Campa
32a9b4abcc
Add on_hover_text_at_pointer ( #1179 )
3 years ago
Juan Campa
ea28485bdd
Remove prevent_default for mousedown events ( #1209 )
This fixes the issue of tabs not focusing when egui is used inside vscode
3 years ago
Emil Ernerfeldt
712d8c9a2b
Run cargo deny in CI ( #1205 )
* Run cargo deny in CI
* Use patched fork of ureq to avoid copy-left license
* Use patched fork of tts to avoid LGPL license
More:
* https://github.com/ndarilek/tts-rs/pull/21
* https://github.com/algesten/ureq/pull/479
3 years ago
Alan Race
3cd3cceefd
Add method to enable generation of a ComboBox with both id and label ( #1204 )
3 years ago
Emil Ernerfeldt
1b623fdd34
Update rfd 0.6 -> 0.7
3 years ago
Emil Ernerfeldt
47038c631e
Update image 0.23 -> 0.24
3 years ago