Skip to content

Commit

Permalink
[BottomSheet] Integrate tokens
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 525177708
  • Loading branch information
imhappi authored and drchen committed Apr 19, 2023
1 parent c8a0d47 commit 86cd9d7
Show file tree
Hide file tree
Showing 4 changed files with 46 additions and 1 deletion.
@@ -0,0 +1,20 @@
<?xml version="1.0" encoding="utf-8"?>
<!--
Copyright 2023 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.
-->
<selector
xmlns:android="http://schemas.android.com/apk/res/android">
<item android:color="@macro/m3_comp_sheet_bottom_docked_drag_handle_color"/>
</selector>
@@ -0,0 +1,23 @@
<?xml version="1.0" encoding="utf-8"?>
<!--
~ Copyright (C) 2023 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.
-->

<shape xmlns:android="http://schemas.android.com/apk/res/android"
android:shape="rectangle">
<size android:height="@dimen/m3_comp_sheet_bottom_docked_drag_handle_height" android:width="@dimen/m3_comp_sheet_bottom_docked_drag_handle_width" />
<corners android:radius="2dp" />
<solid android:color="@color/m3_bottom_sheet_drag_handle_color" />
</shape>
Expand Up @@ -95,7 +95,7 @@
<item name="android:minWidth">@dimen/mtrl_min_touch_target_size</item>
<item name="android:minHeight">@dimen/mtrl_min_touch_target_size</item>
<item name="android:paddingBottom">@dimen/m3_bottom_sheet_drag_handle_bottom_padding</item>
<item name="srcCompat">@drawable/mtrl_bottomsheet_drag_handle</item>
<item name="srcCompat">@drawable/m3_bottom_sheet_drag_handle</item>
<item name="tint">@macro/m3_comp_sheet_bottom_docked_drag_handle_color</item>
</style>
</resources>
Expand Up @@ -29,5 +29,7 @@
<macro name="m3_comp_sheet_bottom_docked_container_shape">?attr/shapeAppearanceCornerExtraLarge</macro>
<!-- Enabled - Drag handle -->
<macro name="m3_comp_sheet_bottom_docked_drag_handle_color">?attr/colorOnSurfaceVariant</macro>
<dimen name="m3_comp_sheet_bottom_docked_drag_handle_width">32dp</dimen>
<dimen name="m3_comp_sheet_bottom_docked_drag_handle_height">4dp</dimen>

</resources>

0 comments on commit 86cd9d7

Please sign in to comment.