Skip to content

Commit

Permalink
[Token][Switch] Added token generated resources.
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 449904422
  • Loading branch information
pekingme authored and afohrman committed May 23, 2022
1 parent 4ded01e commit 6512092
Showing 1 changed file with 97 additions and 0 deletions.
@@ -0,0 +1,97 @@
<?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.95 -->

<resources>
<!-- Generated from token set (md.comp.switch) in default context. -->
<!-- Icon -->
<macro name="m3_comp_switch_selected_icon_color">?attr/colorOnPrimaryContainer</macro>
<macro name="m3_comp_switch_unselected_icon_color">?attr/colorSurfaceVariant</macro>
<!-- Track -->
<dimen name="m3_comp_switch_track_height">32dp</dimen>
<dimen name="m3_comp_switch_track_width">52dp</dimen>
<style name="ShapeAppearance.M3.Comp.Switch.Track.Shape" parent="ShapeAppearance.M3.Sys.Shape.Corner.Full"/>
<macro name="m3_comp_switch_selected_track_color">?attr/colorPrimary</macro>
<macro name="m3_comp_switch_unselected_track_color">?attr/colorSurfaceVariant</macro>
<!-- Handle -->
<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>
<!-- State layer -->
<style name="ShapeAppearance.M3.Comp.Switch.StateLayer.Shape" parent="ShapeAppearance.M3.Sys.Shape.Corner.Full"/>
<!-- Icon -->
<macro name="m3_comp_switch_disabled_selected_icon_color">?attr/colorOnSurface</macro>
<item name="m3_comp_switch_disabled_selected_icon_opacity" format="float" type="dimen">0.38</item>
<macro name="m3_comp_switch_disabled_unselected_icon_color">?attr/colorSurfaceVariant</macro>
<item name="m3_comp_switch_disabled_unselected_icon_opacity" format="float" type="dimen">0.38</item>
<!-- Track -->
<item name="m3_comp_switch_disabled_track_opacity" format="float" type="dimen">0.12</item>
<macro name="m3_comp_switch_disabled_selected_track_color">?attr/colorOnSurface</macro>
<macro name="m3_comp_switch_disabled_unselected_track_color">?attr/colorSurfaceVariant</macro>
<macro name="m3_comp_switch_disabled_unselected_track_outline_color">?attr/colorOnSurface</macro>
<!-- Handle -->
<item name="m3_comp_switch_disabled_unselected_handle_opacity" format="float" type="dimen">0.38</item>
<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>
<!-- 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>
<!-- Track -->
<macro name="m3_comp_switch_selected_hover_track_color">?attr/colorPrimary</macro>
<macro name="m3_comp_switch_selected_hover_state_layer_color">?attr/colorPrimary</macro>
<dimen name="m3_comp_switch_selected_hover_state_layer_opacity">@dimen/m3_sys_state_hover_state_layer_opacity</dimen>
<macro name="m3_comp_switch_unselected_hover_track_color">?attr/colorSurfaceVariant</macro>
<macro name="m3_comp_switch_unselected_hover_track_outline_color">?attr/colorOutline</macro>
<macro name="m3_comp_switch_unselected_hover_state_layer_color">?attr/colorOnSurface</macro>
<dimen name="m3_comp_switch_unselected_hover_state_layer_opacity">@dimen/m3_sys_state_hover_state_layer_opacity</dimen>
<!-- Handle -->
<macro name="m3_comp_switch_selected_hover_handle_color">?attr/colorPrimaryContainer</macro>
<macro name="m3_comp_switch_unselected_hover_handle_color">?attr/colorOnSurfaceVariant</macro>
<!-- Icon -->
<macro name="m3_comp_switch_selected_focus_icon_color">?attr/colorOnPrimaryContainer</macro>
<macro name="m3_comp_switch_unselected_focus_icon_color">?attr/colorSurfaceVariant</macro>
<!-- Track -->
<macro name="m3_comp_switch_selected_focus_track_color">?attr/colorPrimary</macro>
<macro name="m3_comp_switch_selected_focus_state_layer_color">?attr/colorPrimary</macro>
<dimen name="m3_comp_switch_selected_focus_state_layer_opacity">@dimen/m3_sys_state_focus_state_layer_opacity</dimen>
<macro name="m3_comp_switch_unselected_focus_track_color">?attr/colorSurfaceVariant</macro>
<macro name="m3_comp_switch_unselected_focus_track_outline_color">?attr/colorOutline</macro>
<macro name="m3_comp_switch_unselected_focus_state_layer_color">?attr/colorOnSurface</macro>
<dimen name="m3_comp_switch_unselected_focus_state_layer_opacity">@dimen/m3_sys_state_focus_state_layer_opacity</dimen>
<!-- Handle -->
<macro name="m3_comp_switch_selected_focus_handle_color">?attr/colorPrimaryContainer</macro>
<macro name="m3_comp_switch_unselected_focus_handle_color">?attr/colorOnSurfaceVariant</macro>
<!-- Icon -->
<macro name="m3_comp_switch_selected_pressed_icon_color">?attr/colorOnPrimaryContainer</macro>
<macro name="m3_comp_switch_unselected_pressed_icon_color">?attr/colorSurfaceVariant</macro>
<!-- Track -->
<macro name="m3_comp_switch_selected_pressed_track_color">?attr/colorPrimary</macro>
<macro name="m3_comp_switch_selected_pressed_state_layer_color">?attr/colorPrimary</macro>
<dimen name="m3_comp_switch_selected_pressed_state_layer_opacity">@dimen/m3_sys_state_pressed_state_layer_opacity</dimen>
<macro name="m3_comp_switch_unselected_pressed_track_color">?attr/colorSurfaceVariant</macro>
<macro name="m3_comp_switch_unselected_pressed_track_outline_color">?attr/colorOutline</macro>
<macro name="m3_comp_switch_unselected_pressed_state_layer_color">?attr/colorOnSurface</macro>
<dimen name="m3_comp_switch_unselected_pressed_state_layer_opacity">@dimen/m3_sys_state_pressed_state_layer_opacity</dimen>
<!-- Handle -->
<macro name="m3_comp_switch_selected_pressed_handle_color">?attr/colorPrimaryContainer</macro>
<macro name="m3_comp_switch_unselected_pressed_handle_color">?attr/colorOnSurfaceVariant</macro>
</resources>

0 comments on commit 6512092

Please sign in to comment.