Marshall Bowers
76db100d11
ui2: Reorganize components ( #3228 )
...
This PR reorganizes the components in the `ui2` crate.
The distinction between "elements" and "components" is now gone, with
all of the reusable components living under `components/`.
The components that we built while prototyping but will eventually live
in other crates currently reside in the `to_extract/` module.
Release Notes:
- N/A
2023-11-03 17:34:11 -04:00
Marshall Bowers
b910bbf002
Add ui_font_size
setting ( #3199 )
...
This PR adds a new `ui_font_size` setting that can be used to control
the scale of the entire UI.
We use the value in this setting to set the base rem size of the window.
Release Notes:
- N/A
2023-11-01 13:11:12 -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
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
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
e1032c5341
Remove ThemeColor
in favor of theme2::Theme
2023-10-25 16:32:44 +02:00
Marshall Bowers
171db00f6e
Fix stack overflow
2023-10-24 11:39:15 +02:00
Marshall Bowers
6f5cf10acb
Comment out .state
setting
2023-10-24 11:39:10 +02:00
Nate Butler
e99d862f3f
WIP Button Refactor
2023-10-23 14:50:53 -04: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
Antonio Scandurra
e4fe9538d7
Checkpoint
2023-10-21 16:01:47 +02:00
Nate Butler
32028fbbb1
Checkpoint – Notifications Panel
2023-10-19 20:04:21 -04:00
Antonio Scandurra
296fc92721
Checkpoint
2023-10-19 23:47:32 +02:00
Antonio Scandurra
21b4ae3fdc
Merge
2023-10-19 23:40:38 +02:00
Antonio Scandurra
dd7e1c505c
Checkpoint
2023-10-19 23:00:19 +02:00
Marshall Bowers
a1aba32209
Remove Clone
bound from Button
and Details
2023-10-19 16:35:44 -04:00
Marshall Bowers
61e09ff532
Checkpoint: Thread WindowContext
through to user_settings
2023-10-19 12:58:17 -04:00
Nate Butler
7cb00aeb34
Update line heights, buttons to respond to UI scale
...
Co-Authored-By: Marshall Bowers <1486634+maxdeviant@users.noreply.github.com>
2023-10-18 17:55:17 -04:00
Nate Butler
7b2782c0f6
Use ui_size
to set relative font sizes
...
Co-Authored-By: Marshall Bowers <1486634+maxdeviant@users.noreply.github.com>
2023-10-18 17:02:57 -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
8b637e194e
Update approach to settings
...
Co-Authored-By: Marshall Bowers <1486634+maxdeviant@users.noreply.github.com>
2023-10-18 16:16:58 -04:00
Nate Butler
289255d67a
Update UI elements and implement user settings for customization
2023-10-18 15:42:10 -04:00
Marshall Bowers
6e3393c93f
Use SharedString
for Button
s
2023-10-18 10:59:42 -04:00
Marshall Bowers
8321b9430e
Wire up hover styles on Button
s
2023-10-18 10:53:42 -04:00
Antonio Scandurra
296a2b8e5d
Rename fill
to bg
2023-10-18 09:39:23 +02:00
Marshall Bowers
3c1ec2e9ca
Add rudimentary UI for BufferSearch
2023-10-13 17:36:27 -04:00
Nate Butler
b30b1d145c
Refactor button rendering to use ThemeColor instead of direct theme calls
2023-10-13 11:47:13 -04:00
Marshall Bowers
36bca4f0d6
Restore click events on Button
s using on_mouse_down
2023-10-12 16:56:48 -04:00
Marshall Bowers
262f5886a4
Checkpoint
2023-10-12 12:18:35 -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
95ef61bc45
Thread click handler through from workspace to language selector
2023-10-10 18:02:08 -04:00
Marshall Bowers
48d9b49ada
Wire up click handlers on Button
s
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
b8b8fe6120
Add Button
component
2023-10-07 11:41:48 -04:00
Marshall Bowers
696aee3891
Add IconButton
component
2023-10-06 17:16:00 -04:00