Commit graph

46 commits

Author SHA1 Message Date
Jason Lee
55585f9699
windows: Fix button and checkbox line-height again. (#244)
<img width="1202"
src="https://github.com/user-attachments/assets/6741041a-f449-4600-bec1-751841dcec88">
2024-09-13 22:55:59 +08:00
Jason Lee
a8d4abea69
button: Improve ButtonGroup to add style, size methods. (#241)
- Add `ButtonStyled` trait to apply the style for Button and
ButtonGroup.
2024-09-13 12:00:47 +08:00
xda
b83ece3cd8
Add ToggleButton (as part of ButtonGroup) (#239)
![2024-09-12 19 20
46](https://github.com/user-attachments/assets/4cf9b374-2d3b-4f36-9fc7-cd6dbd1f861c)

---------

Co-authored-by: Jason Lee <huacnlee@gmail.com>
2024-09-13 11:58:10 +08:00
Jason Lee
77cb8cb448
button: Hotfix Button to valign text center. (#235)
<img width="1336" alt="image"
src="https://github.com/user-attachments/assets/64029ab3-6447-47b1-a40c-f1e6668172b7">
2024-09-11 11:39:17 +08:00
xda
83aecf1293
Add ButtonGroup (#221)
<img width="849" alt="image"
src="https://github.com/user-attachments/assets/5f809b40-9d4c-4934-828d-98f77a3f4b29">

---------

Co-authored-by: Jason Lee <huacnlee@gmail.com>
2024-09-06 10:32:10 +08:00
Jason Lee
9768755eab
Fix panel resize when window resized. (#181)
Co-authored-by: Floyd Wang <gassnake999@gmail.com>
2024-08-28 19:40:35 +08:00
Jason Lee
c5c8e46ac7
New Dock (#172)
https://github.com/user-attachments/assets/c8c55faa-8f17-4fa2-9f62-5fdd598087ef

- [x] Move to insert panel to tabs middle.
- [x] Zoom panel
- [x] Tab popup menu (Close Panel, Split, Zoom in/Zoom out)
- [x] TabBar scrollable
- [ ] TabBar nav history
2024-08-23 18:01:29 +08:00
Floyd Wang
7e9d79ca1b
Improve the loading button (#170)
* Set the background opacity when loading
* Do not trigger the on click event when loading
2024-08-21 10:57:41 +08:00
Floyd Wang
c9a1bba3c2
Fix the disabled style of ghost button (#144) 2024-08-14 17:44:00 +08:00
Jason Lee
bb6d8d8f60
Cleanup first version impls (#132) 2024-08-11 14:46:55 +08:00
Jason Lee
2c531fa3ef
Add text style to Button with no padding. (#122) 2024-08-08 20:13:52 +08:00
Jason Lee
827f57fb6a
Add Sizable trait to impl small, xsmall, large and apply to Button, Input, Dropdown, Switch. (#113) 2024-08-06 17:19:54 +08:00
Floyd Wang
48c452e6f6
Better disabled style for ghost button (#102) 2024-08-02 18:20:08 +08:00
Floyd Wang
48efdecdef
The button compact method defaults to true (#99) 2024-08-02 11:31:40 +08:00
Jason Lee
22a1157378
Add prefix, suffix to TabBar. (#98) 2024-08-01 21:36:33 +08:00
Jason Lee
e9d409a4b1
Add Link style Button (#97)
<img width="1305" alt="image"
src="https://github.com/user-attachments/assets/ee42d86f-e237-4544-aa2d-1414dabfb55e">

- Update `primary`, `danger`, `outline`, `ghost`, `link` methods to as a
builder method to just change style.
- Add `compact` used to reduce padding.

<img width="1279" alt="image"
src="https://github.com/user-attachments/assets/ccbd71c0-9157-4ef8-b164-b99ade24cf92">
2024-08-01 19:54:35 +08:00
Floyd Wang
fc6423f22c
Add ButtonCustomStyle for customized color (#85) 2024-07-30 10:38:42 +08:00
Jason Lee
f496c241d7
button: Fix Button click prevent_default. (#84)
- Use icon in title_bar for switch theme, and add GitHub icon.
2024-07-30 00:28:18 +08:00
Jason Lee
b4862082f1
Improve list item (#61) 2024-07-23 22:08:21 +08:00
Jason Lee
30f34dc780
Fix button icon color support (#57) 2024-07-23 13:45:34 +08:00
Jason Lee
faa16fb660
Add ScrollView (#56) 2024-07-23 09:38:23 +08:00
Jason Lee
e54d1f600b
Add to masked Label and support children to Button (#50)
https://github.com/user-attachments/assets/9583ce15-b801-45f9-aafb-54f0ecdf7dc9

- Add masked mode to Label.
- Add to support any children to Button.
- Fix Popover to support selected state style.
2024-07-19 18:54:16 +08:00
Jason Lee
36411750ee Fix to limit change when Input is disabled.
Add clean button to List query input.
Add ButtonRouneded with px support.
2024-07-17 10:47:25 +08:00
Jason Lee
7c99584862
Add Indicator (#25)
https://github.com/user-attachments/assets/cd6410ca-e1c7-459e-8455-d76506b6d305
2024-07-12 17:33:05 +08:00
Jason Lee
ac789b2379
Add Table (#16)
https://github.com/huacnlee/gpui-component/assets/5518/8603cbcc-c416-4d10-84a0-8cfe2e021e1a
2024-07-06 21:01:16 +08:00
Jason Lee
6eb63dfd28 Removed Button shadow in Light mode for ghost style button. 2024-07-05 11:26:11 +08:00
Jason Lee
c925a6aa61 Add ButtonStyle::Outline, ButtonStyle::Glost 2024-07-05 00:18:36 +08:00
Jason Lee
3ccadf6cc3
Improve focus (#14)
- Add `FocusableCycle` trait to help impl cycle focus.
- Add `outline` style to StyledExt.
2024-07-04 14:05:14 +08:00
Jason Lee
cbbd20867f
Add Icon Button support. (#11)
When the Button have no label present, it will use the Icon mode.

<img width="891" alt="image"
src="https://github.com/huacnlee/gpui-component/assets/5518/ca6240d5-02c8-4201-9a79-4afdf9938dd8">
2024-07-01 21:32:03 +08:00
Jason Lee
d183bacc73
Add Scrollbar (#9)
https://github.com/huacnlee/gpui-component/assets/5518/5e4b7809-f2d0-4e45-a0f2-b9578323a11e
2024-06-30 23:31:16 +08:00
Jason Lee
93779164f0
Rewrite Popover (#7)
https://github.com/huacnlee/gpui-app/assets/5518/dfe0ba05-ecb7-4604-a057-56daed53c16c
2024-06-29 23:49:59 +08:00
Jason Lee
3288270b49
Add Popover (#6) 2024-06-29 10:03:59 +08:00
Jason Lee
3c4891cb69 Add icon support to Button. 2024-06-29 02:37:22 +08:00
Floyd Wang
a5aea36f75
Add Tooltip (#5) 2024-06-28 18:03:28 +08:00
Jason Lee
720672b0e2 Update Input, Button, Dropdown based on theme.radius 2024-06-28 10:11:00 +08:00
Jason Lee
4c278bfabc Add span method, fix primary button text color 2024-06-26 17:25:26 +08:00
Jason Lee
e4fcd24382 Add label to Switch 2024-06-26 10:25:51 +08:00
Jason Lee
08a99217a2 Add TabBar 2024-06-25 19:07:05 +08:00
Jason Lee
8440df938a Add checkbox, title_bar. 2024-06-25 17:16:04 +08:00
Jason Lee
5c1f71a176 Add border to button 2024-06-24 19:14:11 +08:00
Jason Lee
94cb714ebf Update to use shadcn ui theme 2024-06-24 15:39:26 +08:00
Jason Lee
11af9900eb Fix stories switch. 2024-06-24 14:27:07 +08:00
Jason Lee
ae5e4f6149 Update input 2024-06-22 21:47:04 +08:00
Jason Lee
b503d5f7e3 Add input 2024-06-14 19:47:03 +08:00
Jason Lee
0d1b1aa784 Add more example for buttons. 2024-06-13 22:12:10 +08:00
Jason Lee
9ffea5798e First commit, with Button UI. 2024-06-13 21:46:28 +08:00