Skip to content

Commit

Permalink
[Chip] Add theme overlays supported on API < 23
Browse files Browse the repository at this point in the history
Resolves #3245

GIT_ORIGIN_REV_ID=d1cb53cbd4d8ae8ae1fc97d4599c4d2fceea71a8
PiperOrigin-RevId: 511250546
  • Loading branch information
pubiqq authored and hunterstich committed Feb 22, 2023
1 parent 9458359 commit fd0c815
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 2 deletions.
@@ -0,0 +1,28 @@
<?xml version="1.0" encoding="utf-8"?>
<!--
~ Copyright (C) 2021 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.
-->
<resources>

<style name="ThemeOverlay.Material3.Chip" parent="">
<!-- To tint vector drawables used as leading icons -->
<item name="colorControlNormal">@color/m3_chip_text_color</item>
</style>

<style name="ThemeOverlay.Material3.Chip.Assist" parent="">
<!-- To tint vector drawables used as leading icons -->
<item name="colorControlNormal">@color/m3_assist_chip_icon_tint_color</item>
</style>
</resources>
Expand Up @@ -388,11 +388,11 @@

<style name="ThemeOverlay.Material3.Chip" parent="">
<!-- To tint vector drawables used as leading icons -->
<item name="colorControlNormal">@color/m3_chip_text_color</item>
<item name="colorControlNormal">?attr/colorOnSurfaceVariant</item>
</style>

<style name="ThemeOverlay.Material3.Chip.Assist" parent="">
<!-- To tint vector drawables used as leading icons -->
<item name="colorControlNormal">@color/m3_assist_chip_icon_tint_color</item>
<item name="colorControlNormal">?attr/colorPrimary</item>
</style>
</resources>

0 comments on commit fd0c815

Please sign in to comment.