Nate Butler
a8bf0834e6
Button2 – Part1 ( #3420 )
...
## TODO
- [x] Remove `InteractionState`
- [ ] `Selectable` should use `Selection` instead of a boolean
- [x] Clean out ui2 prelude
- [ ] Build out button2 button types
- [ ] Port old buttons
Release Notes:
- N/A
---------
Co-authored-by: Marshall Bowers <1486634+maxdeviant@users.noreply.github.com>
2023-11-29 12:23:09 -05:00
Marshall Bowers
64376ad37a
ui2: Reference theme2
and settings2
crates without the 2
( #3424 )
...
This PR updates the `ui2` crate to reference the `theme2` and
`settings2` crates without the `2` the way we do in our other crates.
Release Notes:
- N/A
2023-11-28 15:30:29 -05:00
Marshall Bowers
070674a4fd
ui2: Unsuppress and fix warnings ( #3423 )
...
This PR unsupresses the warnings in `ui2` and summarily fixes them.
Release Notes:
- N/A
2023-11-28 14:44:19 -05:00
Nathan Sobo
c23f17ee0b
Reorganize element-related traits
2023-11-22 11:19:43 -07:00
Nate Butler
f04deeb5f9
Document InteractionState
2023-11-21 11:51:15 -05:00
Nate Butler
453aa5ffd7
TextColor
-> Color
2023-11-21 01:05:29 -05:00
Nate Butler
56d45e72cd
Add Shape enum to avatar component, refactor UITextSize to styles/typography.rs
2023-11-21 00:59:29 -05:00
Nate Butler
205607a9cd
Clean out UI
2023-11-21 00:44:51 -05:00
Nathan Sobo
adc355a1e6
Element refinement passing on ui2
2023-11-18 20:05:47 -07:00
Conrad Irwin
37d0b8424c
Merge branch 'main' into element-types
2023-11-14 12:10:26 -07:00
Marshall Bowers
76c15229c1
Combine LabelColor
and IconColor
into TextColor
2023-11-14 13:48:01 -05:00
Nathan Sobo
6abaacc457
Fix formatting
2023-11-14 01:58:10 -07:00
Nathan Sobo
27fb381cca
Checkpoint
2023-11-14 01:15:48 -07:00
Nate Butler
9cc3ee9674
Update usages of text_size_*
to text_ui
in ui components
...
Co-Authored-By: Marshall Bowers <1486634+maxdeviant@users.noreply.github.com>
2023-11-08 15:28:38 -05:00
Nate Butler
4ef2f0b2b9
Update StyledExt to use more idiomatic method naming
2023-11-08 14:42:56 -05:00
Nate Butler
6ecf629c63
BROKEN: Checkpoint
2023-11-08 14:29:38 -05:00
Nate Butler
6e11044e9e
add ui_text_size
functions
2023-11-08 12:57:24 -05:00
Marshall Bowers
b6766ba39a
Replace GitStatusColors
with StatusColors
( #3268 )
...
This PR removes `GitStatusColors` in favor of just using `StatusColors`
instead.
Release Notes:
- N/A
2023-11-08 11:32:32 -05:00
Conrad Irwin
496518f3e8
Use gpui instead of gpui2 consistenytly
2023-11-06 11:50:33 -07:00
Marshall Bowers
d224f511fa
Add interactivity to Checkbox
component ( #3240 )
...
This PR adds interactivity to the `Checkbox` component.
They can now be checked and unchecked by clicking them.
Release Notes:
- N/A
2023-11-06 13:22:25 -05:00
Nate Butler
1bce5dcc69
Add checkboxes and their stories
2023-11-05 01:06:41 -05:00
Nate Butler
b125cc279f
Simplify toggle, do some reorganization
2023-11-04 11:24:31 -04:00
Nate Butler
d0975aacac
Merge branch 'main' into n/t2
2023-11-01 16:52:43 -04:00
Nate Butler
be3cc6458c
Implement Notifications
...
Co-Authored-By: Marshall Bowers <1486634+maxdeviant@users.noreply.github.com>
2023-11-01 16:34:42 -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
Marshall Bowers
ba789fc0c4
Remove old theme constructs
2023-10-30 14:47:44 -04:00
Marshall Bowers
14d24a9ac6
Remove references to old_theme
2023-10-30 14:36:49 -04:00
Marshall Bowers
7b4e699d0e
Remove themed
wrapper
2023-10-30 14:28:25 -04:00
Marshall Bowers
ed233d583f
ui2: Remove ElementExt
trait
2023-10-26 15:59:18 +02:00
Nathan Sobo
0285284ae1
Rename IntoAnyElement trait to Component
2023-10-26 12:46:52 +02:00
Marshall Bowers
9c10152c89
Use Display
instead of custom to_string
2023-10-26 09:30:21 +02:00
Marshall Bowers
28ef30f7a2
Removed unused ui2::color
module
2023-10-26 09:26:22 +02:00
Marshall Bowers
e1032c5341
Remove ThemeColor
in favor of theme2::Theme
2023-10-25 16:32:44 +02:00
Marshall Bowers
258496700f
Rename theme
getter to old_theme
2023-10-25 16:02:47 +02:00
Nate Butler
c1c9db2ae2
Add elevation enums + docs
2023-10-23 13:50:39 -04:00
Nate Butler
3a326bfa7e
🤦 Remove references to system_color
2023-10-23 11:05:17 -04:00
Nate Butler
1e13e273d2
Add ThemeColor interface for UI coloring and remove redundancy
2023-10-23 11:01:04 -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
Antonio Scandurra
a3dcaf21cb
Checkpoint
2023-10-20 16:31:03 +02:00
Antonio Scandurra
68bc22f9cd
Checkpoint
2023-10-20 10:55:06 +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
3a70f02cbf
Checkpoint
2023-10-19 23:21:26 +02:00
Antonio Scandurra
dd7e1c505c
Checkpoint
2023-10-19 23:00:19 +02:00
Marshall Bowers
3932c1064e
Merge branch 'gpui2' into gpui2-theme-to-color
2023-10-19 16:10:44 -04:00
Nate Butler
58650b7d2d
Checkpoint - Still Broken
2023-10-19 14:38:01 -04:00
Marshall Bowers
184f5f2397
Restore active styles for Input
s
2023-10-19 14:17:35 -04:00