145 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
jeremymuhia
ca8f4cbb80 [M3][Large FAB] create M3 styles for large FAB
PiperOrigin-RevId: 392701548
2021-08-24 15:55:38 -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
a342adcac7 [M3][RadioButton] Create M3 styles
PiperOrigin-RevId: 392651948
2021-08-24 15:48:05 -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
pekingme
083f01d8e3 [M3][Tokens] Integrated motion resources.
PiperOrigin-RevId: 392468784
2021-08-24 15:40:16 -04:00
conradchen
906fb2d6d5 [M3][Switch] Create M3 styles
PiperOrigin-RevId: 392441384
2021-08-23 10:09:01 -07:00
jeremymuhia
b06977b5db [M3][FAB] create M3 styles for regular FAB
PiperOrigin-RevId: 392072670
2021-08-23 09:45:13 -07:00
conradchen
60782a5d9b [M3][Tab] Create M3 styles
PiperOrigin-RevId: 391849752
2021-08-23 09:29:03 -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
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
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
27757d026a [M3] Create M3 skeleton themes
PiperOrigin-RevId: 390228317
2021-08-16 13:36:10 -07:00
Material Design Team
cbf7bcad59 Internal change
PiperOrigin-RevId: 386513223
2021-07-28 14:29:52 -04:00
conradchen
357bbf3054 [Color] Rename popup menu background drawable
PiperOrigin-RevId: 366305009
2021-04-01 16:51:27 -04:00
hunterstich
edd2eb57e5 [Motion] Updated motion theming attr names.
PiperOrigin-RevId: 356983952
2021-02-17 06:47:56 -08:00
raajkumars
e13610e589 [Navigation Rail] Added Navigation Rail component to the library.
PiperOrigin-RevId: 355235369
2021-02-04 20:49:41 -05:00
dniz
4af9eabe8a [TimePicker] Renamed ThemeOverlay.MaterialComponents.MaterialTimePicker to ThemeOverlay.MaterialComponents.TimePicker to be more consistent with other time picker styles
PiperOrigin-RevId: 347692913
2020-12-15 17:49:51 -05:00
cketcham
b1812b9a6b Internal Change
PiperOrigin-RevId: 347042445
2020-12-11 14:47:53 -05:00
cketcham
3037cf046c Automated g4 rollback of changelist 343006492
PiperOrigin-RevId: 347038837
2020-12-11 14:45:45 -05:00
dniz
7e578e4b13 [Motion] Changed motionPath theme attr format to enum|string
PiperOrigin-RevId: 344865393
2020-12-01 09:28:06 -05:00
dniz
186d5ed023 [Motion] Added easing, duration, and path theme attributes, as well as utilities to read them
PiperOrigin-RevId: 343380483
2020-11-20 15:00:13 -05:00
cketcham
b163458a3a [BottomSheet] Updates the way BottomSheet handles insets
This updates ThemeOverlay styles to prevent drawing a transparent nav bar and updates BottomSheetBehavior and BottomSheetDialog to handle insets correctly so content isn't drawn behind the status bar or navigation bar.

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

