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
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
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
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
dniz
b99709200e
Add support for Snackbar message text styling via snackbarTextViewStyle attr
...
PiperOrigin-RevId: 272198481
2019-10-01 12:35:27 -04:00
dniz
b1a6256ac1
Move Material-only default component styles from full themes to bridge themes
...
The Bridge themes are guaranteed to be a no-op when migrating from an AppCompat theme, so we can set any new attributes introduced by Material in the Bridge themes.
Resolves https://github.com/material-components/material-components-android/issues/623
PiperOrigin-RevId: 272021042
2019-10-01 04:07:53 -04:00
isabellekim
3fba0eeade
Move material theme overlays into their own file.
...
PiperOrigin-RevId: 271127788
2019-09-26 17:54:53 -04:00
cketcham
e44b7f765d
Add default slider style to the themes
...
PiperOrigin-RevId: 268693120
2019-09-12 14:28:12 -04:00
dniz
f2db1d9ac9
Add color theme attributes that swap between primary and surface colors depending on light vs dark theme
...
Makes it easier for devs to implement: https://material.io/design/color/dark-theme.html#custom-application
PiperOrigin-RevId: 255962470
2019-07-03 14:05:18 -04:00
dniz
6783f9e1cd
Clean up naming of elevation overlay methods and attributes
...
PiperOrigin-RevId: 253283047
2019-06-18 13:34:29 -04:00
ldjesper
60090791b9
Full screen vertical scrolling
...
PiperOrigin-RevId: 252663790
2019-06-18 11:58:50 -04:00
dniz
591ba96852
Update Theme Overlays to set neutral palette colors
...
PiperOrigin-RevId: 252629630
2019-06-18 11:53:51 -04:00
ldjesper
cbdd8f6097
Remove separate range and single date picker styles
...
PiperOrigin-RevId: 250561429
2019-05-30 13:58:12 -07:00
dniz
daa3a04069
DayNight Bridge Themes
...
Also add some non-Base dialog themes that were missing
PiperOrigin-RevId: 250520918
2019-05-29 16:30:39 -04:00
cketcham
6e250a6a0d
Add colorSecondary to bridge themes
...
PiperOrigin-RevId: 250495874
2019-05-29 16:28:16 -04:00
connieshi
ebaccf5a85
Add support for badgeStyle, a theme level style attribute for customizing the appearance of badges.
...
PiperOrigin-RevId: 249338990
2019-05-24 14:16:22 -04:00
leticiars
0f7eaaa94f
Adding styling for ListPopupWindow along with dark theme support.
...
PiperOrigin-RevId: 249244399
2019-05-24 14:10:53 -04:00
dniz
10d2e63e31
Fix elevationOverlaysEnabled in Theme.MaterialComponents.Light.DarkActionBar.Bridge
...
PiperOrigin-RevId: 246847640
2019-05-06 13:18:18 -04:00
dniz
8f622283d1
Remove CSL theme attribute workarounds
...
Also update androidx dependencies to get latest fixes: appcompat to 1.1.0-alpha04 and core to 1.1.0-alpha05
PiperOrigin-RevId: 246804285
2019-05-06 10:34:04 -04:00
dniz
34a3a46f61
Update Tabs to default to surface style in Dark Theme
...
PiperOrigin-RevId: 245217332
2019-04-29 15:39:42 -07:00
marianomartin
faf8b8d757
Add Context Menu Styles
...
Style context menus with the same background as overflow and popup menus.
The attribute only available API 23 and up. So previous APIs are unchanged.
PiperOrigin-RevId: 245087463
2019-04-29 15:36:41 -07:00
ldjesper
eb6aec99b1
Add a button bar to control the current month to MaterialCalendar.
...
PiperOrigin-RevId: 245057453
2019-04-29 15:34:06 -07:00
dniz
d5ab5910dc
Update Bottom Navigation to default to surface style in Dark Theme
...
PiperOrigin-RevId: 245041248
2019-04-29 15:31:01 -07:00
dniz
5249f54ab1
Update AppBarLayout and ActionBar to default to surface style in Dark Theme
...
Also update Dark Theme colorPrimaryDark to be #000000 to match
PiperOrigin-RevId: 245028116
2019-04-29 15:30:11 -07:00
isabellekim
6b9858b4b8
Remove unused theme styleables.
...
PiperOrigin-RevId: 241933487
2019-04-05 15:52:08 -04:00
dniz
6d4ffa29e3
AppBarLayout Dark Theme Elevation Overlays support, including animated overlay for Lift On Scroll
...
PiperOrigin-RevId: 241791205
2019-04-05 15:47:39 -04:00
ldjesper
63cd0d8428
Change CalendarView to a Fragment as it will contain more fragments
...
PiperOrigin-RevId: 241414776
2019-04-05 15:29:59 -04:00
dniz
760a99f883
Enable Elevation Overlays for Dark Themes and update surface colors to match spec
...
PiperOrigin-RevId: 240425682
2019-03-26 17:35:50 -04:00
marianomartin
912045f642
[Menu] Add overlay color for APIs 23 and up
...
PiperOrigin-RevId: 239214849
2019-03-22 16:52:26 -04:00
dniz
7b594393c8
Dark Theme Elevation Overlay system
...
PiperOrigin-RevId: 237829773
2019-03-22 16:02:26 -04:00
ldjesper
a6968befc1
Unique name for MaterialDatePickerView styles
...
PiperOrigin-RevId: 237271488
2019-03-08 10:09:55 -05:00
ldjesper
0aa32c1ce6
Adds a bare implementation of a date picker not yet ready for use
...
PiperOrigin-RevId: 237052095
2019-03-08 10:06:25 -05:00