blob: b52031d6c70525e1189b9bbd3eb2e47d1d1d7060 [file] [log] [blame]
// Copyright 2019 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.
import 'fake_flutter/dart_ui/dart_ui.dart';
import 'theme.dart';
/// This file holds color constants that are used throughout DevTools.
// TODO(kenzie): move colors from other pages to this file for consistency.
/// Mark: Timeline / CPU profiler.
///
/// Light mode is Light Blue 50 palette and Dark mode is Blue 50 palette.
/// https://material.io/design/color/the-color-system.html#tools-for-picking-colors.
const mainUiColor = ThemedColor(mainUiColorLight, mainUiColorDark);
const mainGpuColor = ThemedColor(mainGpuColorLight, mainGpuColorDark);
const mainUiColorLight = Color(0xFF81D4FA); // Light Blue 50 - 200
const mainGpuColorLight = Color(0xFF0288D1); // Light Blue 50 - 700
const mainUiColorSelectedLight = Color(0xFFD4D7DA); // Lighter grey.
const mainGpuColorSelectedLight = Color(0xFFB5B5B5); // Darker grey.
const mainUiColorDark = Color(0xFF9EBEF9); // Blue 200 Material Dark
const mainGpuColorDark = Color(0xFF1A73E8); // Blue 600 Material Dark
const mainUiColorSelectedDark = Colors.white;
const mainGpuColorSelectedDark = Color(0xFFC9C9C9); // Grey.
const Color selectedUiColor = ThemedColor(
mainUiColorSelectedLight,
mainUiColorSelectedDark,
);
const Color selectedGpuColor = ThemedColor(
mainGpuColorSelectedLight,
mainGpuColorSelectedDark,
);
// Light Blue 50: 200-400 (light mode) - see https://material.io/design/color/the-color-system.html#tools-for-picking-colors.
// Blue Material Dark: 200-400 (dark mode) - see https://standards.google/guidelines/google-material/color/dark-theme.html#style.
final uiColorPalette = [
const ThemedColor(mainUiColorLight, mainUiColorDark),
const ThemedColor(Color(0xFF4FC3F7), Color(0xFF8AB4F7)),
const ThemedColor(Color(0xFF29B6F6), Color(0xFF669CF6)),
];
// Light Blue 50: 700-900 (light mode) - see https://material.io/design/color/the-color-system.html#tools-for-picking-colors.
// Blue Material Dark: 500-700 (dark mode) - see https://standards.google/guidelines/google-material/color/dark-theme.html#style.
final gpuColorPalette = [
const ThemedColor(mainGpuColorLight, mainGpuColorDark),
const ThemedColor(Color(0xFF0277BD), Color(0xFF1966D2)),
const ThemedColor(Color(0xFF01579B), Color(0xFF1859BD)),
];
const selectedFlameChartItemColor = ThemedColor(
mainUiColorSelectedLight,
mainUiColorSelectedLight,
);
// Light is Red @ .2 opacity, Dark is Red 200 Material Dark @ .2 opacity.
const Color jankGlowInside = ThemedColor(
Color(0x66FF0000),
Color(0x66F29C99),
);
// Light is Red @ .5 opacity, Dark is Red 600 Material Dark @ .6 opacity.
const Color jankGlowEdge = ThemedColor(
Color(0x80FF0000),
Color(0x99CE191C),
);
// Red 50 - 400 is light at 1/2 opacity, Dark Red 500 Material Dark.
const Color highwater16msColor = mainUiColorSelectedLight;
const Color hoverTextHighContrastColor = Colors.white;
const Color hoverTextColor = Colors.black;