PiperOrigin-RevId: 343006492
2020-11-18 10:40:16 -05:00
haodong
8b38e32829 [ProgressIndicator] Added attribute tests and parameter tests for LinearProgressIndicator.
PiperOrigin-RevId: 338754297
2020-10-27 05:09:24 -07:00
marianomartin
73031815ad [TimePicker] Added Theme Overlay to set default styles for widgets
PiperOrigin-RevId: 337338438
2020-10-15 13:42:16 -07:00
Material Design Team
b7bca363ae Automated g4 rollback of changelist 337164724
PiperOrigin-RevId: 337179972
2020-10-15 13:30:57 -07:00
marianomartin
e619132cbd [TimePicker] Added themoverlay to set default styles for widgets
PiperOrigin-RevId: 337164724
2020-10-15 13:30:13 -07:00
haodong
0a75c746ff [ProgressIndicator] Added CircularProgressIndicator and CircularProgressIndicatorSpec.
PiperOrigin-RevId: 337009157
2020-10-15 13:24:45 -07:00
haodong
33494486c8 Automated g4 rollback of changelist 336313426
PiperOrigin-RevId: 336388324
2020-10-15 13:11:59 -07:00
haodong
5cfcc2e317 [ProgressIndicator] Added CircularProgressIndicator and CircularProgressIndicatorSpec.
PiperOrigin-RevId: 336313426
2020-10-15 12:41:02 -07:00
marianomartin
049ad022a6 Delete components build.gradle files
PiperOrigin-RevId: 320944144
2020-07-15 09:38:31 -07:00
marianomartin
555356b03f Internal cleanup
PiperOrigin-RevId: 318134343
2020-06-26 14:06:52 -04:00
dniz
8851f703d8 [Theming] Move Design widget styles back to full themes from Bridge themes
Makes the Bridge themes a more true no-op when migrating from a Theme.AppCompat or Theme.Design theme and using legacy Widget.Design component styles

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

PiperOrigin-RevId: 317306206
2020-06-19 14:01:34 -04:00
connieshi
68ccc33dad Set buttonBarButtonStyle in full Material Component themes to use @style/Widget.MaterialComponents.Button.TextButton.
Fixes regression in elevation demo introduced when MaterialButton added support for the android:background attribute.

PiperOrigin-RevId: 313390366
2020-05-27 13:54:35 -04:00
connieshi
4fb2375688 Remove AppCompatButton workaround for FloatingToolbar in API 23-25 now that MaterialButton supports android:background.
PiperOrigin-RevId: 306841859
2020-04-17 15:10:15 -04:00
leticiars
d1850a3d78 [ExposedDropdownMenu] Implement workaround to inputType=none not working + move MaterialAutoCompleteTextView to textfield/ directory.
The alternative to android:editable="false" (which is deprecated) is to set inputType="none", however due to a framework bug that has no effect. This change makes it so it works as expected.

PiperOrigin-RevId: 299411110
2020-03-09 09:36:24 -07:00
isabellekim
983ee3d47b Use text buttons for framework AlertDialogs in V21+. The library does not encourage usage of the framework AlertDialog (use the AppCompat one instead), however this change is to help support areas that do use the framework AlertDialog, like preferences.
Note: the default theme (android:alertDialogTheme) for framework alert dialogs pre-21 is not a public resource and therefore we cannot inherit from that theme. For this reason, we are not changing the buttons for AlertDialogs pre-21 (they will continue to use the framework default). They will, however, look like the typical pre-21 framework AlertDialogs once MaterialButton supports android:background.
PiperOrigin-RevId: 295263002
2020-02-18 16:44:15 -05:00
Jake Wharton
d7a5dc8fb7 Use conditional keep rule for MaterialComponentsViewInflater
Resolves https://github.com/material-components/material-components-android/issues/818
Resolves https://github.com/material-components/material-components-android/pull/821

GIT_ORIGIN_REV_ID=2e0039b5881fdb58b691b37eb0cf3ff4e043ffb7
PiperOrigin-RevId: 285198021
2019-12-12 11:44:55 -05:00
haodong
7bcd5f606e Fixed popup menu on action bar.
* Made sure light/dark theme always shows popup menu in corresponding theme.
* Increased contrast of text in popup menu in dark theme.

PiperOrigin-RevId: 278397458
2019-11-04 13:09:28 -05:00
dniz
aa7d83333e Add popupMenuBackground theme attribute and combine light and dark Menu styles
into one style that references the new attribute

PiperOrigin-RevId: 277340044
2019-11-01 13:28:40 -07:00
marianomartin
115313c0c0 Expose a class for themeoverlay in style
This moves functionality from ThemeEnforcement into a stand alone class.

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

PiperOrigin-RevId: 275481343
2019-10-21 10:24:19 -04:00