Commit log

f59e02c Use macOS API to retrieve the local timezone

Click to expand commit body
The `time` crate currently doesn't have a reliable way to get that.
In the future, `NSSystemTimeZoneDidChangeNotification` could be
used to keep the cached timezone up-to-date.

Co-Authored-By: Max Brunsfeld <max@zed.dev>

Antonio Scandurra and Max Brunsfeld created

3d4ff43 Reset visible bounds when painting an `Overlay` element

Click to expand commit body
Co-Authored-By: Max Brunsfeld <max@zed.dev>

Antonio Scandurra and Max Brunsfeld created

6fec9e1 Include sanitized message in `SendChannelMessageResponse`

Click to expand commit body
Co-Authored-By: Nathan Sobo <nathan@zed.dev>
Co-Authored-By: Max Brunsfeld <max@zed.dev>

Antonio Scandurra , Nathan Sobo , and Max Brunsfeld created

2d5abee Fix calculation of visible glyph bounds

Click to expand commit body
Co-Authored-By: Nathan Sobo <nathan@zed.dev>

Antonio Scandurra and Nathan Sobo created

26fe285 Always inherit parent layer's clip bounds

Click to expand commit body
Co-Authored-By: Nathan Sobo <nathan@zed.dev>

Antonio Scandurra and Nathan Sobo created

a27a17b Make scrolling up in chat panel smoother

Click to expand commit body
This increases the threshold at which we start loading new messages
as well as the amount of messages we get back from the server every
time we fetch.

Also, we restructured the seed binary to use the methods in `Db` to
generate seed data and added random chat messages.

Co-Authored-By: Nathan Sobo <nathan@zed.dev>

Antonio Scandurra and Nathan Sobo created

6a071e8 Make `Line::paint` interface consistent with `Line::paint_wrapped`

Click to expand commit body
Co-Authored-By: Nathan Sobo <nathan@zed.dev>

Antonio Scandurra and Nathan Sobo created

bdc35f0 Paint only glyphs that intersect the visible bounds in `Text`

Click to expand commit body
Co-Authored-By: Nathan Sobo <nathan@zed.dev>

Antonio Scandurra and Nathan Sobo created

0490c60 Introduce a `visible_bounds` parameter to `Element::paint`

Click to expand commit body
We're not using this yet but this will be useful to avoid rendering
unnecessary portions of text.

Antonio Scandurra created

38dc023 Toggle sidebar items on mouse down instead of on click

Antonio Scandurra created

1d697df Implement channel switching

Antonio Scandurra created

836b6df Don't return channels that were released in `ChannelList::get_channel`

Antonio Scandurra created

4876e40 Reset rendered range when calling `ListState::reset`

Antonio Scandurra created

007d6f5 Add a with_style method to Editor

Max Brunsfeld created

6821c47 Improve styling of chat messages and channel select

Click to expand commit body
Co-Authored-By: Nathan Sobo <nathan@zed.dev>

Max Brunsfeld and Nathan Sobo created

985788b Allow uniform margins and paddings to be specified as single numbers

Click to expand commit body
Co-Authored-By: Nathan Sobo <nathan@zed.dev>

Max Brunsfeld and Nathan Sobo created

848dd5f Add refreshing field to LayoutContext

Click to expand commit body
Co-Authored-By: Nathan Sobo <nathan@zed.dev>

Max Brunsfeld and Nathan Sobo created

894531d Fix list's scrollwheel direction

Click to expand commit body
Co-Authored-By: Nathan Sobo <nathan@zed.dev>

Max Brunsfeld and Nathan Sobo created

82d1fb8 Clean up List::layout

Click to expand commit body
Co-Authored-By: Nathan Sobo <nathan@zed.dev>

Max Brunsfeld and Nathan Sobo created

bfdb0f3 Return correct scroll top from layout when list is not full

Click to expand commit body
Co-Authored-By: Nathan Sobo <nathan@zed.dev>

Max Brunsfeld and Nathan Sobo created

bc38baf Get randomized test passing

Click to expand commit body
Co-Authored-By: Nathan Sobo <nathan@zed.dev>
Co-Authored-By: Antonio Scandurra <me@as-cii.com>

Max Brunsfeld , Nathan Sobo , and Antonio Scandurra created

6e91289 Adjust the stored scroll top during layout if it exceeds scroll max

Click to expand commit body
Co-Authored-By: Nathan Sobo <nathan@zed.dev>

