Cody Weaver
1f5bec24e1
#Buttons Fix dynamic type size for icons
...
PiperOrigin-RevId: 765030659
2025-05-29 22:25:48 -07:00
Cody Weaver
4d4bfa7301
#Buttons Refactor private classes to their own files
...
PiperOrigin-RevId: 761992358
2025-05-22 09:15:40 -07:00
Cody Weaver
02899b8392
#Button Fix shadow not animating properly.
...
PiperOrigin-RevId: 761607270
2025-05-21 11:43:22 -07:00
Cody Weaver
5de133336f
#Buttons Update sizing to be the correct size in regular, large and extraLarge.
...
PiperOrigin-RevId: 759638844
2025-05-16 09:12:55 -07:00
Cody Weaver
aba3498ed8
#Buttons Fix shadow not being the correct path.
...
PiperOrigin-RevId: 758702167
2025-05-14 08:52:54 -07:00
Cody Weaver
e28f9c5ada
#Buttons Add explicitSize method
...
PiperOrigin-RevId: 758372107
2025-05-13 14:16:06 -07:00
Cody Weaver
7551027486
#Buttons Update image size to always be square
...
PiperOrigin-RevId: 757920651
2025-05-12 14:48:23 -07:00
Cody Weaver
b29adefbd8
#Buttons Update colors on button size being set
...
PiperOrigin-RevId: 756021438
2025-05-07 15:05:07 -07:00
Cody Weaver
f25aad87ce
#Buttons Add shadow to visual background
...
PiperOrigin-RevId: 754957294
2025-05-05 09:06:22 -07:00
Cody Weaver
4badc9d691
#Buttons Fix clampToMinimumSize method.
...
PiperOrigin-RevId: 753390858
2025-04-30 18:42:14 -07:00
Cody Weaver
f7ef73770d
#Buttons Fix bug where background would be in front of other elements.
...
PiperOrigin-RevId: 752334470
2025-04-28 09:24:40 -07:00
Cody Weaver
a801760a58
#Button Fix issue where legacy clients can't set borderWidth.
...
PiperOrigin-RevId: 751476068
2025-04-25 10:36:35 -07:00
Cody Weaver
91a227c283
#Button Update buttons to not fully round corners on press.
...
PiperOrigin-RevId: 751069425
2025-04-24 11:32:36 -07:00
Cody Weaver
731442f0dc
#Buttons Fix bug where corners wouldn't update if ubtton size wasn't set before.
...
PiperOrigin-RevId: 747507015
2025-04-14 11:49:27 -07:00
Cody Weaver
1fcbd02110
#Buttons Update buttons to support outline at all sizes
...
PiperOrigin-RevId: 747495810
2025-04-14 11:19:20 -07:00
Cody Weaver
74e7860bbb
#Buttons Update the setCapsuleCornersBasedOn:size method to account for width.
...
PiperOrigin-RevId: 745389893
2025-04-08 20:03:08 -07:00
Cody Weaver
9c5a3d91e7
#Buttons Update sizeThatFits and intrinsicContentSize to not account for minimumHeight or minimumWidth
...
PiperOrigin-RevId: 744022303
2025-04-04 11:57:28 -07:00
Cody Weaver
be61b671e5
#Buttons Add support for mini UIKit Button
...
PiperOrigin-RevId: 743706218
2025-04-03 14:51:06 -07:00
Cody Weaver
d3f0d79c8c
#Buttons Fix bug where symbol wouldn't resize after button size being set.
...
PiperOrigin-RevId: 733073344
2025-03-03 15:02:11 -08:00
Cody Weaver
a88381e75c
#Buttons Clean up implementation file of missing API annotations.
...
PiperOrigin-RevId: 732944928
2025-03-03 09:08:20 -08:00
Cody Weaver
7113d41e99
#Buttons Add docs to setButtonSize method
...
PiperOrigin-RevId: 732168855
2025-02-28 09:47:43 -08:00
Cody Weaver
78c9615e74
#Buttons Split setFont into setFont and setImageFont
...
PiperOrigin-RevId: 732162553
2025-02-28 09:25:07 -08:00
Cody Weaver
1f758da8d7
#Buttons Fix bug where setting properties before setting button size weren't reflected.
...
PiperOrigin-RevId: 731547135
2025-02-26 19:44:53 -08:00
Cody Weaver
3a85c1e985
[M3CButton] Mark size related methods as available for iOS 15+.
...
PiperOrigin-RevId: 731469668
2025-02-26 15:05:30 -08:00
Cody Weaver
1ca37ab941
#Buttons Add edgeInsetsForImage/Title:forSize:
...
PiperOrigin-RevId: 731123771
2025-02-25 19:50:47 -08:00
Cody Weaver
6e834253df
#Button Add imageEdgeInsets for size API
...
PiperOrigin-RevId: 730971896
2025-02-25 11:51:32 -08:00
Cody Weaver
59075784b3
#Button Add pressedCornerRadius:forSize: API
...
PiperOrigin-RevId: 730935620
2025-02-25 10:22:12 -08:00
Cody Weaver
11d6473f5b
#Buttons Add cornerRadius:forSize: API
...
PiperOrigin-RevId: 730613819
2025-02-24 15:15:19 -08:00
Cody Weaver
5faa72d2f6
#Button Add font:forSize: API.
...
PiperOrigin-RevId: 729305280
2025-02-20 17:06:48 -08:00
Cody Weaver
86e29007a3
#Button Add Button Size type to M3CButton
...
PiperOrigin-RevId: 729240362
2025-02-20 13:54:03 -08:00
Cody Weaver
bd33e35a8a
#Button Add M3CButtonSize to support different size variants.
...
PiperOrigin-RevId: 729186646
2025-02-20 11:29:10 -08:00
Nobody
b1164e6ba7
Update -sizeBasedOnLabel to return a size that is consistent with -sizeThatFits:.
...
Change -sizeBasedOnLabel to apply ceil() to the width of the label. Without this change, the width will differ slightly based on the textCanWrap property. This avoids differences that was resulting in an infinite layout loop in MDCAlertController.
PiperOrigin-RevId: 662959086
2024-08-14 10:02:37 -07:00
Wenyu Zhang
37976f7093
Port over constraint-based support for multiline button from MDCButton.
...
PiperOrigin-RevId: 590209948
2023-12-12 08:21:37 -08:00
Nobody
a1975d253d
Internal change
...
PiperOrigin-RevId: 577961493
2023-10-30 14:42:59 -07:00
Cody Weaver
86b371d59a
#Button Update docs around multiline use with capsule shape.
...
PiperOrigin-RevId: 574207268
2023-10-17 11:10:59 -07:00
Nobody
f4d6eb9703
Add minimumWidth property to M3CButton.
...
PiperOrigin-RevId: 537142021
2023-06-01 15:22:48 -07:00
David Collazo
8e6a8d93c0
Add M3CAnimationAction to M3CButton.
...
PiperOrigin-RevId: 533465293
2023-05-19 08:56:54 -07:00
Nobody
631d04a9e0
[M3CButton] Consider attributed title when calculating and updating content insets.
...
PiperOrigin-RevId: 513567489
2023-03-02 10:01:59 -08:00
Mila Green
6ca84fe7c8
Add multiline layout support for M3CButton.
...
PiperOrigin-RevId: 507903932
2023-02-07 15:38:31 -08:00
Randall Li
1fadb18d7e
[M3CButton] Remove ShadowColorForState setter because we should use the MDCShadow's color instead.
...
PiperOrigin-RevId: 495019744
2022-12-13 07:50:37 -08:00
Randall Li
bea3c621f9
[M3CButtons] Update insets when changing selected state.
...
PiperOrigin-RevId: 494895683
2022-12-12 19:42:56 -08:00
Randall Li
a319a74c2a
[M3CButtons] Update insets when removing the title.
...
PiperOrigin-RevId: 494895177
2022-12-12 19:39:56 -08:00
Mila Green
587bfcc004
Override sizeThatFits in M3CButton.
...
PiperOrigin-RevId: 494743555
2022-12-12 09:05:44 -08:00
Randall Li
2da387c976
[M3CButton] Added imageEdgeInsetsWithImageAndTitle property.
...
This will allow the internal logic to set the imageEdgeInsets when there is image and text as well as zero it out safely when no text or image are present.
Prior to this fix: if no image or text were set when the branding API is called the imageEdgeInset may get overwritten with zeros.
PiperOrigin-RevId: 494337628
2022-12-09 22:26:17 -08:00
Randall Li
2cc7e52f37
[M3CButton] Removed logic that always set images to be template images.
...
PiperOrigin-RevId: 493088200
2022-12-05 12:59:37 -08:00
Nobody
e6003808d0
[GM3] Add apply capsule corners to layoutSubviews.
...
PiperOrigin-RevId: 490540360
2022-11-23 10:54:43 -08:00
Nobody
ab402c172a
Add minimum height to M3CButton
...
PiperOrigin-RevId: 489470746
2022-11-18 07:39:16 -08:00
Nobody
f82ebee598
Allow custom content edge inset override for M3CButton
...
PiperOrigin-RevId: 488453434
2022-11-14 13:31:14 -08:00
Wenyu Zhang
71dbf5f8ae
[Shadow] Merge shadow color (UIColor) into MDCShadow class.
...
PiperOrigin-RevId: 487427548
2022-11-09 21:21:48 -08:00
Nobody
e4dee869de
internal change
...
PiperOrigin-RevId: 486970737
2022-11-08 09:24:18 -08:00