2050 Commits

Author SHA1 Message Date
conradchen
e5fb9d1fbd [M3][Card] Create M3 styles
PiperOrigin-RevId: 392875925
2021-08-25 14:57:05 -04:00
conradchen
4e0d5b018c [M3][Checkbox] Create M3 styles
PiperOrigin-RevId: 392760639
2021-08-25 14:55:54 -04:00
dsn5ft
ebacf79ec1 [M3][Top App Bar] Reorganize styles
PiperOrigin-RevId: 392705930
2021-08-24 15:57:22 -04:00
jeremymuhia
ca8f4cbb80 [M3][Large FAB] create M3 styles for large FAB
PiperOrigin-RevId: 392701548
2021-08-24 15:55:38 -04:00
hunterstich
f2eaf0c40a [M3][NavigationBar] Reorganize resources.
PiperOrigin-RevId: 392693833
2021-08-24 15:53:56 -04:00
hunterstich
999b24783c [M3][NavigationBar] Add new navigation bar styles.
PiperOrigin-RevId: 392688526
2021-08-24 15:52:44 -04:00
pfthomas
6bfa5842b9 [M3][Button] Create M3 styles
PiperOrigin-RevId: 392680177
2021-08-24 15:51:48 -04:00
dsn5ft
8670643c30 [M3][Theme] Add isMaterial3Theme attr and set to true in 4 main Material3 themes
PiperOrigin-RevId: 392677525
2021-08-24 15:51:02 -04:00
dsn5ft
1cf724b2ed [M3][Color] Use colorPrimary for elevation overlay color for both baseline and dynamic
PiperOrigin-RevId: 392672114
2021-08-24 15:50:00 -04:00
conradchen
a1d09aca2e [M3][TimePicker] Create M3 styles
PiperOrigin-RevId: 392670393
2021-08-24 15:49:01 -04:00
conradchen
a342adcac7 [M3][RadioButton] Create M3 styles
PiperOrigin-RevId: 392651948
2021-08-24 15:48:05 -04:00
pekingme
585fd8df89 [M3][Tokens] Integrated shape resources.
PiperOrigin-RevId: 392530797
2021-08-24 15:44:16 -04:00
conradchen
0064aa1e9c [M3][Slider] Create M3 styles
PiperOrigin-RevId: 392503743
2021-08-24 15:43:21 -04:00
jeremymuhia
6ba1a9206f [M3][eFAB] create M3 styles for extended FAB
PiperOrigin-RevId: 392502584
2021-08-24 15:42:13 -04:00
conradchen
a7cb1f0556 [M3][Tooltip] Create M3 styles
PiperOrigin-RevId: 392481522
2021-08-24 15:41:06 -04:00
pekingme
083f01d8e3 [M3][Tokens] Integrated motion resources.
PiperOrigin-RevId: 392468784
2021-08-24 15:40:16 -04:00
pekingme
d1fb3f9ad2 [M3][Tokens] Integrated state layer resources.
PiperOrigin-RevId: 392465519
2021-08-24 15:38:15 -04:00
conradchen
2dfa3d6906 [TimePicker] Clean-up TextApprearance overriding
1. Creates a new attribute so we don't have to override existing TextAppearance attributes.
2. Removes unnecessary TextAppearance attributes overriding.

PiperOrigin-RevId: 392465193
2021-08-24 15:37:18 -04:00
conradchen
906fb2d6d5 [M3][Switch] Create M3 styles
PiperOrigin-RevId: 392441384
2021-08-23 10:09:01 -07:00
conradchen
febe25707c [M3][DynamicColor] Create dynamic color support in M3
PiperOrigin-RevId: 392425782
2021-08-23 09:46:04 -07:00
jeremymuhia
b06977b5db [M3][FAB] create M3 styles for regular FAB
PiperOrigin-RevId: 392072670
2021-08-23 09:45:13 -07:00
conradchen
804cd600b0 [M3][Tab] Make secondary style change label color when selected
To align with the behavior of the main style.

PiperOrigin-RevId: 392037281
2021-08-23 09:44:30 -07:00
pekingme
3caa9cdfea [M3][Tokens] Integrated elevation resources.
PiperOrigin-RevId: 392029517
2021-08-23 09:43:45 -07:00
conradchen
8123c63747 [Menu] Fix toolbar menu arrow not visible
In toolbar styles we use android:theme to override text and icon colors and set ?attr/colorControlNormal to ?attr/colorOnPrimary, which is the same color (white) in the light mode as the menu background. To override this behavior again, we need to use ?attr/popupTheme and set ?attr/colorControlNormal to ?attr/colorOnSurface.

Resolves https://github.com/material-components/material-components-android/issues/553

