-
Notifications
You must be signed in to change notification settings - Fork 3.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Tokens][M3][Chip] Integrate Chip component tokens to Chip styles in M3.
PiperOrigin-RevId: 485965681
- Loading branch information
1 parent
276c117
commit cb65cc6
Showing
2 changed files
with
99 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
71 changes: 71 additions & 0 deletions
71
lib/java/com/google/android/material/chip/res/values/tokens.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,71 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<!-- | ||
~ Copyright (C) 2022 The Android Open Source Project | ||
~ | ||
~ Licensed under the Apache License, Version 2.0 (the "License"); | ||
~ you may not use this file except in compliance with the License. | ||
~ You may obtain a copy of the License at | ||
~ | ||
~ http://www.apache.org/licenses/LICENSE-2.0 | ||
~ | ||
~ Unless required by applicable law or agreed to in writing, software | ||
~ distributed under the License is distributed on an "AS IS" BASIS, | ||
~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
~ See the License for the specific language governing permissions and | ||
~ limitations under the License. | ||
--> | ||
<!-- AUTOGENERATED FILE. DO NOT MODIFY. --> | ||
<!-- Version: v0.126 --> | ||
|
||
<resources> | ||
<!-- Generated from token set (md.comp.input-chip) in default context. --> | ||
<!-- Enabled - Avatar --> | ||
<dimen name="m3_comp_input_chip_with_avatar_avatar_size">24dp</dimen> | ||
<!-- Enabled - Container --> | ||
<macro name="m3_comp_input_chip_container_shape">?attr/shapeAppearanceCornerSmall</macro> | ||
<dimen name="m3_comp_input_chip_container_height">32dp</dimen> | ||
<dimen name="m3_comp_input_chip_container_elevation">@dimen/m3_sys_elevation_level0</dimen> | ||
<dimen name="m3_comp_input_chip_unselected_outline_width">1dp</dimen> | ||
<!-- Enabled - Label text --> | ||
<macro name="m3_comp_input_chip_label_text_type">?attr/textAppearanceLabelLarge</macro> | ||
<!-- Enabled - Leading icon --> | ||
<dimen name="m3_comp_input_chip_with_leading_icon_leading_icon_size">18dp</dimen> | ||
|
||
<!-- Generated from token set (md.comp.suggestion-chip) in default context. --> | ||
<!-- Enabled - Container --> | ||
<macro name="m3_comp_suggestion_chip_container_shape">?attr/shapeAppearanceCornerSmall</macro> | ||
<dimen name="m3_comp_suggestion_chip_with_leading_icon_leading_icon_size">18dp</dimen> | ||
<dimen name="m3_comp_suggestion_chip_container_height">32dp</dimen> | ||
<dimen name="m3_comp_suggestion_chip_flat_container_elevation">@dimen/m3_sys_elevation_level0</dimen> | ||
<dimen name="m3_comp_suggestion_chip_flat_outline_width">1dp</dimen> | ||
<dimen name="m3_comp_suggestion_chip_elevated_container_elevation">@dimen/m3_sys_elevation_level1</dimen> | ||
<!-- Ignore (md.comp.suggestion-chip.elevated.container.shadow-color) due to no theme attribute for (md.sys.color.shadow). --> | ||
<!-- Enabled - Label text --> | ||
<macro name="m3_comp_suggestion_chip_label_text_type">?attr/textAppearanceLabelLarge</macro> | ||
|
||
<!-- Generated from token set (md.comp.assist-chip) in default context. --> | ||
<!-- Enabled - Container --> | ||
<macro name="m3_comp_assist_chip_container_shape">?attr/shapeAppearanceCornerSmall</macro> | ||
<dimen name="m3_comp_assist_chip_container_height">32dp</dimen> | ||
<dimen name="m3_comp_assist_chip_flat_container_elevation">@dimen/m3_sys_elevation_level0</dimen> | ||
<dimen name="m3_comp_assist_chip_flat_outline_width">1dp</dimen> | ||
<dimen name="m3_comp_assist_chip_elevated_container_elevation">@dimen/m3_sys_elevation_level1</dimen> | ||
<!-- Ignore (md.comp.assist-chip.elevated.container.shadow-color) due to no theme attribute for (md.sys.color.shadow). --> | ||
<!-- Enabled - Label text --> | ||
<macro name="m3_comp_assist_chip_label_text_type">?attr/textAppearanceLabelLarge</macro> | ||
<!-- Enabled - Icon --> | ||
<dimen name="m3_comp_assist_chip_with_icon_icon_size">18dp</dimen> | ||
|
||
<!-- Generated from token set (md.comp.filter-chip) in default context. --> | ||
<!-- Enabled - Container --> | ||
<macro name="m3_comp_filter_chip_container_shape">?attr/shapeAppearanceCornerSmall</macro> | ||
<dimen name="m3_comp_filter_chip_container_height">32dp</dimen> | ||
<!-- Ignore (md.comp.filter-chip.container.shadow-color) due to no theme attribute for (md.sys.color.shadow). --> | ||
<dimen name="m3_comp_filter_chip_flat_container_elevation">@dimen/m3_sys_elevation_level0</dimen> | ||
<dimen name="m3_comp_filter_chip_flat_unselected_outline_width">1dp</dimen> | ||
<dimen name="m3_comp_filter_chip_elevated_container_elevation">@dimen/m3_sys_elevation_level1</dimen> | ||
<!-- Enabled - Label text --> | ||
<macro name="m3_comp_filter_chip_label_text_type">?attr/textAppearanceLabelLarge</macro> | ||
<!-- Enabled - Icon --> | ||
<dimen name="m3_comp_filter_chip_with_icon_icon_size">18dp</dimen> | ||
</resources> |