Skip to content

Commit 6512092

Browse files
pekingmeafohrman
authored andcommitted
[Token][Switch] Added token generated resources.
PiperOrigin-RevId: 449904422
1 parent 4ded01e commit 6512092

File tree

1 file changed

+97
-0
lines changed
  • lib/java/com/google/android/material/materialswitch/res/values

1 file changed

+97
-0
lines changed
Lines changed: 97 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,97 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<!--
3+
~ Copyright (C) 2022 The Android Open Source Project
4+
~
5+
~ Licensed under the Apache License, Version 2.0 (the "License");
6+
~ you may not use this file except in compliance with the License.
7+
~ You may obtain a copy of the License at
8+
~
9+
~ http://www.apache.org/licenses/LICENSE-2.0
10+
~
11+
~ Unless required by applicable law or agreed to in writing, software
12+
~ distributed under the License is distributed on an "AS IS" BASIS,
13+
~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14+
~ See the License for the specific language governing permissions and
15+
~ limitations under the License.
16+
-->
17+
<!-- AUTOGENERATED FILE. DO NOT MODIFY. -->
18+
<!-- Version: v0.95 -->
19+
20+
<resources>
21+
<!-- Generated from token set (md.comp.switch) in default context. -->
22+
<!-- Icon -->
23+
<macro name="m3_comp_switch_selected_icon_color">?attr/colorOnPrimaryContainer</macro>
24+
<macro name="m3_comp_switch_unselected_icon_color">?attr/colorSurfaceVariant</macro>
25+
<!-- Track -->
26+
<dimen name="m3_comp_switch_track_height">32dp</dimen>
27+
<dimen name="m3_comp_switch_track_width">52dp</dimen>
28+
<style name="ShapeAppearance.M3.Comp.Switch.Track.Shape" parent="ShapeAppearance.M3.Sys.Shape.Corner.Full"/>
29+
<macro name="m3_comp_switch_selected_track_color">?attr/colorPrimary</macro>
30+
<macro name="m3_comp_switch_unselected_track_color">?attr/colorSurfaceVariant</macro>
31+
<!-- Handle -->
32+
<style name="ShapeAppearance.M3.Comp.Switch.Handle.Shape" parent="ShapeAppearance.M3.Sys.Shape.Corner.Full"/>
33+
<macro name="m3_comp_switch_selected_handle_color">?attr/colorOnPrimary</macro>
34+
<macro name="m3_comp_switch_unselected_handle_color">?attr/colorOutline</macro>
35+
<dimen name="m3_comp_switch_handle_elevation">@dimen/m3_sys_elevation_level1</dimen>
36+
<!-- State layer -->
37+
<style name="ShapeAppearance.M3.Comp.Switch.StateLayer.Shape" parent="ShapeAppearance.M3.Sys.Shape.Corner.Full"/>
38+
<!-- Icon -->
39+
<macro name="m3_comp_switch_disabled_selected_icon_color">?attr/colorOnSurface</macro>
40+
<item name="m3_comp_switch_disabled_selected_icon_opacity" format="float" type="dimen">0.38</item>
41+
<macro name="m3_comp_switch_disabled_unselected_icon_color">?attr/colorSurfaceVariant</macro>
42+
<item name="m3_comp_switch_disabled_unselected_icon_opacity" format="float" type="dimen">0.38</item>
43+
<!-- Track -->
44+
<item name="m3_comp_switch_disabled_track_opacity" format="float" type="dimen">0.12</item>
45+
<macro name="m3_comp_switch_disabled_selected_track_color">?attr/colorOnSurface</macro>
46+
<macro name="m3_comp_switch_disabled_unselected_track_color">?attr/colorSurfaceVariant</macro>
47+
<macro name="m3_comp_switch_disabled_unselected_track_outline_color">?attr/colorOnSurface</macro>
48+
<!-- Handle -->
49+
<item name="m3_comp_switch_disabled_unselected_handle_opacity" format="float" type="dimen">0.38</item>
50+
<item name="m3_comp_switch_disabled_selected_handle_opacity" format="float" type="dimen">1</item>
51+
<macro name="m3_comp_switch_disabled_selected_handle_color">?attr/colorSurface</macro>
52+
<macro name="m3_comp_switch_disabled_unselected_handle_color">?attr/colorOnSurface</macro>
53+
<item name="m3_comp_switch_disabled_handle_opacity" format="float" type="dimen">0.38</item>
54+
<dimen name="m3_comp_switch_disabled_handle_elevation">@dimen/m3_sys_elevation_level0</dimen>
55+
<!-- Icon -->
56+
<macro name="m3_comp_switch_selected_hover_icon_color">?attr/colorOnPrimaryContainer</macro>
57+
<macro name="m3_comp_switch_unselected_hover_icon_color">?attr/colorSurfaceVariant</macro>
58+
<!-- Track -->
59+
<macro name="m3_comp_switch_selected_hover_track_color">?attr/colorPrimary</macro>
60+
<macro name="m3_comp_switch_selected_hover_state_layer_color">?attr/colorPrimary</macro>
61+
<dimen name="m3_comp_switch_selected_hover_state_layer_opacity">@dimen/m3_sys_state_hover_state_layer_opacity</dimen>
62+
<macro name="m3_comp_switch_unselected_hover_track_color">?attr/colorSurfaceVariant</macro>
63+
<macro name="m3_comp_switch_unselected_hover_track_outline_color">?attr/colorOutline</macro>
64+
<macro name="m3_comp_switch_unselected_hover_state_layer_color">?attr/colorOnSurface</macro>
65+
<dimen name="m3_comp_switch_unselected_hover_state_layer_opacity">@dimen/m3_sys_state_hover_state_layer_opacity</dimen>
66+
<!-- Handle -->
67+
<macro name="m3_comp_switch_selected_hover_handle_color">?attr/colorPrimaryContainer</macro>
68+
<macro name="m3_comp_switch_unselected_hover_handle_color">?attr/colorOnSurfaceVariant</macro>
69+
<!-- Icon -->
70+
<macro name="m3_comp_switch_selected_focus_icon_color">?attr/colorOnPrimaryContainer</macro>
71+
<macro name="m3_comp_switch_unselected_focus_icon_color">?attr/colorSurfaceVariant</macro>
72+
<!-- Track -->
73+
<macro name="m3_comp_switch_selected_focus_track_color">?attr/colorPrimary</macro>
74+
<macro name="m3_comp_switch_selected_focus_state_layer_color">?attr/colorPrimary</macro>
75+
<dimen name="m3_comp_switch_selected_focus_state_layer_opacity">@dimen/m3_sys_state_focus_state_layer_opacity</dimen>
76+
<macro name="m3_comp_switch_unselected_focus_track_color">?attr/colorSurfaceVariant</macro>
77+
<macro name="m3_comp_switch_unselected_focus_track_outline_color">?attr/colorOutline</macro>
78+
<macro name="m3_comp_switch_unselected_focus_state_layer_color">?attr/colorOnSurface</macro>
79+
<dimen name="m3_comp_switch_unselected_focus_state_layer_opacity">@dimen/m3_sys_state_focus_state_layer_opacity</dimen>
80+
<!-- Handle -->
81+
<macro name="m3_comp_switch_selected_focus_handle_color">?attr/colorPrimaryContainer</macro>
82+
<macro name="m3_comp_switch_unselected_focus_handle_color">?attr/colorOnSurfaceVariant</macro>
83+
<!-- Icon -->
84+
<macro name="m3_comp_switch_selected_pressed_icon_color">?attr/colorOnPrimaryContainer</macro>
85+
<macro name="m3_comp_switch_unselected_pressed_icon_color">?attr/colorSurfaceVariant</macro>
86+
<!-- Track -->
87+
<macro name="m3_comp_switch_selected_pressed_track_color">?attr/colorPrimary</macro>
88+
<macro name="m3_comp_switch_selected_pressed_state_layer_color">?attr/colorPrimary</macro>
89+
<dimen name="m3_comp_switch_selected_pressed_state_layer_opacity">@dimen/m3_sys_state_pressed_state_layer_opacity</dimen>
90+
<macro name="m3_comp_switch_unselected_pressed_track_color">?attr/colorSurfaceVariant</macro>
91+
<macro name="m3_comp_switch_unselected_pressed_track_outline_color">?attr/colorOutline</macro>
92+
<macro name="m3_comp_switch_unselected_pressed_state_layer_color">?attr/colorOnSurface</macro>
93+
<dimen name="m3_comp_switch_unselected_pressed_state_layer_opacity">@dimen/m3_sys_state_pressed_state_layer_opacity</dimen>
94+
<!-- Handle -->
95+
<macro name="m3_comp_switch_selected_pressed_handle_color">?attr/colorPrimaryContainer</macro>
96+
<macro name="m3_comp_switch_unselected_pressed_handle_color">?attr/colorOnSurfaceVariant</macro>
97+
</resources>

0 commit comments

Comments
 (0)