f0775ae
Rename `Hooks` to `Hook`
Click to expand commit body
Co-Authored-By: Nathan Sobo <nathan@zed.dev>
Antonio Scandurra and Nathan Sobo created
f0775ae
Rename `Hooks` to `Hook`
Co-Authored-By: Nathan Sobo <nathan@zed.dev>
Antonio Scandurra and Nathan Sobo created
2f0f6e2
Honor max constraint in `Flex` even if children overflow
Co-Authored-By: Nathan Sobo <nathan@zed.dev>
Antonio Scandurra and Nathan Sobo created
0ae70b6
Use `on_after_layout` to cap the rendered sidebar item's width
Antonio Scandurra created
1b8ea08
Exclude selections from editor splits in Editor::active_selection_sets
Antonio Scandurra created
bd13584
Clone `Editor::build_style` on split
Antonio Scandurra created
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
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
Co-Authored-By: Antonio Scandurra <me@as-cii.com>
Max Brunsfeld and Antonio Scandurra created
f59e02c
Use macOS API to retrieve the local timezone
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
Co-Authored-By: Max Brunsfeld <max@zed.dev>
Antonio Scandurra and Max Brunsfeld created
6fec9e1
Include sanitized message in `SendChannelMessageResponse`
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
Co-Authored-By: Nathan Sobo <nathan@zed.dev>
Antonio Scandurra and Nathan Sobo created
26fe285
Always inherit parent layer's clip bounds
Co-Authored-By: Nathan Sobo <nathan@zed.dev>
Antonio Scandurra and Nathan Sobo created
a27a17b
Make scrolling up in chat panel smoother
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`
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`
Co-Authored-By: Nathan Sobo <nathan@zed.dev>
Antonio Scandurra and Nathan Sobo created
0490c60
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.
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
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
Co-Authored-By: Nathan Sobo <nathan@zed.dev>
Max Brunsfeld and Nathan Sobo created
848dd5f
Add refreshing field to LayoutContext
Co-Authored-By: Nathan Sobo <nathan@zed.dev>
Max Brunsfeld and Nathan Sobo created
894531d
Fix list's scrollwheel direction
Co-Authored-By: Nathan Sobo <nathan@zed.dev>
Max Brunsfeld and Nathan Sobo created
82d1fb8
Clean up List::layout
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
Co-Authored-By: Nathan Sobo <nathan@zed.dev>
Max Brunsfeld and Nathan Sobo created
bc38baf
Get randomized test passing
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
Co-Authored-By: Nathan Sobo <nathan@zed.dev>
Antonio Scandurra and Nathan Sobo created
20e18ac
WIP
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`
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
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
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
Co-Authored-By: Nathan Sobo <nathan@zed.dev>
Antonio Scandurra and Nathan Sobo created
8edb214
Pass a closure to provide styling to `Select`
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
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`
Co-Authored-By: Nathan Sobo <nathan@zed.dev>
Antonio Scandurra and Nathan Sobo created
917a80e
:art:
Co-Authored-By: Nathan Sobo <nathan@zed.dev>
Antonio Scandurra and Nathan Sobo created
87cd668
Replace foreground layers with stacking contexts
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