Skip to content

Commit

Permalink
[Tabs] Integrated divider token output into the background drawables.
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 559477915
  • Loading branch information
pekingme authored and imhappi committed Aug 23, 2023
1 parent a782e7a commit 6b627c2
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
Expand Up @@ -19,12 +19,11 @@
<item>
<shape
android:shape="rectangle">
<!-- TODO(b/272585197) Manually map this based on the token mapping of divider. -->
<solid android:color="?attr/colorSurfaceVariant"/>
<solid android:color="@macro/m3_comp_divider_color"/>
</shape>
</item>
<!-- ..., then draws a rectangle with the container color to cover the area not for the divider. -->
<item android:bottom="1dp">
<item android:bottom="@dimen/m3_comp_divider_thickness">
<shape
android:shape="rectangle">
<solid android:color="@macro/m3_comp_primary_navigation_tab_container_color"/>
Expand Down
Expand Up @@ -26,9 +26,8 @@
<item
android:gravity="bottom">
<shape>
<size android:height="1dp" />
<!-- TODO(b/272585197) Manually map this based on the token mapping of divider. -->
<solid android:color="?attr/colorSurfaceVariant" />
<size android:height="@dimen/m3_comp_divider_thickness" />
<solid android:color="@macro/m3_comp_divider_color" />
</shape>
</item>
</layer-list>

0 comments on commit 6b627c2

Please sign in to comment.