23 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
gauthams
8dbb9b24a2 Add snackbarButtonStyle attribute
PiperOrigin-RevId: 188410794
2018-03-12 12:57:07 -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
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
gauthams
85c2bf1479 Set tab style to .Colored style variant for the dark theme
PiperOrigin-RevId: 186501713
2018-03-12 12:48:09 -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
dniz
c31ef1f1d7 Update Gradle and Maven configurations
PiperOrigin-RevId: 183872033
2018-03-02 14:58:51 -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