Skip to content

Commit

Permalink
[Switch] Removed resources from deprecated tokens.
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 478539069
  • Loading branch information
pekingme committed Oct 3, 2022
1 parent 087da2f commit 112378d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -17,13 +17,13 @@
<selector xmlns:android="http://schemas.android.com/apk/res/android">
<!-- State Disabled, Unchecked -->
<item
android:alpha="@dimen/m3_comp_switch_disabled_handle_opacity"
android:alpha="@dimen/m3_comp_switch_disabled_unselected_handle_opacity"
android:color="@macro/m3_comp_switch_disabled_unselected_handle_color"
android:state_enabled="false" android:state_checked="false"/>

<!-- State Disabled, Checked -->
<item
android:alpha="@dimen/m3_comp_switch_disabled_handle_opacity"
android:alpha="@dimen/m3_comp_switch_disabled_selected_handle_opacity"
android:color="@macro/m3_comp_switch_disabled_selected_handle_color"
android:state_enabled="false" android:state_checked="true"/>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,6 @@
<style name="ShapeAppearance.M3.Comp.Switch.Handle.Shape" parent="ShapeAppearance.M3.Sys.Shape.Corner.Full"/>
<macro name="m3_comp_switch_selected_handle_color">?attr/colorOnPrimary</macro>
<macro name="m3_comp_switch_unselected_handle_color">?attr/colorOutline</macro>
<dimen name="m3_comp_switch_handle_elevation">@dimen/m3_sys_elevation_level1</dimen>
<!-- Enabled - State layer -->
<style name="ShapeAppearance.M3.Comp.Switch.StateLayer.Shape" parent="ShapeAppearance.M3.Sys.Shape.Corner.Full"/>
<!-- Disabled - Icon -->
Expand All @@ -51,8 +50,6 @@
<item name="m3_comp_switch_disabled_selected_handle_opacity" format="float" type="dimen">1</item>
<macro name="m3_comp_switch_disabled_selected_handle_color">?attr/colorSurface</macro>
<macro name="m3_comp_switch_disabled_unselected_handle_color">?attr/colorOnSurface</macro>
<item name="m3_comp_switch_disabled_handle_opacity" format="float" type="dimen">0.38</item>
<dimen name="m3_comp_switch_disabled_handle_elevation">@dimen/m3_sys_elevation_level0</dimen>
<!-- Hovered - Icon -->
<macro name="m3_comp_switch_selected_hover_icon_color">?attr/colorOnPrimaryContainer</macro>
<macro name="m3_comp_switch_unselected_hover_icon_color">?attr/colorSurfaceVariant</macro>
Expand Down

0 comments on commit 112378d

Please sign in to comment.