215db42
Ensure key window is a GPUIWindow before returning its id
Antonio Scandurra
created
2320205
Update theme selector matches when search query changes
Antonio Scandurra
created
4c7eaae
Use `Flexible` in file finder and theme switcher instead of `Expanded`
Antonio Scandurra
created
776f7dd
Add a new `Hooks` element to invoke a callback before layout
Click to expand commit body
This is useful to cap the width of sidebars when dragging the
resize handles beyond the maximum bounds of the sidebar.
Antonio Scandurra
created
a0dd41c
Add a `Flexible` element that works like in Flutter
Antonio Scandurra
created
ec36d81
Round corners in the chat panel's input editor
Antonio Scandurra
created
522bef2
Add placeholder text as a feature of Editor, use it in chat panel
Max Brunsfeld
created
1c43121
In theme, add an InputEditorSyle for styling small editors
Click to expand commit body
Co-Authored-By: Antonio Scandurra <me@as-cii.com>
Max Brunsfeld
and
Antonio Scandurra
created
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
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
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>