Mikayla
fd34d1da31
Add back semi-funcitonal pane resizing code
2023-12-08 16:29:42 -08:00
Marshall Bowers
853daf953b
Remove padding from ButtonSize::None
( #3541 )
...
This PR removes the padding from buttons when using `ButtonSize::None`.
This fixes the size of the tab close buttons.
Release Notes:
- N/A
2023-12-07 14:11:30 -05:00
Marshall Bowers
393be3cedf
Extract Tab
component ( #3539 )
...
This PR extracts a new `Tab` component from the tabs implementation in
the workspace.
This will allow us to reuse this component anywhere that we need to use
tabs.
Like our other newer components, the `Tab` component has a relatively
open API.
It accepts `children` (or `child`) as well as a `start_slot` and
`end_slot` to position content in the slots on either end of the
content. These slots also respect the `TabCloseSide` and will switch
positions based on this value.
<img width="763" alt="Screenshot 2023-12-07 at 12 19 42 PM"
src="https://github.com/zed-industries/zed/assets/1486634/78e4db6a-f807-431e-8777-f52f2631e6ed ">
Release Notes:
- N/A
2023-12-07 12:30:43 -05:00
Marshall Bowers
e0ca7f844a
Merge branch 'main' into pane-toolbar-tabbar-ui
2023-12-05 14:15:18 -05:00
Nate Butler
dc7e4a4b17
Remove debugging colors
...
Co-Authored-By: Marshall Bowers <1486634+maxdeviant@users.noreply.github.com>
2023-12-05 14:09:29 -05:00
Nate Butler
27703a3279
Update tabs rendering, fix tab spacing bug
...
Co-Authored-By: Marshall Bowers <1486634+maxdeviant@users.noreply.github.com>
2023-12-05 14:04:12 -05:00
Nate Butler
eed5a698cf
Update tab close button
2023-12-05 11:59:23 -05:00
Nate Butler
7c5df51d2e
Update button sizes
2023-12-05 10:11:18 -05:00
Kirill Bulatov
16b5d4b35c
Port to gpui2
2023-12-05 16:13:39 +02:00
Nate Butler
591dc9d82a
Remove double first item border in tabs
2023-12-04 20:13:52 -05:00
Conrad Irwin
1c9b984738
Remove cx param
2023-12-04 23:35:31 +00:00
Nate Butler
7db0a9e105
Draw border under tabs
2023-12-04 18:21:50 -05:00
Nate Butler
fc16e4509a
Fix double border
2023-12-04 18:13:28 -05:00
Nate Butler
5bdaf0e074
Work on light theme, update tab
2023-12-04 17:54:37 -05:00
Nate Butler
b6ed3b258c
Remove debug
...
Co-Authored-By: Marshall Bowers <1486634+maxdeviant@users.noreply.github.com>
2023-12-04 11:32:14 -05:00
Nate Butler
0af0c5549c
Update toolbar left tool group
2023-12-04 11:14:59 -05:00
Nate Butler
7dc22fef24
Prevent tab bar from growing in height when a tab is added
2023-12-04 09:24:08 -05:00
Nate Butler
11c16258eb
Update empty pane state
2023-12-04 09:13:00 -05:00
Julia
6f9e08ceea
Merge branch 'main' into zed2-breadcrumbs
2023-12-01 12:28:36 -05:00
Julia
13f4cc563c
Merge branch 'main' into zed2-breadcrumbs
2023-12-01 11:02:34 -05:00
Max Brunsfeld
a003a91212
Restore auto-save on focus change, re-enable workspace tests
2023-11-30 14:45:27 -08:00
Max Brunsfeld
c63ca09eed
Reintroduce pane navigation history in zed2
2023-11-30 12:10:25 -08:00
Julia
d516ae0d8a
Pane context menus & focus shenanigans
...
Co-Authored-By: Conrad Irwin <conrad@zed.dev>
2023-11-30 14:01:09 -05:00
Julia
21dfe58ad9
Missing return
2023-11-30 12:23:55 -05:00
Julia
428c517693
Merge branch 'main' into zed2-breadcrumbs
2023-11-30 11:38:29 -05:00
Julia
591299b4c7
Start getting pane focus code ported
2023-11-30 10:47:28 -05:00
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
Nate Butler
2e61a84bd6
Update tab borders
2023-11-24 16:57:50 -05:00
Nate Butler
d965ddba27
Start debugging tab borders
2023-11-24 09:33:44 -05:00
Nate Butler
3c46e81533
More outlines
2023-11-24 09:03:14 -05:00
Antonio Scandurra
3b918bfee8
Merge branch 'main' into rename-element-traits
...
# Conflicts:
# crates/gpui2/src/elements/uniform_list.rs
# crates/ui2/src/components/context_menu.rs
# crates/ui2/src/components/list.rs
2023-11-23 12:47:46 +01:00
Nathan Sobo
c23f17ee0b
Reorganize element-related traits
2023-11-22 11:19:43 -07:00
Mikayla
469b05684f
Fix a few identity mixups in GPUI
...
co-authored-by: nathan <nathan@zed.dev>
2023-11-21 17:12:32 -08:00
Nate Butler
453aa5ffd7
TextColor
-> Color
2023-11-21 01:05:29 -05:00
Piotr Osiewicz
54a3b56935
Merge remote-tracking branch 'origin/callback-handles' into search2
2023-11-21 00:40:20 +01:00
Mikayla
2c4d83c9af
WIP
...
co-authored-by: conrad <conrad@zed.dev>
co-authored-by: Nathan <nathan@zed.dev>
2023-11-20 14:46:01 -08:00
Piotr Osiewicz
d60855b06d
Merge branch 'main' into search2
2023-11-20 19:23:35 +01:00
Piotr Osiewicz
07cc5904f8
Merge branch 'main' into search2
2023-11-20 18:37:41 +01:00
Conrad Irwin
0798cfd58c
Merge branch 'main' into derive-element-redux
2023-11-20 09:15:38 -07:00
Nathan Sobo
33cd6f520a
Clean compile with redesigned element traits
2023-11-18 21:51:47 -07:00
Nathan Sobo
0673606de8
WIP
2023-11-18 20:22:43 -07:00
Mikayla
55dbcf2039
Remove unused imports
2023-11-17 23:14:14 -08:00
Nate Butler
f9804feefa
Remove flex_1 from bottom dock to fix pane group spacing
2023-11-18 02:06:51 -05:00
Piotr Osiewicz
dca2dc7b6b
Merge branch 'main' into search2
2023-11-17 13:22:30 +01:00
Mikayla
9a3cd073c7
Restore a bunch of random workspace stuff
2023-11-16 23:05:28 -08:00
Mikayla
4de2c0f7ef
Re-implement actions as derive macros instead of blanket impls
2023-11-16 17:32:02 -08:00
Piotr Osiewicz
6b6a30c3da
Merge branch 'main' into search2
2023-11-16 17:16:15 +01:00
Kirill Bulatov
a238368296
More compilation fixes
2023-11-16 10:04:18 +02:00
Mikayla
9da0b78ead
Merge branch 'main' into tabs-n-splits
2023-11-15 23:41:25 -08:00
Conrad Irwin
0a9fb3978b
Enable panel switching
2023-11-15 21:01:00 -07:00