Project
Loading...
Searching...
No Matches
PaletteHelpers.cxx
Go to the documentation of this file.
1// Copyright 2019-2020 CERN and copyright holders of ALICE O2.
2// See https://alice-o2.web.cern.ch/copyright for details of the copyright holders.
3// All rights not expressly granted are reserved.
4//
5// This software is distributed under the terms of the GNU General Public
6// License v3 (GPL Version 3), copied verbatim in the file "COPYING".
7//
8// In applying this license CERN does not waive the privileges and immunities
9// granted to it by virtue of its status as an Intergovernmental Organization
10// or submit itself to any jurisdiction.
11#include "PaletteHelpers.h"
12
13namespace o2::framework
14{
15
16// Vivid accent colors — macOS system color palette / Pantone-adjacent
17// RED: macOS Red (#FF3B30) / Pantone 485 C adjacent
18const ImVec4 PaletteHelpers::RED = ImVec4(0xff / 255., 0x3b / 255., 0x30 / 255., 1);
19// GREEN: macOS Green (#34C759) / Pantone 368 C adjacent
20const ImVec4 PaletteHelpers::GREEN = ImVec4(0x34 / 255., 0xc7 / 255., 0x59 / 255., 1);
21// BLUE: macOS Blue (#007AFF) / Pantone 2728 C adjacent
22const ImVec4 PaletteHelpers::BLUE = ImVec4(0x00 / 255., 0x7a / 255., 0xff / 255., 1);
23// YELLOW: macOS Yellow (#FFCC00) / Pantone 116 C adjacent
24const ImVec4 PaletteHelpers::YELLOW = ImVec4(0xff / 255., 0xcc / 255., 0x00 / 255., 1);
25// Muted/shaded variants — desaturated for secondary use
26const ImVec4 PaletteHelpers::SHADED_RED = ImVec4(0xff / 255., 0x69 / 255., 0x61 / 255., 1);
27const ImVec4 PaletteHelpers::SHADED_GREEN = ImVec4(0x86 / 255., 0xd9 / 255., 0x88 / 255., 1);
28const ImVec4 PaletteHelpers::SHADED_BLUE = ImVec4(0x5a / 255., 0xc8 / 255., 0xfa / 255., 1);
29const ImVec4 PaletteHelpers::SHADED_YELLOW = ImVec4(0xff / 255., 0xd6 / 255., 0x0a / 255., 1);
30// Dark variants — for title bars and hovered states
31// DARK_RED: Pantone 485 C (#DA291C)
32const ImVec4 PaletteHelpers::DARK_RED = ImVec4(0xda / 255., 0x29 / 255., 0x1c / 255., 1);
33// DARK_GREEN: (#1E8449)
34const ImVec4 PaletteHelpers::DARK_GREEN = ImVec4(0x1e / 255., 0x84 / 255., 0x49 / 255., 1);
35// DARK_YELLOW: macOS Orange (#FF9F0A) / Pantone 137 C adjacent
36const ImVec4 PaletteHelpers::DARK_YELLOW = ImVec4(0xff / 255., 0x9f / 255., 0x0a / 255., 1);
37// Neutrals — macOS dark mode system backgrounds
38// WHITE: used as primary text / highlight color in dark UI
39const ImVec4 PaletteHelpers::WHITE = ImVec4(0xf5 / 255., 0xf5 / 255., 0xf7 / 255., 1);
40// BLACK: macOS dark background (#1C1C1E)
41const ImVec4 PaletteHelpers::BLACK = ImVec4(0x1c / 255., 0x1c / 255., 0x1e / 255., 1);
42// GRAY: macOS secondary background (#2C2C2E)
43const ImVec4 PaletteHelpers::GRAY = ImVec4(0x2c / 255., 0x2c / 255., 0x2e / 255., 1);
44// LIGHT_GRAY: macOS tertiary background (#3A3A3C)
45const ImVec4 PaletteHelpers::LIGHT_GRAY = ImVec4(0x3a / 255., 0x3a / 255., 0x3c / 255., 1);
46
47} // namespace o2::framework
Defining ITS Vertex explicitly as messageable.
Definition Cartesian.h:288
static const ImVec4 SHADED_GREEN
static const ImVec4 DARK_GREEN
static const ImVec4 SHADED_YELLOW
static const ImVec4 SHADED_RED
static const ImVec4 LIGHT_GRAY
static const ImVec4 SHADED_BLUE
static const ImVec4 DARK_YELLOW
static const ImVec4 DARK_RED