Antonio Scandurra and Nathan Sobo created

20e18ac WIP

Click to expand commit body
Co-Authored-By: Nathan Sobo <nathan@zed.dev>

Antonio Scandurra and Nathan Sobo created

c8d67f4 WIP

Antonio Scandurra created

c7a8972 Fix off-by-one error in `StateInner::visible_range`

Click to expand commit body
I even wonder if we should keep this function around, as it feels
like it can only be called at certain times (e.g. layout) and not
after a splice or a scroll where we may not have rendered the
elements we actually need.

Antonio Scandurra created

0a22dee Save last layout width in `List` to avoid unnecessary re-renders

Antonio Scandurra created

4777403 Start work on partial rendering for List element

Click to expand commit body
Co-Authored-By: Nathan Sobo <nathan@zed.dev>
Co-Authored-By: Antonio Scandurra <me@as-cii.com>

Max Brunsfeld , Nathan Sobo , and Antonio Scandurra created

2db49ce Maintain logical scroll top when splicing `List` elements

Click to expand commit body
Co-Authored-By: Nathan Sobo <nathan@zed.dev>

Antonio Scandurra and Nathan Sobo created

d410ff8 Express scroll position with an element index and an offset

Click to expand commit body
Co-Authored-By: Nathan Sobo <nathan@zed.dev>

Antonio Scandurra and Nathan Sobo created

8edb214 Pass a closure to provide styling to `Select`

Click to expand commit body
This lets us obtain a new style when refreshing the theme.

Co-Authored-By: Nathan Sobo <nathan@zed.dev>

Antonio Scandurra and Nathan Sobo created

73a8fda Get the channel select looking good

Click to expand commit body
Co-Authored-By: Nathan Sobo <nathan@zed.dev>

Max Brunsfeld and Nathan Sobo created

ff01b52 WIP: start on Select

Antonio Scandurra created

ef89cea Take &mut self in `View::render`

Click to expand commit body
Co-Authored-By: Nathan Sobo <nathan@zed.dev>

Antonio Scandurra and Nathan Sobo created

917a80e :art:

Click to expand commit body
Co-Authored-By: Nathan Sobo <nathan@zed.dev>

Antonio Scandurra and Nathan Sobo created

87cd668 Replace foreground layers with stacking contexts

Click to expand commit body
Co-Authored-By: Nathan Sobo <nathan@zed.dev>

Antonio Scandurra and Nathan Sobo created

171627b Add a new zero-sized `Overlay` element and paint it in the foreground

Antonio Scandurra created

2b39107 Introduce `Scene::push_foreground_layer`

Antonio Scandurra created

18d175a Don't allow empty chat messages

Max Brunsfeld created

a98d293 Trim whitespace from chat messages and limit their length

Click to expand commit body
Add a way for the server to respond to any request with an error

Max Brunsfeld created

b3d5f01 Drop the word 'recent' from get_channel_messages db method name

Max Brunsfeld created

fbc88d5 Get the light theme loading again

Max Brunsfeld created

936af9b Avoid double borrow panic when resizing windows

Click to expand commit body
Co-Authored-By: Nathan Sobo <nathan@zed.dev>

Max Brunsfeld and Nathan Sobo created

bc63fca Fetch older messages when scrolling up in the chat message list

Click to expand commit body
Co-Authored-By: Nathan Sobo <nathan@zed.dev>

Max Brunsfeld and Nathan Sobo created

5262dcd Don't change cursor on mouse move while mouse button is held down

Max Brunsfeld created

5e6e0c6 Allow styling the cursor in `MouseEventHandler`

Click to expand commit body
Co-Authored-By: Max Brunsfeld <max@zed.dev>
Co-Authored-By: Nathan Sobo <nathan@zed.dev>

Antonio Scandurra , Max Brunsfeld , and Nathan Sobo created

53dc08d Remove lock from element states

Click to expand commit body
Co-Authored-By: Nathan Sobo <nathan@zed.dev>

Antonio Scandurra and Nathan Sobo created

d5b7e2d Pass a MutableAppContext in `render`

Click to expand commit body
Co-Authored-By: Nathan Sobo <nathan@zed.dev>

Antonio Scandurra and Nathan Sobo created

a9963f1 Synthesize a mouse moved event also when the mouse is dragged

Antonio Scandurra created

2cd21d1 Ensure sidebar width never goes below 0

Antonio Scandurra created

30ce7f6 Allow styling sidebar's resize handle

Antonio Scandurra created