Emil Ernerfeldt
778bcc1ef7
Style tweaks ( #450 )
...
* Tweak style
More compact, less round, less noisy
* Button text is now same size as body text
* The rounder corners are now less rounded
* Collapsing headers no longer have a frame around them
* Combo-boxes looks better when opened
* Slightly more muted colors
* Remove extra line spacing after `\n` (i.e. between paragraphs)
* Thinner scrollbars
* Tweak light mode
* Tweak shadows
* Fix broken doc link
* Add style tweak to CHANGELOG
2021-06-12 15:53:56 +02:00
Emil Ernerfeldt
e6fe6a6f6a
Fix occasional jittery vertical positioning of glyphs
2021-05-28 19:51:10 +02:00
Emil Ernerfeldt
085233f907
Improve various documentation
2021-05-20 22:12:17 +02:00
Emil Ernerfeldt
6e5b52e3bc
Add features extra_asserts and extra_debug_asserts for more asserts
...
This replaces all debug_asserts with these opt-in asserts
Related: https://github.com/emilk/egui/issues/395
2021-05-17 22:38:39 +02:00
Emil Ernerfeldt
9c475204da
Fix uneven text kerning for non-integral dpi scales
...
Closes https://github.com/emilk/egui/issues/382
2021-05-12 19:41:45 +02:00
Emil Ernerfeldt
66122e4c9a
Decrease indentation with shift-tab
2021-05-02 20:09:11 +02:00
Emil Ernerfeldt
bf8ce774cc
Don't draw bidi control characters
...
Closes https://github.com/emilk/egui/issues/336
2021-05-02 19:50:06 +02:00
Emil Ernerfeldt
7da9928548
Clean up new code editor code
2021-05-02 19:28:02 +02:00
Cristian Dinu
35c7b09285
Tab identation for multiline text edit ( #246 )
...
Lock focus on multiline text edit, and insert tabs on tab char
Co-authored-by: Emil Ernerfeldt <emil.ernerfeldt@gmail.com>
2021-05-02 18:56:28 +02:00
Emil Ernerfeldt
d848b2a664
Add TextEdit::password to hide input characters
2021-04-02 09:58:55 +02:00
Emil Ernerfeldt
0802a9d9c0
Optimize: get glyph uv rects during layouts instead of in tesselation
...
This allows them to be cached, saving around 20% total CPU.
It also makes the code more nicely structured
2021-03-30 21:07:19 +02:00
Emil Ernerfeldt
d4e5133da2
refactor fonts: put TextStyle in Galley instead of in Shape::Text
2021-03-29 21:24:09 +02:00
Emil Ernerfeldt
ade41403b5
refactor fonts: do all text layout via the Fonts struct
2021-03-29 21:12:11 +02:00
Emil Ernerfeldt
46425f1e38
Optimize: add #[inline(always)] to various low-level things
...
saves up to 20% (text tesselation), and at least 5% overall
2021-03-28 23:16:19 +02:00
Emil Ernerfeldt
cbe6faa83b
Render tab character (\t) as four spaces
2021-03-23 20:06:52 +01:00
Emil Ernerfeldt
1c415bd8fe
Add benchmark for text layout and tesselation
2021-02-08 22:53:31 +01:00
Emil Ernerfeldt
8189a78284
Improve text wrapping related to first line indentation and logograms
2021-02-06 15:19:04 +01:00
Emil Ernerfeldt
91ce18d62f
Widgets will now always line break at \n
characters
2021-02-06 14:50:03 +01:00
Emil Ernerfeldt
7336df53b7
Tweak line spacing for new paragraphs
2021-01-31 16:42:54 +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
96fb0771a2
Fix text layout bug: empty text would lack first row indentation
2021-01-27 20:17:16 +01:00
n2
449192e5fb
Text wrap correctly on Chinese chraracter ( #104 )
...
* Text wrap correctly on Chinese chrarcter
* Text wrap correctly on Chinese chraracter, checked by a stand-alone function
2021-01-12 10:15:51 +01:00
Emil Ernerfeldt
26d576f510
Break out mod paint into new crate epaint
2021-01-10 15:42:46 +01:00