-
Notifications
You must be signed in to change notification settings - Fork 3.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[M3][Color] Introduce U color tokens
PiperOrigin-RevId: 574897222
- Loading branch information
Showing
9 changed files
with
167 additions
and
200 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
28 changes: 28 additions & 0 deletions
28
lib/java/com/google/android/material/color/res/values-v34/colors.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
<?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. | ||
--> | ||
|
||
<resources> | ||
<!-- Dynamic color resources - Error, overrides in v34 to system resources --> | ||
<color name="material_dynamic_color_light_error">@color/m3_sys_color_dynamic_light_error</color> | ||
<color name="material_dynamic_color_light_on_error">@color/m3_sys_color_dynamic_light_on_error</color> | ||
<color name="material_dynamic_color_light_error_container">@color/m3_sys_color_dynamic_light_error_container</color> | ||
<color name="material_dynamic_color_light_on_error_container">@color/m3_sys_color_dynamic_light_on_error_container</color> | ||
<color name="material_dynamic_color_dark_error">@color/m3_sys_color_dynamic_dark_error</color> | ||
<color name="material_dynamic_color_dark_on_error">@color/m3_sys_color_dynamic_dark_on_error</color> | ||
<color name="material_dynamic_color_dark_error_container">@color/m3_sys_color_dynamic_dark_error_container</color> | ||
<color name="material_dynamic_color_dark_on_error_container">@color/m3_sys_color_dynamic_dark_on_error_container</color> | ||
</resources> |
120 changes: 120 additions & 0 deletions
120
lib/java/com/google/android/material/color/res/values-v34/tokens.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,120 @@ | ||
<?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. | ||
--> | ||
<!-- AUTOGENERATED FILE. DO NOT MODIFY. --> | ||
<!-- Version: v0.175 --> | ||
|
||
<resources> | ||
|
||
<!-- Generated from token set (md.sys.color) in context (theme=dark, platform=android, audience=3p, scheme=dynamic). --> | ||
<!-- Primary colors --> | ||
<color name="m3_sys_color_dynamic_dark_primary">@android:color/system_primary_dark</color> | ||
<color name="m3_sys_color_dynamic_dark_primary_container">@android:color/system_primary_container_dark</color> | ||
<color name="m3_sys_color_dynamic_dark_on_primary">@android:color/system_on_primary_dark</color> | ||
<color name="m3_sys_color_dynamic_dark_on_primary_container">@android:color/system_on_primary_container_dark</color> | ||
<color name="m3_sys_color_dynamic_dark_inverse_primary">@android:color/system_primary_light</color> | ||
<!-- Secondary colors --> | ||
<color name="m3_sys_color_dynamic_dark_secondary">@android:color/system_secondary_dark</color> | ||
<color name="m3_sys_color_dynamic_dark_secondary_container">@android:color/system_secondary_container_dark</color> | ||
<color name="m3_sys_color_dynamic_dark_on_secondary">@android:color/system_on_secondary_dark</color> | ||
<color name="m3_sys_color_dynamic_dark_on_secondary_container">@android:color/system_on_secondary_container_dark</color> | ||
<!-- Tertiary colors --> | ||
<color name="m3_sys_color_dynamic_dark_tertiary">@android:color/system_tertiary_dark</color> | ||
<color name="m3_sys_color_dynamic_dark_tertiary_container">@android:color/system_tertiary_container_dark</color> | ||
<color name="m3_sys_color_dynamic_dark_on_tertiary">@android:color/system_on_tertiary_dark</color> | ||
<color name="m3_sys_color_dynamic_dark_on_tertiary_container">@android:color/system_on_tertiary_container_dark</color> | ||
<!-- Surface colors --> | ||
<color name="m3_sys_color_dynamic_dark_surface_dim">@android:color/system_surface_dim_dark</color> | ||
<color name="m3_sys_color_dynamic_dark_surface_bright">@android:color/system_surface_bright_dark</color> | ||
<color name="m3_sys_color_dynamic_dark_surface_container">@android:color/system_surface_container_dark</color> | ||
<color name="m3_sys_color_dynamic_dark_surface_container_low">@android:color/system_surface_container_low_dark</color> | ||
<color name="m3_sys_color_dynamic_dark_surface_container_high">@android:color/system_surface_container_high_dark</color> | ||
<color name="m3_sys_color_dynamic_dark_surface_container_lowest">@android:color/system_surface_container_lowest_dark</color> | ||
<color name="m3_sys_color_dynamic_dark_surface_container_highest">@android:color/system_surface_container_highest_dark</color> | ||
<color name="m3_sys_color_dynamic_dark_surface">@android:color/system_surface_dark</color> | ||
<color name="m3_sys_color_dynamic_dark_surface_variant">@android:color/system_surface_variant_dark</color> | ||
<color name="m3_sys_color_dynamic_dark_on_surface">@android:color/system_on_surface_dark</color> | ||
<color name="m3_sys_color_dynamic_dark_on_surface_variant">@android:color/system_on_surface_variant_dark</color> | ||
<color name="m3_sys_color_dynamic_dark_inverse_surface">@android:color/system_surface_light</color> | ||
<color name="m3_sys_color_dynamic_dark_inverse_on_surface">@android:color/system_on_surface_light</color> | ||
<!-- Background colors --> | ||
<color name="m3_sys_color_dynamic_dark_background">@android:color/system_background_dark</color> | ||
<color name="m3_sys_color_dynamic_dark_on_background">@android:color/system_on_background_dark</color> | ||
<!-- Hairline colors --> | ||
<color name="m3_sys_color_dynamic_dark_outline">@android:color/system_outline_dark</color> | ||
<color name="m3_sys_color_dynamic_dark_outline_variant">@android:color/system_outline_variant_dark</color> | ||
<!-- Error colors --> | ||
<color name="m3_sys_color_dynamic_dark_error">@android:color/system_error_dark</color> | ||
<color name="m3_sys_color_dynamic_dark_error_container">@android:color/system_error_container_dark</color> | ||
<color name="m3_sys_color_dynamic_dark_on_error">@android:color/system_on_error_dark</color> | ||
<color name="m3_sys_color_dynamic_dark_on_error_container">@android:color/system_on_error_container_dark</color> | ||
|
||
<!-- Generated from token set (md.sys.color) in context (theme=light, platform=android, audience=3p, scheme=dynamic). --> | ||
<!-- Primary colors --> | ||
<color name="m3_sys_color_dynamic_primary_fixed">@android:color/system_primary_fixed</color> | ||
<color name="m3_sys_color_dynamic_on_primary_fixed">@android:color/system_on_primary_fixed</color> | ||
<color name="m3_sys_color_dynamic_primary_fixed_dim">@android:color/system_primary_fixed_dim</color> | ||
<color name="m3_sys_color_dynamic_on_primary_fixed_variant">@android:color/system_on_primary_fixed_variant</color> | ||
<color name="m3_sys_color_dynamic_light_primary">@android:color/system_primary_light</color> | ||
<color name="m3_sys_color_dynamic_light_primary_container">@android:color/system_primary_container_light</color> | ||
<color name="m3_sys_color_dynamic_light_on_primary">@android:color/system_on_primary_light</color> | ||
<color name="m3_sys_color_dynamic_light_on_primary_container">@android:color/system_on_primary_container_light</color> | ||
<color name="m3_sys_color_dynamic_light_inverse_primary">@android:color/system_primary_dark</color> | ||
<!-- Secondary colors --> | ||
<color name="m3_sys_color_dynamic_secondary_fixed">@android:color/system_secondary_fixed</color> | ||
<color name="m3_sys_color_dynamic_on_secondary_fixed">@android:color/system_on_secondary_fixed</color> | ||
<color name="m3_sys_color_dynamic_secondary_fixed_dim">@android:color/system_secondary_fixed_dim</color> | ||
<color name="m3_sys_color_dynamic_on_secondary_fixed_variant">@android:color/system_on_secondary_fixed_variant</color> | ||
<color name="m3_sys_color_dynamic_light_secondary">@android:color/system_secondary_light</color> | ||
<color name="m3_sys_color_dynamic_light_secondary_container">@android:color/system_secondary_container_light</color> | ||
<color name="m3_sys_color_dynamic_light_on_secondary">@android:color/system_on_secondary_light</color> | ||
<color name="m3_sys_color_dynamic_light_on_secondary_container">@android:color/system_on_secondary_container_light</color> | ||
<!-- Tertiary colors --> | ||
<color name="m3_sys_color_dynamic_tertiary_fixed">@android:color/system_tertiary_fixed</color> | ||
<color name="m3_sys_color_dynamic_on_tertiary_fixed">@android:color/system_on_tertiary_fixed</color> | ||
<color name="m3_sys_color_dynamic_tertiary_fixed_dim">@android:color/system_tertiary_fixed_dim</color> | ||
<color name="m3_sys_color_dynamic_on_tertiary_fixed_variant">@android:color/system_on_tertiary_fixed_variant</color> | ||
<color name="m3_sys_color_dynamic_light_tertiary">@android:color/system_tertiary_light</color> | ||
<color name="m3_sys_color_dynamic_light_tertiary_container">@android:color/system_tertiary_container_light</color> | ||
<color name="m3_sys_color_dynamic_light_on_tertiary">@android:color/system_on_tertiary_light</color> | ||
<color name="m3_sys_color_dynamic_light_on_tertiary_container">@android:color/system_on_tertiary_container_light</color> | ||
<!-- Surface colors --> | ||
<color name="m3_sys_color_dynamic_light_surface_dim">@android:color/system_surface_dim_light</color> | ||
<color name="m3_sys_color_dynamic_light_surface_bright">@android:color/system_surface_bright_light</color> | ||
<color name="m3_sys_color_dynamic_light_surface_container">@android:color/system_surface_container_light</color> | ||
<color name="m3_sys_color_dynamic_light_surface_container_low">@android:color/system_surface_container_low_light</color> | ||
<color name="m3_sys_color_dynamic_light_surface_container_high">@android:color/system_surface_container_high_light</color> | ||
<color name="m3_sys_color_dynamic_light_surface_container_lowest">@android:color/system_surface_container_lowest_light</color> | ||
<color name="m3_sys_color_dynamic_light_surface_container_highest">@android:color/system_surface_container_highest_light</color> | ||
<color name="m3_sys_color_dynamic_light_surface">@android:color/system_surface_light</color> | ||
<color name="m3_sys_color_dynamic_light_surface_variant">@android:color/system_surface_variant_light</color> | ||
<color name="m3_sys_color_dynamic_light_on_surface">@android:color/system_on_surface_light</color> | ||
<color name="m3_sys_color_dynamic_light_on_surface_variant">@android:color/system_on_surface_variant_light</color> | ||
<color name="m3_sys_color_dynamic_light_inverse_surface">@android:color/system_surface_dark</color> | ||
<color name="m3_sys_color_dynamic_light_inverse_on_surface">@android:color/system_on_surface_dark</color> | ||
<!-- Background colors --> | ||
<color name="m3_sys_color_dynamic_light_background">@android:color/system_background_light</color> | ||
<color name="m3_sys_color_dynamic_light_on_background">@android:color/system_on_background_light</color> | ||
<!-- Hairline colors --> | ||
<color name="m3_sys_color_dynamic_light_outline">@android:color/system_outline_light</color> | ||
<color name="m3_sys_color_dynamic_light_outline_variant">@android:color/system_outline_variant_light</color> | ||
<!-- Error colors --> | ||
<color name="m3_sys_color_dynamic_light_error">@android:color/system_error_light</color> | ||
<color name="m3_sys_color_dynamic_light_error_container">@android:color/system_error_container_light</color> | ||
<color name="m3_sys_color_dynamic_light_on_error">@android:color/system_on_error_light</color> | ||
<color name="m3_sys_color_dynamic_light_on_error_container">@android:color/system_on_error_container_light</color> | ||
|
||
</resources> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.