34 Commits

Author SHA1 Message Date
cketcham
438ba25c58 Add BottomAppBar attribute to the theme
PiperOrigin-RevId: 191448308
2018-04-03 12:10:36 -04:00
Material Design Team
ba1d44b46e Automated g4 rollback of changelist 190859922
PiperOrigin-RevId: 190866477
2018-04-03 12:01:50 -04:00
cketcham
6722bd39ca Add BottomAppBar attribute to the theme
PiperOrigin-RevId: 190859922
2018-04-03 12:00:52 -04:00
cketcham
a87d71a4ae Move components out of widget
PiperOrigin-RevId: 190828084
2018-04-03 11:55:32 -04:00
Material Design Team
704691488d Small fix for aapt2 regression
PiperOrigin-RevId: 190778936
2018-04-03 11:53:04 -04:00
dniz
ade4df00cb Change Gradle build to output single Maven artifact
PiperOrigin-RevId: 190774454
2018-04-03 11:49:01 -04:00
afohrman
3b0ed4aa6c Fix typos in theme/attrs.xml.
PiperOrigin-RevId: 188790462
2018-03-12 19:32:39 -04:00
gauthams
8dbb9b24a2 Add snackbarButtonStyle attribute
PiperOrigin-RevId: 188410794
2018-03-12 12:57:07 -04:00
gauthams
2608666d33 Remove alertDialogTheme, not necessary if using AppCompat AlertDialogs
PiperOrigin-RevId: 188379434
2018-03-12 12:56:27 -04:00
gauthams
d2d963e248 Fix incorrect alertDialogTheme in light theme
PiperOrigin-RevId: 188119922
2018-03-12 12:55:16 -04:00
Material Design Team
1bd0b7f129 Automated g4 rollback of changelist 187953030
PiperOrigin-RevId: 187959742
2018-03-12 12:54:16 -04:00
gauthams
b7d57944ef Add snackbarButtonStyle attribute
PiperOrigin-RevId: 187953030
2018-03-12 12:54:01 -04:00
gauthams
00efc03a35 Fix button theming issue when alert dialog was created with no style specified
PiperOrigin-RevId: 187930168
2018-03-12 12:53:49 -04:00
gauthams
f9dec1498f Inflate MaterialButton for all <Button> tags if you are using a Material Design theme
PiperOrigin-RevId: 187563154
2018-03-12 12:53:06 -04:00
cketcham
ecb326ebb1 Add Light and Dark themes for MaterialCardView
PiperOrigin-RevId: 187212600
2018-03-12 12:52:20 -04:00
cketcham
29856e9e8b Automated g4 rollback of changelist 186498341
PiperOrigin-RevId: 186535770
2018-03-12 12:48:23 -04:00
gauthams
85c2bf1479 Set tab style to .Colored style variant for the dark theme
PiperOrigin-RevId: 186501713
2018-03-12 12:48:09 -04:00
cketcham
9b8f69d5ef Automated g4 rollback of changelist 186476270
PiperOrigin-RevId: 186498341
2018-03-12 12:45:36 -04:00
Material Design Team
8a9e021c44 Automated g4 rollback of changelist 186467179
PiperOrigin-RevId: 186476270
2018-03-12 12:45:14 -04:00
cketcham
b8e1399b6f Add default component style for BottomAppBar
This commit also fixes the style for Dark Theme and adds the BottomAppBar demo to the catalog.

PiperOrigin-RevId: 186467179
2018-03-12 12:44:52 -04:00
afohrman
524e475e05 Set bottom nav style to the .Colored style variant for the dark theme.
PiperOrigin-RevId: 186357811
2018-03-12 12:44:19 -04:00
dniz
a5848c569e Format default material component styles
PiperOrigin-RevId: 185673907
2018-03-12 12:40:21 -04:00
Material Design Team
c9e56c9959 Create a new default style for NavigationView and move the existing Design style to new package.
PiperOrigin-RevId: 185658659
2018-03-12 12:39:42 -04:00
gauthams
df0abdb151 Automated g4 rollback of changelist 184658131
PiperOrigin-RevId: 184894533
2018-03-12 12:37:05 -04:00
markwei
62d6866220 Change tonal palette representation in theme from color array, to separate color attributes.
Separate attributes allows components to directly reference a color in the tonal palette in its resources.
Otherwise, the implications of these attributes is the same as the previous color arrays.

PiperOrigin-RevId: 184764971
2018-03-12 12:36:43 -04:00
Material Design Team
0534bfb96a Automated g4 rollback of changelist 184611618
PiperOrigin-RevId: 184658131
2018-03-12 12:35:05 -04:00
gauthams
f602bc975f Update button to support tinting and backwards compatibility with AppCompatButton
PiperOrigin-RevId: 184611618
2018-03-12 12:34:13 -04:00
gauthams
d1c2b6249b Add tabStyle theme attribute for tab layout style
PiperOrigin-RevId: 184359499
2018-03-12 12:32:38 -04:00
afohrman
2ee17ed2e5 Parent Theme.Design* with Theme.AppCompat instead of Theme.MaterialComponents.
Previously, Theme.Design inherited from Theme.MaterialComponents, which would have resulted in an automatic update to Theme.MaterialComponents. Now, users will have to opt in to Theme.MaterialComponents to get the new theme.

Also add in DesignTheme attributes that were deleted and attributes that were set in Theme.Design*.

PiperOrigin-RevId: 183716471
2018-03-02 14:58:01 -05:00
afohrman
e889e00bbe Add component style attr for bottom nav.
And set it to the default bottom nav style in the theme.

PiperOrigin-RevId: 183440985
2018-03-02 14:57:15 -05:00
travisc
74a2daf258 Add custom view inflater class for Material Components.
As of this commit, this is empty, but will be filled out with the various
widget classes in future commits.

PiperOrigin-RevId: 183425311
2018-03-02 14:54:45 -05:00
afohrman
cbc5d7fb0e Create component style attribute for text input.
And assign it to the right defaults in the theme.

Since text fields is in the widget package, . I put the attr declaration in widget/../attrs.xml right on top of the theme. If text fields is ever pulled into its own package, this attribute will be moved along with the rest of TextInputLayout's attributes.

PiperOrigin-RevId: 183125979
2018-01-25 18:24:26 -05:00
dcarlsson
d2736442f2 Update how MaterialCardView sets the card background.
Provide a materialCardView theme attribute to fix conflicts with the existing cardView
theme attribute.

PiperOrigin-RevId: 183031703
2018-01-25 18:22:32 -05:00
travisc
04bf0a7c42 Move themes into theme package, invert dependency structures around components.
Previously [most of] the components were either in `widget` or depended on it,
and all theme-related resources (attributes, styles, etc.) were placed there.
This structure doesn't really work for our goals, and makes it harder to split
components by functional area. In this commit, I move all the theme definitions
to `theme` (as well as `dialog` and `bottomsheet` since they also have relevant
themes, and splitting them into separate packages is the only way to make the
dep tree non-circular). Component packages declare their own theme attributes
(e.g. `chip` declares all the theme attributes necessary for chips), as well as
styles, colors, dimens, drawables, etc.

This move isn't entirely complete in this commit, but it is enough to get
things building with this setup. I'll move the rest of the components' resources
in follow-up commits.

PiperOrigin-RevId: 182611275
2018-01-25 18:12:31 -05:00