Commit graph

1995 commits

Author SHA1 Message Date
Urho Laukkarinen
6abdde0334
Add more source code links to demos (#1260) 2022-02-17 17:08:13 +01:00
Emil Ernerfeldt
3d754e3a16
Prevent ScrollArea:s from becoming tiny (#1255)
Closes https://github.com/emilk/egui/issues/1097
2022-02-17 17:08:05 +01:00
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.
2022-02-17 16:46:43 +01:00
Emil Ernerfeldt
4e316d32e5 Fix scroll_to with align
Broke in https://github.com/emilk/egui/pull/1252
2022-02-17 16:45:42 +01:00
Emil Ernerfeldt
4af3cae26d
Scroll so that text cursor remains visible (#1252)
Closes https://github.com/emilk/egui/issues/165
2022-02-16 21:34:47 +01:00
cat-state
c1569ed0d7
Add Ui.input_mut & InputState.ignore_key (#1212) 2022-02-15 17:14:24 +01:00
Friz64
c8c871fcd1
Add move_to_top and top_most_layer (#1242) 2022-02-15 17:13:08 +01:00
Sven Niederberger
8f8eb5d4a9
Customize Plot label and cursor texts (#1235)
Co-authored-by: Emil Ernerfeldt <emil.ernerfeldt@gmail.com>
2022-02-15 17:12:29 +01:00
BctfN0HUK7Yg
cfad28936d
Color picker now always pops up next to the button (#1237) 2022-02-15 16:55:43 +01:00
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
2022-02-15 16:52:29 +01:00
Emil Ernerfeldt
c1cd47e3a7 README: Add section to FAQ about how to work with async code 2022-02-13 23:04:08 +01:00
Emil Ernerfeldt
f92df7db56 README: Add screenshot to demonstrate the skin-ability of egui 2022-02-13 23:04:08 +01:00
Alexander
62504fface
Slider: Add step parameter (#1225)
Co-authored-by: Emil Ernerfeldt <emil.ernerfeldt@gmail.com>
2022-02-13 21:55:51 +01:00
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
2022-02-13 21:09:25 +01:00
4JX
14e985a894
Expose FontTweak through egui::FontTweak (#1244) 2022-02-13 10:10:39 +01:00
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.
2022-02-12 18:22:42 +01:00
Emil Ernerfeldt
3f8ba3a542
Improve the contrast of the default light mode style (#1238)
Makes backgrounds brighter and foregrounds darker.
2022-02-11 13:58:50 +01:00
Emil Ernerfeldt
815598a842 .vscode/settings.json: insertFinalNewline and trimTrailingWhitespace
For when people make PR:s touching .toml, .md files
2022-02-10 19:34:07 +01:00
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
2022-02-10 15:44:41 +01:00
4JX
2f042ababd
Make Margin pub and move to style.rs (#1236) 2022-02-10 15:26:57 +01:00
René Rössler
294eca5b7f Merge remote-tracking branch 'egui/master' into dynamic-grid 2022-02-10 09:19:38 +01:00
Emil Ernerfeldt
b2323bd13e Add VSCode settings with {"editor.formatOnSave": true}
Hopefully this will increase the number of PR:s with correct formatting.
2022-02-09 18:14:55 +01:00
René Rössler
671cbfe58e fix typo 2022-02-09 16:51:02 +01:00
René Rössler
738bb0c6fa add warning 2022-02-09 16:50:17 +01:00
René Rössler
e252a71598 fix example 2022-02-09 16:43:57 +01:00
René Rössler
5adb99cfc2 add doc example 2022-02-09 16:42:02 +01:00
René Rössler
5ccfa1117e return response for hover events on grid 2022-02-09 16:20:03 +01:00
René Rössler
35c8e97b75 change to Sense::hover 2022-02-09 16:11:17 +01:00
René Rössler
787b1ad8be document vertical/horizontal 2022-02-09 16:04:56 +01:00
René Rössler
dfab28fe6d document GridDirection 2022-02-09 16:03:57 +01:00
René Rössler
c55c8dfa1e rename size 2022-02-09 16:01:44 +01:00
René Rössler
63a70ab00d remove padding, use egui item spacing 2022-02-09 16:00:25 +01:00
Emil Ernerfeldt
4cede42748 Add ui.weak(text) 2022-02-09 15:08:01 +01:00
René Rössler
6261380180 add unit test and fix bug found with the unit test 2022-02-09 13:54:19 +01:00
René Rössler
a42006ef14 Merge branch 'dynamic-grid' of github.com:elwerene/egui into dynamic-grid 2022-02-09 13:32:58 +01:00
René Rössler
8ce59e703f shrink rect 2022-02-09 13:32:53 +01:00
René Rössler
cef3c743cf
switch to documentation comments
Co-authored-by: Emil Ernerfeldt <emil.ernerfeldt@gmail.com>
2022-02-09 13:27:53 +01:00
René Rössler
28a91fba1f rename add_size to add 2022-02-09 13:26:10 +01:00
René Rössler
8495242f21 newline 2022-02-09 13:23:02 +01:00
René Rössler
5de7ac0c60 use row_nr instead of odd 2022-02-09 13:22:09 +01:00
René Rössler
4920f48ab4 always assign self.odd 2022-02-09 13:17:09 +01:00
René Rössler
6194b5d5fb add LineDirection documentation 2022-02-09 13:14:19 +01:00
René Rössler
bbc3fabcab better documentation/naming of LineDirection 2022-02-09 13:09:10 +01:00
René Rössler
6db4b929eb content is wrapped 2022-02-09 13:03:02 +01:00
René Rössler
3c5d04a041 do not clip by default 2022-02-09 13:01:43 +01:00
René Rössler
f95755768e hide private functions 2022-02-09 13:00:09 +01:00
René Rössler
2eae720ee6 english 2022-02-09 12:59:10 +01:00
René Rössler
abe6daf880 add library level documentation 2022-02-09 12:58:38 +01:00
René Rössler
eeb79c0f88 correctly add egui lints and fix all warnings 2022-02-09 12:56:01 +01:00
René Rössler
8a78302bd0
add standard egui lints
Co-authored-by: Emil Ernerfeldt <emil.ernerfeldt@gmail.com>
2022-02-09 12:50:24 +01:00