Commit Graph
100 Commits
Author SHA1 Message Date
Marshall Bowers 549e78d7b3 Use SharedString for Inputs 2023-10-18 14:28:28 -04:00
Marshall Bowers 5a42ca6772 Merge branch 'gpui2' of github.com:zed-industries/zed into gpui2 2023-10-18 14:19:29 -04:00
Marshall Bowers 8dad3ad8ea Use SharedString for Lists 2023-10-18 14:19:26 -04:00
Marshall Bowers 856d23626f Use SharedString for Palette and PaletteItems 2023-10-18 14:03:13 -04:00
Marshall Bowers 24086191af Split Label and HighlightedLabel 2023-10-18 12:37:47 -04:00
Marshall Bowers f0b9e9a89d Use SharedString for Keybindings 2023-10-18 12:26:51 -04:00
Marshall Bowers 6e3393c93f Use SharedString for Buttons 2023-10-18 10:59:42 -04:00
Marshall Bowers aa41f97e38 Merge branch 'gpui2' of github.com:zed-industries/zed into gpui2 2023-10-18 10:58:54 -04:00
Marshall Bowers 2b53c67789 Use SharedString for Labels 2023-10-18 10:58:50 -04:00
Marshall Bowers 8321b9430e Wire up hover styles on Buttons 2023-10-18 10:53:42 -04:00
Marshall Bowers 7f69350e4d Fix typo in doc comment 2023-10-18 10:45:20 -04:00
Marshall Bowers 1a156c1060 Merge branch 'gpui2' of github.com:zed-industries/zed into gpui2 2023-10-18 10:44:43 -04:00
Marshall Bowers 5491398a64 Merge branch 'gpui2' into gpui2-ui 2023-10-18 10:43:15 -04:00
Marshall Bowers 79e0509bf9 Begin documenting flex styles 2023-10-17 17:32:30 -04:00
Marshall Bowers 218922d9f8 Document gap styles 2023-10-17 17:21:52 -04:00
Marshall Bowers 7a2b04a5d1 Document border width styles 2023-10-17 16:47:37 -04:00
Marshall Bowers dc32e56a9c Document rounded styles 2023-10-17 16:35:21 -04:00
Marshall Bowers 490cc7ded6 Add more placeholder doc strings 2023-10-17 16:24:36 -04:00
Marshall Bowers edc52e5b28 Tweak grammar 2023-10-17 16:16:38 -04:00
Marshall Bowers a1a1284696 Document top/right/bottom/left styles 2023-10-17 16:13:55 -04:00
Marshall Bowers 6f849e8f64 Document padding styles 2023-10-17 16:10:30 -04:00
Marshall Bowers 3e32504526 Document .size() 2023-10-17 16:07:52 -04:00
Marshall Bowers 6e84d3cce0 Document margin styles 2023-10-17 16:06:11 -04:00
Marshall Bowers 8c02de6c61 Document width and height styles 2023-10-17 16:06:07 -04:00
Marshall Bowers f09df31480 Emit doc strings for custom value setters 2023-10-17 16:01:36 -04:00
Marshall Bowers 6f30d6b4d0 Add placeholder doc strings for style prefixes 2023-10-17 15:53:54 -04:00
Marshall Bowers c8b452d411 Merge branch 'gpui2-ui' into gpui2 2023-10-16 16:54:40 -04:00
Marshall Bowers 708034d1d3 Call is_toggled as a method 2023-10-16 15:55:43 -04:00
Marshall Bowers 5e43c332f1 Merge branch 'gpui2-ui' into gpui2 2023-10-13 17:44:28 -04:00
Marshall Bowers 6891e86621 Add state to BufferSearch 2023-10-13 17:44:21 -04:00
Marshall Bowers 3c1ec2e9ca Add rudimentary UI for BufferSearch 2023-10-13 17:36:27 -04:00
Marshall Bowers 49caeeafce Merge branch 'gpui2-ui' into gpui2 2023-10-13 17:20:54 -04:00
Marshall Bowers 349ad7858b Add placeholder BufferSearch 2023-10-13 17:20:44 -04:00
Marshall Bowers c70f220db3 Wire up buffer search toggle for EditorPane 2023-10-13 17:14:09 -04:00
Marshall Bowers e477fa7a93 Wire up call controls in the TitleBar 2023-10-13 12:46:35 -04:00
Marshall Bowers f3679b37a2 Change TitleBar to a view 2023-10-13 12:21:51 -04:00
Marshall Bowers 44a30e269e Restore elevation docs 2023-10-12 18:18:44 -04:00
Marshall Bowers ef18aaa66f Merge branch 'main' into gpui2 2023-10-12 17:43:05 -04:00
Marshall Bowers 45f3a98359 Remove old ui and storybook crates (#3125)
This PR deletes the old `ui` and `storybook` crates in favor of their
newer variants that we'll be landing to `main` in the near future.

### Motivation

These crates are based off the old version of GPUI 2 (the `gpui2`
crate).

At this point we have since transitioned to the new version of GPUI 2
(the `gpui3` crate, currently still on the `gpui2` branch).

Having both copies around is confusing, so the old ones are going the
way of the dinosaurs.

Release Notes:

- N/A
2023-10-12 17:40:20 -04:00
Marshall Bowers 36bca4f0d6 Restore click events on Buttons using on_mouse_down 2023-10-12 16:56:48 -04:00
Marshall Bowers 6e5ad75c5c Use Workspace::view to construct the view 2023-10-12 16:52:32 -04:00
Marshall Bowers 79a61c28d7 Remove global WorkspaceState 2023-10-12 16:23:10 -04:00
Marshall Bowers e900ea20b7 Fix toggling of left panel 2023-10-12 16:12:09 -04:00
Marshall Bowers 8496d02fe1 Hold the story view in the StoryWrapper 2023-10-12 16:11:59 -04:00
Marshall Bowers fc94c4ea40 Render stories as Views 2023-10-12 16:06:54 -04:00
Marshall Bowers c90d976d7a Remove debug logging in Element derive macro 2023-10-12 15:52:42 -04:00
Marshall Bowers d320d3a8bf Remove hacky children 2023-10-12 15:50:09 -04:00
Marshall Bowers 24bab48043 Use new children approach for Toolbar 2023-10-12 15:47:26 -04:00
Marshall Bowers 30979caf25 Use new children approach for Panes and Toasts 2023-10-12 15:37:50 -04:00
Marshall Bowers 6dbe983461 Checkpoint: Back to a compiling state 2023-10-12 12:22:23 -04:00
Marshall Bowers 262f5886a4 Checkpoint 2023-10-12 12:18:35 -04:00
Marshall Bowers 207d843aee Fix issues in storybook2 2023-10-12 10:44:18 -04:00
Marshall Bowers a6b872bb0c Temporarily disable click handlers 2023-10-12 10:44:11 -04:00
Marshall Bowers 8cd112110e Reconcile with upstream changes 2023-10-12 10:40:47 -04:00
Marshall Bowers 9581279919 Fix some merge errors 2023-10-12 10:27:50 -04:00
Marshall Bowers 002458f4c8 Merge branch 'gpui2' into gpui2-ui 2023-10-12 10:27:43 -04:00
Marshall Bowers 5477b87774 Hook up assistant panel 2023-10-11 12:38:06 -04:00
Marshall Bowers 7478e63ea0 Simplify state interactions 2023-10-11 12:32:05 -04:00
Marshall Bowers 922d1462a8 Merge branch 'gpui2-ui' of github.com:zed-industries/zed into gpui2-ui 2023-10-11 12:24:34 -04:00
Marshall Bowers 8f410d5e2e Add support for switching between the project and collab panels 2023-10-11 12:24:33 -04:00
Marshall Bowers b6a9c58994 Push language selector handler down into StatusBar 2023-10-11 12:11:22 -04:00
Marshall Bowers 382693a199 Adjust icon color based on whether the various components are open 2023-10-11 12:09:08 -04:00
Marshall Bowers acf2c2c6a5 Add ability to toggle the terminal 2023-10-11 12:01:17 -04:00
Marshall Bowers a69f93d214 Wire up toggling of project and chat panels 2023-10-10 18:35:20 -04:00
Marshall Bowers 8e1638b773 Add working toggle for LanguageSelector 2023-10-10 18:21:44 -04:00
Marshall Bowers 95ef61bc45 Thread click handler through from workspace to language selector 2023-10-10 18:02:08 -04:00
Marshall Bowers c142676b20 Add click handlers to some of the buttons in the StatusBar 2023-10-10 17:26:53 -04:00
Marshall Bowers be843227a1 Add on_click to IconButton 2023-10-10 17:26:33 -04:00
Marshall Bowers 48d9b49ada Wire up click handlers on Buttons 2023-10-10 17:19:18 -04:00
Marshall Bowers f2ee61553f Colocate element stories with their elements 2023-10-10 16:00:04 -04:00
Marshall Bowers 30088afa89 Colocate component stories with their components 2023-10-10 15:52:58 -04:00
Marshall Bowers b1d88ced61 Add an example of colocating a story for a UI component with its definition 2023-10-10 15:30:16 -04:00
Marshall Bowers 5b7ca6435c Comment out overridden widths 2023-10-10 15:17:44 -04:00
Marshall Bowers a6ae6b0752 Merge branch 'gpui2' into gpui2-ui 2023-10-10 15:12:59 -04:00
Marshall Bowers 8f7f38536d Re-enable hover styles 2023-10-10 11:48:25 -04:00
Marshall Bowers 40d58c9bc3 Use Self::State in children_any and child_any 2023-10-10 11:26:18 -04:00
Marshall Bowers f76c9041bb Merge branch 'gpui2' into marshall/gpui2-playground 2023-10-10 11:24:45 -04:00
Marshall Bowers 08f4576aa6 Rename helper style 2023-10-09 18:17:01 -04:00
Marshall Bowers 7610028a89 Add a story showcasing z-index 2023-10-09 18:00:49 -04:00
Marshall Bowers 0d903f4d0d Clean up theme loading 2023-10-09 17:00:10 -04:00
Marshall Bowers 312f3d2ab9 Change how the default theme gets determined 2023-10-09 16:53:28 -04:00
Marshall Bowers def67295e5 Add theme loading 2023-10-09 16:37:20 -04:00
Marshall Bowers 613973d2b1 Add support for switching between the two hardcoded themes 2023-10-09 15:52:57 -04:00
Marshall Bowers 8b3a357949 Add note about CSS hack 2023-10-09 13:39:08 -04:00
Marshall Bowers f73708d725 Add a Toast in the bottom-right corner 2023-10-09 13:32:19 -04:00
Marshall Bowers d3c79c7078 Add div.z_index 2023-10-09 13:19:32 -04:00
Marshall Bowers 2654942b3c Use command modifier for example keybindings in CommandPalette 2023-10-09 12:51:57 -04:00
Marshall Bowers ed2c8cdc25 Add strikethrough support back to Label 2023-10-09 12:33:52 -04:00
Marshall Bowers 19434afe0a Add back negative margins, now that they're supported again 2023-10-09 12:33:30 -04:00
Marshall Bowers a7c4ae530d Update gpui3_macros::style_helpers! based on its gpui2 equivalent 2023-10-09 12:31:22 -04:00
Marshall Bowers 42e9800bde Add Details component 2023-10-09 11:55:27 -04:00
Marshall Bowers d956bd3743 Add RecentProjects component 2023-10-09 11:47:22 -04:00
Marshall Bowers 100a4731e2 Add ThemeSelector component 2023-10-09 11:44:08 -04:00
Marshall Bowers 000ae27aff Add LanguageSelector component 2023-10-09 11:39:42 -04:00
Marshall Bowers 06b0707aa9 Add MultiBuffer component 2023-10-09 11:36:09 -04:00
Marshall Bowers ac93449788 Remove unused Arc import 2023-10-09 11:32:10 -04:00
Marshall Bowers 02d32de044 Add Toast component 2023-10-09 11:31:56 -04:00
Marshall Bowers 333e3e4f01 Add ContextMenu component 2023-10-09 11:25:33 -04:00
Marshall Bowers f7721d0523 Add CommandPalette component 2023-10-09 11:20:10 -04:00
Marshall Bowers e5473fc51a Add Palette component 2023-10-09 11:15:50 -04:00