| // Copyright 2020 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_HUD_DISPLAY_HUD_CONSTANTS_H_ |
| #define ASH_HUD_DISPLAY_HUD_CONSTANTS_H_ |
| |
| #include "third_party/skia/include/core/SkColor.h" |
| |
| namespace ash { |
| namespace hud_display { |
| |
| constexpr SkAlpha kHUDAlpha = 204; // = 0.8 * 255 |
| |
| // Use light orange color. |
| constexpr SkColor kHUDDefaultColor = |
| SkColorSetARGB(kHUDAlpha, 0xFF, 0xB2, 0x66); |
| |
| constexpr SkColor kHUDBackground = SkColorSetARGB(kHUDAlpha, 17, 17, 17); |
| constexpr SkColor kHUDLegendBackground = kHUDBackground; |
| constexpr SkColor kHUDDisabledButtonColor = |
| SkColorSetA(kHUDDefaultColor, 0xFF * 0.5); |
| |
| // Radius of rounded corners for tabs. |
| // Must be be divisible by 3 to make kTabOverlayWidth integer. |
| constexpr int kTabOverlayCornerRadius = 9; |
| |
| // Border around settings icon in the settings button. |
| constexpr int kSettingsIconBorder = 5; |
| |
| // Settings button icon size. |
| constexpr int kHUDSettingsIconSize = 18; |
| |
| // Visible border inside the HUDDisplayView rectangle around contents. |
| // HUDDisplayView does not use insets itself. Children substitute this inset |
| // where needed. |
| constexpr int kHUDInset = 5; |
| |
| // Defines both the pixel width of the graphs and the amount of data stored |
| // in each graph ring buffer. |
| static constexpr size_t kDefaultGraphWidth = 190; |
| |
| // Grid takes 1 pixel around, inset graph. |
| constexpr int kGridLineWidth = 1; |
| |
| // HUD display modes. |
| enum class DisplayMode { |
| CPU_DISPLAY = |
| 1, // First value should be different from default Views::ID = 0. |
| MEMORY_DISPLAY, |
| FPS_DISPLAY, |
| }; |
| |
| } // namespace hud_display |
| } // namespace ash |
| |
| #endif // ASH_HUD_DISPLAY_HUD_CONSTANTS_H_ |