Commit Graph
25009 Commits
Author SHA1 Message Date
Nathan SoboandMax Brunsfeld 42a0589321 Share a single pool of LineWrappers across all threads
Co-Authored-By: Max Brunsfeld <maxbrunsfeld@gmail.com>
2021-08-24 18:16:13 -06:00
Nathan SoboandMax Brunsfeld 2a3d0f02c0 Fix panic when scrolling non-overflowing lists
Co-Authored-By: Max Brunsfeld <maxbrunsfeld@gmail.com>
2021-08-24 17:51:37 -06:00
Nathan SoboandMax Brunsfeld 5b27c67e70 Apply theme to chat messages
Co-Authored-By: Max Brunsfeld <maxbrunsfeld@gmail.com>
2021-08-24 17:46:41 -06:00
Nathan SoboandMax Brunsfeld cce9c0fc33 💄
Co-Authored-By: Max Brunsfeld <maxbrunsfeld@gmail.com>
2021-08-24 17:46:41 -06:00
Nathan SoboandMax Brunsfeld e7f1754dc3 Group more elements under workspace theme struct
Co-Authored-By: Max Brunsfeld <maxbrunsfeld@gmail.com>
2021-08-24 17:38:26 -06:00
Nathan SoboandMax Brunsfeld 08aa629ea7 Break up theme module
Co-Authored-By: Max Brunsfeld <maxbrunsfeld@gmail.com>
2021-08-24 17:33:56 -06:00
Nathan SoboandMax Brunsfeld b3fdef13d9 Avoid redundant notification after creating the ChannelList when not authenticated
Co-Authored-By: Max Brunsfeld <maxbrunsfeld@gmail.com>
2021-08-24 17:18:40 -06:00
Nathan SoboandMax Brunsfeld 68b61a381e Fix off-by-1 in Channel::messages_in_range
Co-Authored-By: Max Brunsfeld <maxbrunsfeld@gmail.com>
2021-08-24 17:17:55 -06:00
Nathan Sobo c93314d8f8 Hit the local server when debugging 2021-08-24 17:11:40 -06:00
Nathan Sobo 30ef3db6d5 Default unstyled text to be red instead of transparent 2021-08-24 17:11:27 -06:00
Max BrunsfeldandNathan Sobo 98fdb247c5 Add initial unit test for channel list
Co-Authored-By: Nathan Sobo <nathan@zed.dev>
2021-08-24 13:12:02 -07:00
Max Brunsfeld e6d88bc5fc When loggin in, send user id instead of creating a new watch channel 2021-08-24 13:11:37 -07:00
Antonio Scandurra 19f010048e Init chat_panel 2021-08-24 17:54:25 +02:00
Nathan SoboandAntonio Scandurra 44331f36b9 WIP
Co-Authored-By: Antonio Scandurra <me@as-cii.com>
2021-08-24 09:29:14 -06:00
Nathan SoboandAntonio Scandurra 773a17009f Make RPC client's current user_id observable
Co-Authored-By: Antonio Scandurra <me@as-cii.com>
2021-08-24 08:37:32 -06:00
Nathan SoboandAntonio Scandurra 1b74d9a7e7 Add "Zed > Sign" In menu item
Co-Authored-By: Antonio Scandurra <me@as-cii.com>
2021-08-24 08:29:36 -06:00
Nathan SoboandAntonio Scandurra d86460655c Send messages on enter
Co-Authored-By: Antonio Scandurra <me@as-cii.com>
2021-08-24 08:15:46 -06:00
Nathan SoboandAntonio Scandurra 8f3e8dc4a3 Beautify error logging
Co-Authored-By: Antonio Scandurra <me@as-cii.com>
2021-08-24 08:15:24 -06:00
Antonio Scandurra 10086d7397 Allow editor to be created in auto-height mode 2021-08-24 14:17:15 +02:00
Antonio Scandurra 4b37b16791 Render chat messages in ChatPanel 2021-08-24 12:23:50 +02:00
Max Brunsfeld 9e5bbafe90 Start work on subscribing to model from ChatPanel 2021-08-23 17:21:06 -07:00
Max BrunsfeldandNathan Sobo 0d4872c04d Allow subscription/notification to be cancelled by dropping the returned Subscription
Co-Authored-By: Nathan Sobo <nathan@zed.dev>
2021-08-23 15:54:24 -07:00
Max Brunsfeld d253d1032c Get light theme loading successfully 2021-08-23 15:09:18 -07:00
Max BrunsfeldandNathan Sobo 0ec6a19819 Remove model and view specific observe/subscribe methods
Co-Authored-By: Nathan Sobo <nathan@zed.dev>
2021-08-23 15:07:50 -07:00
Max Brunsfeld 8192b67458 Add ChannelList to AppState 2021-08-23 15:03:45 -07:00
Max BrunsfeldandNathan Sobo 29372d66df Add generic subscribe and observe methods to contexts
Co-Authored-By: Nathan Sobo <nathan@zed.dev>
2021-08-23 15:03:12 -07:00
Max BrunsfeldandNathan Sobo c88eb959e9 Simplify state associated with observations
Co-Authored-By: Nathan Sobo <nathan@zed.dev>
2021-08-23 15:03:08 -07:00
Max BrunsfeldandNathan Sobo 4c7a958815 Fix scrolling in List element
Co-Authored-By: Nathan Sobo <nathan@zed.dev>
2021-08-23 11:02:30 -07:00
Antonio ScandurraandNathan Sobo a1e0cd6793 WIP: Render dummy chat messages to test List
Co-Authored-By: Nathan Sobo <nathan@zed.dev>
2021-08-23 17:29:46 +02:00
Antonio ScandurraandNathan Sobo ed5e5365bd Give up on entities being Send and Sync
Co-Authored-By: Nathan Sobo <nathan@zed.dev>
2021-08-23 17:04:32 +02:00
Antonio ScandurraandNathan Sobo 3152018647 Implement scrolling and painting for List
Co-Authored-By: Nathan Sobo <nathan@zed.dev>
2021-08-23 16:41:48 +02:00
Antonio ScandurraandNathan Sobo abce48e6a3 Perform a full layout of List when width changes
Co-Authored-By: Nathan Sobo <nathan@zed.dev>
2021-08-23 16:04:23 +02:00
Antonio ScandurraandNathan Sobo 7c24fd5a7f Implement and test splice for ListState
Co-Authored-By: Nathan Sobo <nathan@zed.dev>
2021-08-23 16:00:05 +02:00
Antonio ScandurraandNathan Sobo df55feb5cf Remove vestiges of after_layout
Co-Authored-By: Nathan Sobo <nathan@zed.dev>
2021-08-23 15:23:06 +02:00
Antonio ScandurraandNathan Sobo 0f3e5f0e75 WIP: Create infrastructure for testing element layout
Co-Authored-By: Nathan Sobo <nathan@zed.dev>
2021-08-23 15:20:23 +02:00
Antonio ScandurraandNathan Sobo 58cf940e2f Fix boxed cloning of AnyAction
Co-Authored-By: Nathan Sobo <nathan@zed.dev>
2021-08-23 14:45:13 +02:00
Antonio Scandurra 3b88ad4a9c Pass action instead of action argument to handlers 2021-08-23 12:00:31 +02:00
Nathan Sobo ad339f0743 Get project compiling with type-safe actions 2021-08-22 21:02:48 -06:00
Nathan Sobo 62be994750 WIP 2021-08-22 13:29:54 -06:00
Nathan Sobo bd121d7e9e WIP 2021-08-22 11:58:19 -06:00
Nathan Sobo d4b20491fb WIP: Start on List::layout
Perform layout on any elements that we haven't yet laid out.
2021-08-21 13:40:45 -06:00
Nathan Sobo 174ead146a Remove after_layout from Element trait
Now that layout takes a MutableAppContext we don't need an after_layout phase.
2021-08-20 16:40:45 -06:00
Nathan Sobo 2f5f0a4f96 WIP 2021-08-20 16:34:46 -06:00
Nathan Sobo 9f69d8ce2b WIP: Move sum_tree module into gpui so we can use it in List 2021-08-20 16:18:39 -06:00
Max Brunsfeld db07a5c3de Stub in a ChatPanel 2021-08-20 14:28:45 -07:00
Max BrunsfeldandNathan Sobo 31f2bd26d5 Add sidebars
Co-Authored-By: Nathan Sobo <nathan@zed.dev>
2021-08-20 13:51:52 -07:00
Max BrunsfeldandAntonio Scandurra a180016f1c Make titlebar_height available during render
Co-Authored-By: Antonio Scandurra <me@as-cii.com>
2021-08-20 10:45:42 -07:00
Max BrunsfeldandAntonio Scandurra 2f58c18ab4 Make the default window size non-zero
Co-Authored-By: Antonio Scandurra <me@as-cii.com>
2021-08-20 10:01:24 -07:00
Max Brunsfeld f054d6e93b Merge remote-tracking branch 'origin/sexy' into chat-theme-prep 2021-08-20 09:50:58 -07:00
489264509d Flatten theme styles by eliminating top-level ui key
Co-Authored-By: Max Brunsfeld <maxbrunsfeld@gmail.com>
Co-Authored-By: Antonio Scandurra <me@as-cii.com>
2021-08-20 10:44:34 -06:00