Piotr Osiewicz
c6d9bc5a16
ui: Add Backspace/Delete icons and use them for keybindings.
2024-01-02 16:41:56 +01:00
Nathan Sobo
47071605a1
Merge remote-tracking branch 'origin/main' into new-view-new-model-rename
2024-01-01 17:42:12 -07:00
Nathan Sobo
db1cf8f6e1
Rename build_view to new_view and build_model to new_model
...
The word "new" is shorter and blends in with `new` constructors that are common
in Rust. Been meaning to do this for a while.
2024-01-01 17:42:01 -07:00
Nathan Sobo
bcf0e3fb05
Merge branch 'pre-merge' into clean-up-doc-elements
2024-01-01 12:21:33 -07:00
Nathan Sobo
81b03d379e
Rearrange to hopefully make merging easier
2024-01-01 12:21:17 -07:00
Nathan Sobo
51d1d92d66
Attempt to return impl Element from render. 3 errors.
2024-01-01 14:23:02 +01:00
Nathan Sobo
83923fd6d5
Clean up Element API and start on docs
2023-12-31 08:33:40 -07:00
Kirill Bulatov
1c13c3a243
Use ghost_element_background for avatar background color
...
Also add a couple todo!()s on top of the comments
2023-12-30 01:10:48 +02:00
Piotr Osiewicz
e932f4cf47
Bump Rust to 1.75 ( #3815 )
...
**This PR also bumps wasmtime version from 0.38 to 2.0 as 0.38 does not
build with Rust 1.75**. I did not test the plugin runtime as (AFAIK) we
intend to deprecate it; also, wasmtime's most recent version is 16.0, so
it'd make sense to bump the version at some point anyways. I did not
bump the version to 16.0 straight away as that'd require code changes in
`plugin_runtime`.
Release Notes:
- N/A
2023-12-28 19:22:43 +01:00
Kirill Bulatov
e1d8e2001b
Properly color file labels in project panel ( #3794 )
...
Also fixes an error with mouse listeners placement in
https://github.com/zed-industries/zed/pull/3792
Release Notes:
- N/A
2023-12-23 02:01:55 +02:00
Marshall Bowers
3213a860a6
Use extra small label for tab descriptions ( #3797 )
...
This PR adjusts the size of the tab descriptions to use the extra small
label size.
This makes it easier to distinguish between the filename and the
description:
<img width="320" alt="Screenshot 2023-12-22 at 6 49 11 PM"
src="https://github.com/zed-industries/zed/assets/1486634/451d4cd0-666c-43c2-b5df-6d9cf91dacda ">
It's also more in line with how things look in Zed1.
Release Notes:
- N/A
2023-12-22 18:56:17 -05:00
Kirill Bulatov
9600337d81
Properly color file labels in project panel
2023-12-23 01:27:41 +02:00
Piotr Osiewicz
dc1ed3c39d
Titlebar project menu double click ( #3784 )
...
This addresses a bug where popover menus in the titlebar were rendered
only after a 2nd click. The first click was creating the View which the
second one then rendered.
In addition to this, `PopoverMenu::menu` function argument can now
return an `Option<View<T>>` instead of `View<T>` as the creation of the
menu can fail (as it might in case of git popover).
Release Notes:
- N/A
2023-12-22 17:18:12 +01:00
Antonio Scandurra
c1ad079f09
Fix dismissing context menu when clicking on an item dispatched action
2023-12-22 12:27:20 +01:00
Antonio Scandurra
3de72f8366
Fix context menu in tab bar
2023-12-22 10:23:27 +01:00
Marshall Bowers
71a222abcb
Use sparse spacing for ListItems in Pickers
2023-12-21 16:33:41 -05:00
Marshall Bowers
dc09dbc98c
Use a ListItem as the empty state for Pickers
2023-12-21 16:17:04 -05:00
Marshall Bowers
a773a3cb92
Increase horizontal padding for inset ListItems
2023-12-21 16:07:55 -05:00
Marshall Bowers
dabc98690c
Use small labels for title bar buttons ( #3763 )
...
This PR adjusts the sizing of the labels in the buttons in the title bar
to use the small label size.
This should bring them more in line with how things looked in Zed1.
Release Notes:
- N/A
2023-12-21 15:48:37 -05:00
Marshall Bowers
824b68788f
Improve chat panel styling ( #3758 )
...
This PR improves the chat panel styling, especially with regards to the
spacing.
Release Notes:
- N/A
2023-12-21 12:15:11 -05:00
Marshall Bowers
11807bb82d
Add large variant for buttons
2023-12-20 18:47:22 -05:00
Marshall Bowers
443b1dd345
Add ToggleButton component
2023-12-20 18:23:21 -05:00
Kirill Bulatov
331af82cb1
Rework context menu's custom element API to handle clicks properly
2023-12-20 18:23:09 +02:00
Kirill Bulatov
19d1568140
Lsp log selector fixes
2023-12-20 18:23:09 +02:00
Kirill Bulatov and Antonio Scandurra
fe40e3920b
Fix remaining z-index bugs
...
Co-Authored-By: Antonio Scandurra <antonio@zed.dev >
2023-12-20 18:23:09 +02:00
Kirill Bulatov
1474816a93
Syntax tree panel style fixes
2023-12-20 18:23:08 +02:00
Kirill Bulatov
6a90a76bf2
Use stock gpui2 ui components
2023-12-20 18:23:08 +02:00
Kirill Bulatov
acbb3f39f6
Better display items from different sources with different z-indices in the same place ( #3723 )
2023-12-20 00:01:37 +02:00
Kirill Bulatov and Antonio Scandurra
cf12d62fc5
Tidy up z-index handling
...
Co-Authored-By: Antonio Scandurra <antonio@zed.dev >
2023-12-19 23:50:42 +02:00
Marshall Bowers
097640e7c5
Fix typo in ButtonCommon doc comment ( #3722 )
...
This PR fixes a small typo in the doc comments for `ButtonCommon`.
Was waiting to roll this up into another PR, but it never ended up
happening.
Release Notes:
- N/A
2023-12-19 16:32:57 -05:00
Kirill Bulatov and Antonio Scandurra
8f1c5375ef
Fix more z-index and rendering issues
...
Co-Authored-By: Antonio Scandurra <antonio@zed.dev >
2023-12-19 23:30:17 +02:00
825a8f0927
Initial fix of the z-index
...
Co-Authored-By: Antonio Scandurra <antonio@zed.dev >
Co-Authored-By: Nathan Sobo <nathan@zed.dev >
2023-12-19 23:29:08 +02:00
Max Brunsfeld and Nathan
1c3698ae20
Implement channel modal
...
Co-authored-by: Nathan <nathan@zed.dev >
2023-12-19 12:02:35 -08:00
Nate Butler
a1085184a1
use to_string to return the format distance string from FormatDistance
2023-12-19 11:57:57 -05:00
Nate Butler
d8a8feb45c
Add FormatDistance struct, add hide_prefix option
2023-12-19 11:41:14 -05:00
Nate Butler
79653d2175
Rename format distance test names
2023-12-19 11:19:18 -05:00
Nate Butler
ae313ff830
Allow format_distance to take a DateTimeType
2023-12-19 11:16:59 -05:00
Nate Butler
30b01b9bc0
Update imports, tab height const
2023-12-19 11:03:08 -05:00
Nate Butler
286f654517
Update assistant header
2023-12-19 10:57:36 -05:00
Nate Butler
57efaa92cf
Style assistant header, update icons
2023-12-19 10:30:46 -05:00
Antonio Scandurra
afbc61a344
Prevent default when mousing down on a button that responds to clicks
...
This ensures that ancestors that track focus don't accidentally steal
it on mouse down, which was preventing the editor from deploying the
code actions menu.
2023-12-19 14:27:19 +01:00
Antonio Scandurra
02e53025f3
Track caller on h_stack and v_stack
2023-12-19 14:26:30 +01:00
Marshall Bowers
734bbfa66f
Use status colors for contact availability indicators ( #3704 )
...
This PR updates the availability indicators in the contact list to use
the status colors from the theme.
Release Notes:
- N/A
2023-12-18 16:56:44 -05:00
Marshall Bowers
9785481aba
Make Disclosure accept an ID ( #3701 )
...
This PR makes the `Disclosure` component accept an ID rather than using
a static ID for all disclosures.
Release Notes:
- N/A
2023-12-18 15:21:04 -05:00
Marshall Bowers
0aa690f915
Always show channel toggle when collapsed ( #3698 )
...
This PR makes the channel toggle disclosure always visible when a
channel tree is collapsed, as opposed to just being visible on hover.
This makes it possible to visually identify collapsed channel trees
without having to hover over each entry.
Release Notes:
- N/A
2023-12-18 13:27:47 -05:00
Nate Butler
eeaa1e5cf9
Add github icon
2023-12-18 12:56:57 -05:00
Nate Butler
d72cd3795a
Fix implementation of full_width and icon_position in button
2023-12-18 12:56:50 -05:00
Nate Butler
50a44dd8ba
Improve tooltip with keybinding styling
2023-12-15 11:07:17 -05:00
Nate Butler
62ea58618c
Merge branch 'main' into story-enhancements
2023-12-15 10:26:59 -05:00
Conrad Irwin
7e1d61d116
Merge branch 'main' into user-menu
2023-12-14 20:18:20 -07:00