Commit Graph
18 Commits
Author SHA1 Message Date
Max BrunsfeldandNathan Sobo b8436c0333 Start work on underlined text
Co-Authored-By: Nathan Sobo <nathan@zed.dev>
2021-09-06 15:36:09 -07:00
Antonio ScandurraandNathan Sobo 57df5c0363 Make Line::paint interface consistent with Line::paint_wrapped
Co-Authored-By: Nathan Sobo <nathan@zed.dev>
2021-09-02 14:33:52 +02:00
Antonio Scandurra 8d023ffd7c Introduce a visible_bounds parameter to Element::paint
We're not using this yet but this will be useful to avoid rendering
unnecessary portions of text.
2021-09-02 11:42:23 +02:00
Antonio ScandurraandNathan Sobo a866a893f8 Take &mut self in View::render
Co-Authored-By: Nathan Sobo <nathan@zed.dev>
2021-08-30 17:51:26 +02:00
Antonio ScandurraandNathan Sobo c837b9b078 Remove lock from element states
Co-Authored-By: Nathan Sobo <nathan@zed.dev>
2021-08-27 18:04:21 +02:00
Nathan Sobo 174ead146a Remove after_layout from Element trait
Now that layout takes a MutableAppContext we don't need an after_layout phase.
2021-08-20 16:40:45 -06:00
Nathan Sobo 56996aaefa Start on custom titlebar 2021-08-05 11:48:35 -06:00
Max BrunsfeldandNathan Sobo 51d1664122 Use custom color wrapper type everywhere in gpui & zed
Co-Authored-By: Nathan Sobo <nathan@zed.dev>
2021-08-03 12:48:58 -07:00
Max BrunsfeldandNathan Sobo 5532f60e2f Add a theme picker
Co-Authored-By: Nathan Sobo <nathan@zed.dev>
2021-08-02 14:55:27 -07:00
Max Brunsfeld 5203f8af1c Rename context parameters to cx in gpui 2021-05-28 15:32:35 -07:00
Nathan Sobo 6a078c3281 Accept colors in styling runs passed to layout_str
Also move from the runs being expressed as ranges to the runs being expressed as a sequence of contiguous scalar lengths.
2021-05-21 14:10:38 -06:00
Nathan Sobo df223714f3 Pass the on_finish_launching callback to Platform::run 2021-04-09 21:33:17 -06:00
Max Brunsfeld 7f27ece707 Get app running and test passing after gpui App+Platform restructure 2021-04-09 16:56:32 -07:00
Nathan Sobo a2f3d0cfba Add ability to debug element trees as JSON 2021-04-07 21:54:14 -06:00
Max Brunsfeld fbc1294133 Silence warning in text example 2021-04-06 14:36:16 -07:00
Nathan Sobo 2107e726f4 Vertically center glyphs in Line::paint based on ascender/descender for line 2021-04-06 09:15:21 -06:00
Nathan Sobo 36e0d4d37b Render example text in example via Line::paint 2021-04-06 09:15:21 -06:00
Nathan Sobo 221bba6f61 WIP: Add example app to test text rendering 2021-04-06 09:15:21 -06:00