Nate Butler
bfb1f5ecf0
Continue refining theme, update tabs & tab bar
2023-11-01 01:41:33 -04:00
Marshall Bowers
36a73d657a
Remove old Theme
definition ( #3195 )
...
This PR removes the old `Theme` definition in favor of the new
`ThemeVariant`s.
The new `SyntaxStyles` have been reverted to the old `SyntaxTheme` that
operates by storing the syntax styles as a vector of
`gpui2::HighlightStyle`s.
This is necessary for the intended usage by `language2`, where we find
the longest key in the theme's syntax styles that matches the capture
name:
18431051d9/crates/language2/src/highlight_map.rs (L15-L41)
2023-10-31 23:05:50 -04:00
Marshall Bowers
18431051d9
Rework theme2
with new theme structure ( #3194 )
...
This PR reworks the theme definition in the `theme2` crate to be based
off of the new theme work that @iamnbutler has been working on.
We're still developing the new theme system, but it is complete enough
that we can now load the default theme and use it to theme the storybook
(albeit with some further refining of the color palette required).
---------
Co-authored-by: Nate Butler <iamnbutler@gmail.com>
Co-authored-by: Marshall Bowers <marshall@zed.dev>
2023-10-31 22:23:00 -04:00
Antonio Scandurra
7b6514b178
Simplify AnyView
...
Co-Authored-By: Nathan Sobo <nathan@zed.dev>
2023-10-31 16:16:30 +01:00
Max Brunsfeld
58446c2715
Merge branch 'zed2-render' into zed2
2023-10-30 15:37:00 -07:00
Max Brunsfeld
30dffbb409
Introduce a Render trait, make views implement it
...
Don't pass a render function separately from the view.
Co-authored-by: Nathan Sobo <nathan@zed.dev>
Co-authored-by: Mikayla <mikayla@zed.dev>
Co-authored-by: Antonio <as-cii@zed.dev>
2023-10-30 15:19:40 -07:00
Marshall Bowers
607813e646
Tweak style for color scale story
2023-10-30 17:45:37 -04:00
Marshall Bowers
a02d806715
Add a story showcasing the color scales
2023-10-30 17:31:15 -04:00
Marshall Bowers
ba789fc0c4
Remove old theme constructs
2023-10-30 14:47:44 -04:00
Antonio Scandurra
1a54ac0d69
Rename Handle to Model
2023-10-30 19:44:01 +01:00
Marshall Bowers
7b4e699d0e
Remove themed
wrapper
2023-10-30 14:28:25 -04:00
Conrad Irwin
c1904b493b
Fix cargo fmt
2023-10-27 10:44:57 +02:00
Nathan Sobo
a1c3826858
Add View::update which provides a ViewContext
2023-10-26 19:41:42 +02:00
Marshall Bowers
61694bba6a
Remove unneeded constructors for stories
2023-10-26 16:46:49 +02:00
Marshall Bowers
1887f3b594
Rename S
type to V
2023-10-26 15:54:43 +02:00
Marshall Bowers
88ef74ec8f
Checkpoint: Compiling after view type removal
2023-10-26 15:20:38 +02:00
Nathan Sobo
0285284ae1
Rename IntoAnyElement trait to Component
2023-10-26 12:46:52 +02:00
Nathan Sobo
8ecfea55cd
Replace derive Element with derive IntoAnyElement everywhere
2023-10-26 12:38:23 +02:00
Nathan Sobo
927278e20d
Remove IntoAnyElement bound from Element trait
2023-10-26 11:49:36 +02:00
Marshall Bowers
9fb9885931
Checkpoint: Compiling
2023-10-26 10:08:39 +02:00
Marshall Bowers
e67048ee7b
Load themes from settings and rework Settings
trait
2023-10-25 20:37:55 +02:00
Marshall Bowers
dd34bb273e
Load Theme
from theme2
into the storybook
2023-10-25 15:50:50 +02:00
Marshall Bowers
d6bd000aa8
Rename cx.global_default_mut
to cx.global_default
2023-10-24 17:58:14 +02:00
Marshall Bowers
4ca7ddfc42
Finish up ThemeRegistry
and remove AnyAssetSource
2023-10-24 17:47:41 +02:00
Marshall Bowers
9f8aaa4cdb
Add AnyAssetSource
2023-10-24 16:59:01 +02:00
Marshall Bowers
bb35583998
Merge branch 'gpui2' into zed2
2023-10-24 14:11:13 +02:00
Marshall Bowers
23ad0a2c58
Return a Result
from load_embedded_fonts
2023-10-24 13:31:01 +02:00
Marshall Bowers
785901c75e
Load embedded fonts
2023-10-24 12:32:30 +02:00
Nate Butler
cc445f7cef
Start scaffolding out the Copilot Modal UI
...
Co-Authored-By: Mikayla Maki <mikayla.c.maki@gmail.com>
2023-10-23 10:00:02 -04:00
Nathan Sobo
da8919002f
Fix runtime errors
2023-10-23 11:34:35 +02:00
Antonio Scandurra
a0b667a2ca
WIP
2023-10-22 19:56:25 +02:00
Antonio Scandurra
ce75be91e1
Checkpoint
2023-10-22 18:25:24 +02:00
Antonio Scandurra
b7d30fca2b
WIP
2023-10-21 17:52:47 +02:00
Antonio Scandurra
e4fe9538d7
Checkpoint
2023-10-21 16:01:47 +02:00
Marshall Bowers
080638216a
Wire up NotificationsPanel
story
2023-10-20 16:30:45 -04:00
Antonio Scandurra
825c352b6a
Checkpoint
2023-10-20 17:58:37 +02:00
Antonio Scandurra
1409fc0da3
Checkpoint
2023-10-20 17:31:47 +02:00
Antonio Scandurra
a3dcaf21cb
Checkpoint
2023-10-20 16:31:03 +02:00
Antonio Scandurra
47aa387b91
Checkpoint
2023-10-20 15:13:53 +02:00
Antonio Scandurra
6150df71b2
Checkpoint
2023-10-20 15:08:54 +02:00
Antonio Scandurra
847a1cb068
Checkpoint
2023-10-20 12:23:22 +02:00
Antonio Scandurra
c1f7c9bb87
Checkpoint
2023-10-20 12:12:06 +02:00
Antonio Scandurra
8a11053f1f
Checkpoint
2023-10-20 11:44:19 +02:00
Antonio Scandurra
68bc22f9cd
Checkpoint
2023-10-20 10:55:06 +02:00
Antonio Scandurra
e3d948f60b
Checkpoint
2023-10-19 23:56:43 +02:00
Antonio Scandurra
40c6f738b4
Checkpoint
2023-10-19 23:54:17 +02:00
Antonio Scandurra
296fc92721
Checkpoint
2023-10-19 23:47:32 +02:00
Antonio Scandurra
9e20ccc01a
Checkpoint
2023-10-19 19:51:05 +02:00
Antonio Scandurra
2b90b8d6b7
Checkpoint
2023-10-19 19:51:05 +02:00
Marshall Bowers
a1f7a97ff5
Pull the settings from the global state
2023-10-19 13:02:32 -04:00
Marshall Bowers
61e09ff532
Checkpoint: Thread WindowContext
through to user_settings
2023-10-19 12:58:17 -04:00
Marshall Bowers
b16d37953d
Use line_height
in z_index
stories
2023-10-19 12:06:05 -04:00
Nate Butler
3f076eeda6
Remove unused code from storybook 2
...
Co-Authored-By: Marshall Bowers <1486634+maxdeviant@users.noreply.github.com>
2023-10-18 16:27:34 -04:00
Nate Butler
a35d350cbd
Update storybook2 to run the workspace by default
...
Co-Authored-By: Marshall Bowers <1486634+maxdeviant@users.noreply.github.com>
2023-10-18 16:21:04 -04:00
Antonio Scandurra
159d798c34
Checkpoint
2023-10-18 20:13:19 +02:00
Antonio Scandurra
296a2b8e5d
Rename fill
to bg
2023-10-18 09:39:23 +02:00
Antonio Scandurra
597a9f9548
Use text color to paint SVGs
2023-10-18 09:39:20 +02:00
Antonio Scandurra
4db0350f06
Checkpoint
2023-10-17 22:16:48 +02:00
Antonio Scandurra
b040ae8d4d
Checkpoint
2023-10-17 08:52:26 +02:00
Marshall Bowers
c70f220db3
Wire up buffer search toggle for EditorPane
2023-10-13 17:14:09 -04:00
Marshall Bowers
f3679b37a2
Change TitleBar
to a view
2023-10-13 12:21:51 -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 View
s
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
Nathan Sobo
ce8533f83b
Checkpoint
2023-10-12 13:27:46 -06:00
Antonio Scandurra
ca35573ad5
WIP
2023-10-12 19:30:00 +02: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
8cd112110e
Reconcile with upstream changes
2023-10-12 10:40:47 -04:00
Marshall Bowers
002458f4c8
Merge branch 'gpui2' into gpui2-ui
2023-10-12 10:27:43 -04:00
Antonio Scandurra
80c0a6ead3
Checkpoint
2023-10-12 13:25:49 +02:00
Nathan Sobo
3dad0d9811
Add group_active
2023-10-11 21:48:21 -06:00
Nathan Sobo
d920f7edc1
Add group hovers
2023-10-11 21:34:08 -06:00
Nathan Sobo
f37b83a0ea
WIP
2023-10-11 17:18:39 -06:00
Nathan Sobo
93c233b1cf
Checkpoint
2023-10-11 13:22:40 -06:00
Nathan Sobo
47b64a5074
Checkpoint
2023-10-11 12:51:56 -06:00
Nathan Sobo
e2da2b232e
Checkpoint
2023-10-11 11:40:42 -06:00
Nathan Sobo
f1cc62c21f
WIP
2023-10-10 22:49:47 -06:00
Nathan Sobo
f53b63eaf6
Checkpoint
2023-10-10 22:14:47 -06: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
8f7f38536d
Re-enable hover styles
2023-10-10 11:48:25 -04:00
Marshall Bowers
f76c9041bb
Merge branch 'gpui2' into marshall/gpui2-playground
2023-10-10 11:24:45 -04:00
Antonio Scandurra
96fbf9fd06
Checkpoint
2023-10-10 16:47:09 +02:00
Nathan Sobo
8074e6b46a
Add basic mouse event handling
2023-10-09 21:17:56 -06: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
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
Marshall Bowers
dc2ddfb42c
Add Keybinding
component
2023-10-09 11:09:44 -04:00
Marshall Bowers
4eeed14d34
Add CollabPanel
component
2023-10-09 11:04:53 -04:00
Marshall Bowers
eb642551ac
Add TitleBar
component and wire up to the workspace
2023-10-07 12:10:39 -04:00
Marshall Bowers
f33d41af63
Add Facepile
and PlayerStack
components
2023-10-07 12:02:42 -04:00
Marshall Bowers
5e7954f152
Add TrafficLights
component
2023-10-07 11:55:10 -04:00
Marshall Bowers
9e79ad5a62
Add ChatPanel
component
2023-10-07 11:50:41 -04:00
Marshall Bowers
b8b8fe6120
Add Button
component
2023-10-07 11:41:48 -04:00
Marshall Bowers
63e834ce73
Add Toolbar
component
2023-10-07 11:21:09 -04:00
Marshall Bowers
b118e60160
Add Breadcrumb
component
2023-10-07 11:18:06 -04:00
Marshall Bowers
00e8531898
Add TabBar
component
2023-10-07 11:13:54 -04:00
Marshall Bowers
7c8d662315
Increase storybook window size
2023-10-07 11:09:21 -04:00
Marshall Bowers
f795177ab6
Fix icon paths
2023-10-07 10:51:19 -04:00
Marshall Bowers
82577b4acc
Add Terminal
component
2023-10-06 18:50:49 -04:00
Marshall Bowers
8db7f7ed37
Add Tab
component
2023-10-06 18:43:25 -04:00
Marshall Bowers
d5ffd4a1fb
Add Pane
and PaneGroup
components
2023-10-06 18:37:28 -04:00
Marshall Bowers
28d504d7d3
Add WorkspaceElement
component
2023-10-06 18:19:12 -04:00
Marshall Bowers
56c2ac048d
Add ProjectPanel
component
2023-10-06 17:58:23 -04:00
Marshall Bowers
208d5df106
Add Buffer
component
2023-10-06 17:47:10 -04:00
Marshall Bowers
d09f53c380
Add AssistantPanel
component
2023-10-06 17:24:52 -04:00
Marshall Bowers
696aee3891
Add IconButton
component
2023-10-06 17:16:00 -04:00
Marshall Bowers
bcad2f4e9e
Move UI out of storybook2
and into ui2
2023-10-06 17:07:59 -04:00
Marshall Bowers
1cf5cdbeca
Add ui2
crate
2023-10-06 16:52:05 -04:00
Marshall Bowers
5ee6814947
Fix compile errors
2023-10-06 13:54:37 -04:00
Marshall Bowers
7fd35d68bb
Merge branch 'gpui2' into marshall/gpui2-playground
2023-10-06 13:45:11 -04:00
Antonio Scandurra
ca6eb5511c
Checkpoint: underlines
2023-10-06 15:34:37 +02:00
Nathan Sobo
65c7765c07
Checkpoint
2023-10-05 21:02:26 -06:00
Nathan Sobo
6f7c305308
Checkpoint
2023-10-05 14:42:29 -06:00
Antonio Scandurra
fe3ef08f39
Checkpoint!
2023-10-05 09:34:54 -06:00
Antonio Scandurra
2e056e9b0b
WIP
2023-10-05 15:30:47 +02:00
Nathan Sobo
699a5d2944
Checkpoint
2023-10-04 20:35:24 -06:00
Marshall Bowers
45d08c70f0
Add .when
to Element
s
2023-10-04 18:33:28 -04:00
Marshall Bowers
77feecc623
Add List
component
2023-10-04 18:25:43 -04:00
Marshall Bowers
339ba7986f
Add Avatar
element
2023-10-04 15:34:14 -04:00
Marshall Bowers
249e6fe637
Add Icon
element
2023-10-04 13:46:45 -04:00
Marshall Bowers
e84b8747a1
Add storybook CLI
2023-10-04 13:33:28 -04:00
Marshall Bowers
0323a60d85
Remove unneeded theme
function
...
This also fixes the panic when trying to declare the `GPUIApplication` class.
2023-10-04 13:11:02 -04:00
Marshall Bowers
a05cbf8169
Begin setting up stories
2023-10-04 12:49:06 -04:00
Marshall Bowers
4b793f44ef
Wire up hacky children for Panel
2023-10-04 11:22:33 -04:00
Marshall Bowers
aae4f00a4b
Render Panel
2023-10-04 10:58:23 -04:00
Marshall Bowers
366a4918c3
Fix icon paths
2023-10-04 10:52:39 -04:00
Marshall Bowers
25cd12cf33
Fix icon name
2023-10-04 10:41:21 -04:00
Marshall Bowers
90e22da930
Render workspace
2023-10-04 10:37:29 -04:00
Marshall Bowers
e6c7e57711
Merge branch 'gpui2' into marshall/gpui2-playground
2023-10-04 10:33:40 -04:00
Antonio Scandurra
d385bc9cce
Allow tinting images grayscale
2023-10-04 15:27:51 +02:00
Antonio Scandurra
1816ab95a0
Checkpoint: start rendering images
2023-10-04 15:03:21 +02:00
Antonio Scandurra
5c750b6880
Checkpoint: emojis rendering
2023-10-04 12:41:21 +02:00