Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.
gpui: Add cursor style methods of nesw nwse resize (#21801)
Minqi Panadc66473e784
diff --git a/crates/gpui_macros/src/styles.rs b/crates/gpui_macros/src/styles.rsindex f261e3643c1..b6f8806c059 100644--- a/crates/gpui_macros/src/styles.rs+++ b/crates/gpui_macros/src/styles.rs@@ -271,6 +271,20 @@ pub fn cursor_style_methods(input: TokenStream) -> TokenStream {self}+ /// Sets cursor style when hovering over an element to `nesw-resize`.+ /// [Docs](https://tailwindcss.com/docs/cursor)+ #visibility fn cursor_nesw_resize(mut self) -> Self {+ self.style().mouse_cursor = Some(gpui::CursorStyle::ResizeUpRightDownLeft);+ self+ }++ /// Sets cursor style when hovering over an element to `nwse-resize`.+ /// [Docs](https://tailwindcss.com/docs/cursor)+ #visibility fn cursor_nwse_resize(mut self) -> Self {+ self.style().mouse_cursor = Some(gpui::CursorStyle::ResizeUpLeftDownRight);+ self+ }+/// Sets cursor style when hovering over an element to `col-resize`./// [Docs](https://tailwindcss.com/docs/cursor)#visibility fn cursor_col_resize(mut self) -> Self {