Commit graph

847 commits

Author SHA1 Message Date
Emil Ernerfeldt
8163f912d3 Bug fix: stop using AHasher for Id:s
AHasher does not produce same hashes efter e.g. restarting an app
2020-11-28 12:50:18 +01:00
Emil Ernerfeldt
ac03242ec3 cargo update 2020-11-28 12:50:18 +01:00
Emil Ernerfeldt
8e6c8ce50e Update ahash to 0.6 2020-11-28 11:05:55 +01:00
Emil Ernerfeldt
aec97c74b9 [egui] Enable a bunch of clippy warnings 2020-11-28 10:58:08 +01:00
Emil Ernerfeldt
8de74e4250 [egui_web] respect the native zoom/scale of the browser
Remove all complexity with own scale slider.

Closes https://github.com/emilk/egui/issues/53
2020-11-28 10:46:31 +01:00
Emil Ernerfeldt
b1b34de4ee [style] Tweak clip_rect_margin to allow frames around ScrollArea:s 2020-11-27 15:46:16 +01:00
Emil Ernerfeldt
201586d512 REVERT: clip frame contents to frame border
can't do that quite as simply as I tried to :'(
2020-11-27 15:42:24 +01:00
Emil Ernerfeldt
d8aeaa4b49 Clip frame contents to frame border 2020-11-27 15:33:14 +01:00
Emil Ernerfeldt
8c6ccd1f7c
Merge pull request #51 from cxong/patch-1
Fix demo anchor
2020-11-26 15:15:13 +01:00
Emil Ernerfeldt
8bb4368f97
Merge pull request #52 from phoglund/fix_desired_rows
Fix the accessor for desired rows.
2020-11-26 14:34:00 +01:00
Patrik Höglund
c7e199c8ac Fix the accessor for desired rows. 2020-11-26 13:52:06 +01:00
Cong
a2d0f88069
Fix demo anchor 2020-11-26 12:40:23 +11:00
Emil Ernerfeldt
aab1b351ab Fixed incorrect text wrapping width on radio buttons 2020-11-23 20:01:13 +01:00
Emil Ernerfeldt
56715a1dcd Improve ability to inspect why a widget is as wide as it is 2020-11-23 17:08:55 +01:00
Emil Ernerfeldt
633b19ee99 [egui_web] Repaint on finished fetch in example app 2020-11-20 20:35:16 +01:00
Emil Ernerfeldt
99a2a52510 Code cleanup 2020-11-20 20:32:38 +01:00
Emil Ernerfeldt
ebf204a9ae Tidy up TODO.md 2020-11-20 19:51:45 +01:00
Emil Ernerfeldt
0c9bdb8ae8 cargo update 2020-11-20 12:29:23 +01:00
Emil Ernerfeldt
15b0214dff clippy fixes 2020-11-20 12:29:23 +01:00
Emil Ernerfeldt
9a51041ae2
Merge pull request #49 from emilk/web-example-image
[example_web] show loading of an image
2020-11-18 22:37:31 +01:00
Emil Ernerfeldt
c6ce0b9e8c [example_web] show loading of an image
Required some redesign of `TextureAllocator` as well as
some improvements to the fetch API.
2020-11-18 22:16:01 +01:00
Emil Ernerfeldt
90cecace0c [egui_web] Fix for pressing tab and backspace in a text field
Fixes https://github.com/emilk/egui/issues/48
2020-11-18 19:16:13 +01:00
Emil Ernerfeldt
552104429d Remove accidentally commited test code 2020-11-18 19:02:29 +01:00
Emil Ernerfeldt
9c8a3a994f [example_web] Fix link to own source code 2020-11-18 01:20:35 +01:00
Emil Ernerfeldt
7249fc45d0
Merge pull request #47 from emilk/web-app-example
Demonstrate fetch
2020-11-18 01:11:59 +01:00
Emil Ernerfeldt
bafbe04fb3 Update example web app 2020-11-18 01:08:45 +01:00
Emil Ernerfeldt
86cfd0dcd3 egui_web: Repaint at least every seconds
Just in case the app needs it, e.g. because it has finished a download.
2020-11-18 01:07:32 +01:00
Emil Ernerfeldt
fad0029119 egui_web: Add simple fetch API and demostrate it in example_web 2020-11-18 00:43:58 +01:00
Emil Ernerfeldt
0cb3bb791b Add example_web app 2020-11-17 23:24:14 +01:00
Emil Ernerfeldt
7e9b5de250 Fix: id clash for TextEdit 2020-11-17 10:57:14 +01:00
Emil Ernerfeldt
0832ebbf1f
Merge pull request #46 from emilk/egui_web-copy-paste
egui_web: Implement copy, cut and paste
2020-11-15 21:23:33 +01:00
Emil Ernerfeldt
7651e2f15b egui_web: Implement copy, cut and paste 2020-11-15 21:20:38 +01:00
Emil Ernerfeldt
c57fba41ab
Text selection (#43)
* Refactor, clarify and improve text layout

* Introduce meticulous cursors for text galleys

* Rename "row" to "line"

We now have "paragraphs" separated by \n,
which are word-wrapped onto one or more rows.

* Fix some edge cases for the cursor movement

* Add modifier keys and implement moving cursors one word at a time

* Remove unused cursor_blink_hz

* Galley: Return Rect when asking for cursor position

* Implement text selection

* fix: text selection when mouse goes out of the TextEdit area

* Support Cmd+A ^W ^U ^K and shift-click

* Create `mod util`

* Implement undo for TextEdit

* Move focus between text fields with tab and shift-tab

* Update CHANGELOG.md
2020-11-15 20:12:26 +01:00
Emil Ernerfeldt
e2c3bd429f Update CHANGELOG.md 2020-11-15 18:14:41 +01:00
Emil Ernerfeldt
e7fd11f1aa Move focus between text fields with tab and shift-tab 2020-11-15 18:10:38 +01:00
Emil Ernerfeldt
b17e6b3260 Implement undo for TextEdit 2020-11-15 17:36:15 +01:00
Emil Ernerfeldt
83444af862 Create mod util 2020-11-15 16:20:51 +01:00
Emil Ernerfeldt
fe0d159324 Support Cmd+A ^W ^U ^K and shift-click 2020-11-15 14:21:21 +01:00
Emil Ernerfeldt
b920822b6b fix: text selection when mouse goes out of the TextEdit area 2020-11-15 11:48:41 +01:00
Emil Ernerfeldt
13666755e1 Implement text selection 2020-11-15 04:44:55 +01:00
Emil Ernerfeldt
96befb0736 Galley: Return Rect when asking for cursor position 2020-11-14 23:07:16 +01:00
Emil Ernerfeldt
220f48a159 Remove unused cursor_blink_hz 2020-11-14 22:38:55 +01:00
Emil Ernerfeldt
c4ed507d63 Add modifier keys and implement moving cursors one word at a time 2020-11-14 21:01:21 +01:00
Emil Ernerfeldt
7494026139 Fix some edge cases for the cursor movement 2020-11-14 18:21:06 +01:00
Emil Ernerfeldt
c84431e473 Rename "row" to "line"
We now have "paragraphs" separated by \n,
which are word-wrapped onto one or more rows.
2020-11-14 18:21:06 +01:00
Emil Ernerfeldt
9ab00b8e50 Introduce meticulous cursors for text galleys 2020-11-14 18:21:06 +01:00
Emil Ernerfeldt
e1077c98b7 Refactor, clarify and improve text layout 2020-11-14 18:21:06 +01:00
Emil Ernerfeldt
03eb9151c4 Improve automatic Id generation to make Id clashes less likely 2020-11-14 18:20:56 +01:00
Emil Ernerfeldt
ee3f269d93 Fix numeric underflow when text editing 2020-11-13 12:51:52 +01:00
Emil Ernerfeldt
9057eaec7e Fix: you can again click slider values to edit them 2020-11-13 12:50:05 +01:00