| // Copyright 2022 The Chromium Authors. All rights reserved. |
| // Use of this source code is governed by a BSD-style license that can be |
| // found in the LICENSE file. |
| |
| #ifndef ASH_STYLE_ASH_COLOR_ID_H_ |
| #define ASH_STYLE_ASH_COLOR_ID_H_ |
| |
| #include "ui/chromeos/styles/cros_tokens_color_mappings.h" |
| #include "ui/color/color_id.h" |
| |
| namespace ash { |
| |
| // clang-format off |
| #define ASH_COLOR_IDS \ |
| /* Shield and Base layer colors. */ \ |
| E_CPONLY(kColorAshShieldAndBase20) \ |
| E_CPONLY(kColorAshShieldAndBase40) \ |
| E_CPONLY(kColorAshShieldAndBase60) \ |
| E_CPONLY(kColorAshShieldAndBase80) \ |
| E_CPONLY(kColorAshInvertedShieldAndBase80) \ |
| E_CPONLY(kColorAshShieldAndBase90) \ |
| E_CPONLY(kColorAshShieldAndBase95) \ |
| E_CPONLY(kColorAshShieldAndBaseOpaque) \ |
| /* Controls Layer colors. */ \ |
| E_CPONLY(kColorAshHairlineBorderColor) \ |
| E_CPONLY(kColorAshControlBackgroundColorActive) \ |
| E_CPONLY(kColorAshControlBackgroundColorAlert) \ |
| E_CPONLY(kColorAshControlBackgroundColorInactive) \ |
| E_CPONLY(kColorAshControlBackgroundColorWarning) \ |
| E_CPONLY(kColorAshControlBackgroundColorPositive) \ |
| E_CPONLY(kColorAshFocusAuraColor) \ |
| /* Content layer colors. */ \ |
| E_CPONLY(kColorAshScrollBarColor) \ |
| E_CPONLY(kColorAshSeparatorColor) \ |
| E_CPONLY(kColorAshTextColorPrimary) \ |
| /* Inverted `kColorAshTextColorPrimary` on current color mode. */ \ |
| E_CPONLY(kColorAshInvertedTextColorPrimary) \ |
| E_CPONLY(kColorAshTextColorSecondary) \ |
| E_CPONLY(kColorAshTextColorAlert) \ |
| E_CPONLY(kColorAshTextColorWarning) \ |
| E_CPONLY(kColorAshTextColorPositive) \ |
| E_CPONLY(kColorAshTextColorURL) \ |
| E_CPONLY(kColorAshIconColorPrimary) \ |
| E_CPONLY(kColorAshIconColorSecondary) \ |
| E_CPONLY(kColorAshIconColorAlert) \ |
| E_CPONLY(kColorAshIconColorWarning) \ |
| E_CPONLY(kColorAshIconColorPositive) \ |
| /* Color for prominent icon, e.g, "Add connection" icon button inside |
| VPN detailed view. */ \ |
| E_CPONLY(kColorAshIconColorProminent) \ |
| /* Background for kColorAshIconColorSecondary. */ \ |
| E_CPONLY(kColorAshIconColorSecondaryBackground) \ |
| /* The default color for button labels. */ \ |
| E_CPONLY(kColorAshButtonLabelColor) \ |
| /* Inverted `kColorAshButtonLabelColor` on current color mode. */ \ |
| E_CPONLY(kColorAshInvertedButtonLabelColor) \ |
| E_CPONLY(kColorAshTextColorSuggestion) \ |
| E_CPONLY(kColorAshButtonLabelColorPrimary) \ |
| /* Color for blue button labels, e.g, 'Retry' button of the system toast. */ \ |
| E_CPONLY(kColorAshButtonLabelColorBlue) \ |
| E_CPONLY(kColorAshButtonIconColor) \ |
| E_CPONLY(kColorAshButtonIconColorPrimary) \ |
| E_CPONLY(kColorAshAppStateIndicatorColor) \ |
| E_CPONLY(kColorAshAppStateIndicatorColorInactive) \ |
| /* Color for the shelf drag handle in tablet mode. */ \ |
| E_CPONLY(kColorAshShelfHandleColor) \ |
| E_CPONLY(kColorAshSliderColorActive) \ |
| E_CPONLY(kColorAshSliderColorInactive) \ |
| E_CPONLY(kColorAshRadioColorActive) \ |
| E_CPONLY(kColorAshRadioColorInactive) \ |
| /* Colors for toggle button. */ \ |
| E_CPONLY(kColorAshSwitchKnobColorActive) \ |
| E_CPONLY(kColorAshSwitchKnobColorInactive) \ |
| E_CPONLY(kColorAshSwitchTrackColorActive) \ |
| E_CPONLY(kColorAshSwitchTrackColorInactive) \ |
| /* Color for current active desk's border. */ \ |
| E_CPONLY(kColorAshCurrentDeskColor) \ |
| /* Color for the battery's badge (bolt, unreliable, X). */ \ |
| E_CPONLY(kColorAshBatteryBadgeColor) \ |
| /* Colors for the switch access's back button. */ \ |
| E_CPONLY(kColorAshSwitchAccessInnerStrokeColor) \ |
| E_CPONLY(kColorAshSwitchAccessOuterStrokeColor) \ |
| /* Colors for the media controls. */ \ |
| E_CPONLY(kColorAshProgressBarColorForeground) \ |
| E_CPONLY(kColorAshProgressBarColorBackground) \ |
| /* Color used to highlight a hovered view. */ \ |
| E_CPONLY(kColorAshHighlightColorHover) \ |
| /* Color for the background of battery system info view. */ \ |
| E_CPONLY(kColorAshBatterySystemInfoBackgroundColor) \ |
| /* Color for the battery icon in the system info view. */ \ |
| E_CPONLY(kColorAshBatterySystemInfoIconColor) \ |
| /* Color of the capture region in the capture session. */ \ |
| E_CPONLY(kColorAshCaptureRegionColor) \ |
| E_CPONLY(kColorAshInkDrop) \ |
| E_CPONLY(kColorAshInkDropOpaqueColor) \ |
| /* Colors for Google Assistant */ \ |
| E_CPONLY(kColorAshAssistantGreetingEnabled) |
| |
| #include "ui/color/color_id_macros.inc" |
| |
| enum AshColorIds : ui::ColorId { |
| kAshColorsStart = cros_tokens::kCrosSysColorsEnd, |
| |
| ASH_COLOR_IDS |
| |
| kAshColorsEnd, |
| }; |
| |
| // Note that this second include is not redundant. The second inclusion of the |
| // .inc file serves to undefine the macros the first inclusion defined. |
| #include "ui/color/color_id_macros.inc" |
| |
| // clang-format on |
| |
| } // namespace ash |
| |
| #endif // ASH_STYLE_ASH_COLOR_ID_H_ |