PiperOrigin-RevId: 392003704
2021-08-23 09:36:09 -07:00
conradchen
60782a5d9b [M3][Tab] Create M3 styles
PiperOrigin-RevId: 391849752
2021-08-23 09:29:03 -07:00
dsn5ft
cb74134075 [M3][Top App Bar] Fixed collapsing toolbar collapsed title text appearance
PiperOrigin-RevId: 391821355
2021-08-23 09:27:39 -07:00
pekingme
293457c6f8 [M3][Tokens] Integrated typography system resources.
PiperOrigin-RevId: 391801740
2021-08-23 09:25:55 -07:00
dsn5ft
a461de5fd8 [M3][Text Field] Updated text appearance mappings
PiperOrigin-RevId: 391786230
2021-08-23 09:24:52 -07:00
dsn5ft
0c6f435a40 [M3][Top App Bar] Fixed styling in themes due to bad merge
PiperOrigin-RevId: 391780715
2021-08-23 09:24:07 -07:00
pekingme
23c9f27621 [M3][Tokens] Updated ref colors, background/surface color, and error color.
PiperOrigin-RevId: 391779908
2021-08-23 09:23:22 -07:00
conradchen
edbc4e1f64 [M3][Textfield] Create M3 styles
PiperOrigin-RevId: 391773145
2021-08-23 09:22:14 -07:00
dsn5ft
f428f20829 [M3][Color] Updated colorPrimaryDark to point to colorPrimary
Also updated Catalog edge-to-edge logic to handle "light status bar", and default to edge-to-edge enabled for Q+

PiperOrigin-RevId: 391763801
2021-08-23 09:21:21 -07:00
dsn5ft
18490ff82d [M3][Top App Bar] Added new AppBarLayout, CollapsingToolbarLayout, and Toolbar styles and updated Catalog pages + demos
PiperOrigin-RevId: 391755524
2021-08-23 09:20:24 -07:00
dsn5ft
b9e5797c73 [M3][Color] Set up elevation overlays and colors in themes + theme overlays
PiperOrigin-RevId: 391744768
2021-08-23 09:19:24 -07:00
pekingme
0995f99965 [M3][Tokens] Integrated color system resources.
PiperOrigin-RevId: 391597925
2021-08-23 09:18:25 -07:00
dsn5ft
5d940f1ff8 [M3][Catalog] Update Catalog theme(s) to Material3 and fix Material3 date/time picker theme overlays
PiperOrigin-RevId: 391581833
2021-08-23 09:17:02 -07:00
pfthomas
ec3f96cbb9 [CollapsingToolbarLayout] Fix expanded height incorrect after rotation
PiperOrigin-RevId: 391547762
2021-08-18 10:27:05 -07:00
dsn5ft
17a459abd3 [M3][Color] Removed disabled color theme attrs
PiperOrigin-RevId: 391544286
2021-08-18 10:26:23 -07:00
conradchen
04b06ae425 [M3] Create M3 ripple alpha resources
PiperOrigin-RevId: 391532414
2021-08-18 10:25:38 -07:00
hunterstich
baf55ec93c [M3][Typography] Add new typography system TextAppearance styles and set attrs in theme.
PiperOrigin-RevId: 391388105
2021-08-18 10:06:03 -07:00
conradchen
126df4c082 [Tab] Fix icon tint not applied on lower SDKs
On SDK < 23 if the icon is not a TintAwareDrawable, DrawableCompat.wrap() will return a new drawable which wraps the original drawable. However in the original logic after we set the tint to the icon, we didn't really set the tinted icon back to the tab or the image view, therefore the tint is not showing.

Moves the tint logic to updateTextAndIcon() to ensure tinted icons will be used in the image view.

Resolves https://github.com/material-components/material-components-android/issues/785

PiperOrigin-RevId: 391368322
2021-08-18 10:02:28 -07:00
conradchen
a682ab0ee0 [AppBar] Make it possible to disable app bars' shadow
Originally we always set the outline provider of app bars to BOUND, even if the outline provider is set to none explicitly in the XML file.

Checks if the outline provider is set to BACKGROUND before we override it, to prevent unwanted overriding from happening.

Resolves https://github.com/material-components/material-components-android/issues/2332

PiperOrigin-RevId: 391339943
2021-08-18 10:01:27 -07:00
Natalia Kuznetsova
cdeeb824cb [TextInputLayout] Adding getter and setter for boxCollapsedPaddingTop
Resolves https://github.com/material-components/material-components-android/pull/2289

GIT_ORIGIN_REV_ID=50ec191fbca0e2223ac322adb3f36035186b4bca
PiperOrigin-RevId: 391122971
2021-08-16 13:49:38 -07:00
hunterstich
beb51dc938 [M3][Typography] Define new typography system theme attributes.
PiperOrigin-RevId: 390658242
2021-08-16 13:46:04 -07:00
dsn5ft
1ed1c29de3 [M3][Color] Define new color system theme attributes
PiperOrigin-RevId: 390612653
2021-08-16 13:44:53 -07:00
dsn5ft
45f4fa0ac8 [MaterialTimePicker] Add some defensive null checks for internal views
PiperOrigin-RevId: 390608782
2021-08-16 13:43:58 -07:00
jeremymuhia
10edc29b4f [TextInputLayout] fix counterTextColor java docs
PiperOrigin-RevId: 390602431
2021-08-16 13:43:10 -07:00
dsn5ft
c3691284aa [M3] Update Dark dialog theme to have correct dark dynamic color theme overlay
PiperOrigin-RevId: 390235966
2021-08-16 13:42:24 -07:00
conradchen
27757d026a [M3] Create M3 skeleton themes
PiperOrigin-RevId: 390228317
2021-08-16 13:36:10 -07:00
dsn5ft
57e3bc02fa [i18n] Updated some string translations for date picker, time picker, and text field
PiperOrigin-RevId: 389899697
2021-08-10 21:08:28 -07:00