11#pragma once
22
3+ /* *
4+ * @file colour_palette.h
5+ * @brief Named colour constants for use with ImGui (e.g. LogWindow::addLog()).
6+ */
7+
38#include " imgui.h"
49
510namespace imgui_kit
611{
12+ /* *
13+ * @brief Named @c constexpr ImVec4 colour constants (RGBA, 0.0-1.0).
14+ */
715 namespace colours
816 {
17+ /* *
18+ * @defgroup colours_basic Basic colours
19+ * @brief Primary and secondary colours.
20+ * @{
21+ */
922 // Basic Colors
1023 constexpr ImVec4 White = ImVec4(1 .00f , 1 .00f , 1 .00f , 1 .00f );
1124 constexpr ImVec4 Black = ImVec4(0 .00f , 0 .00f , 0 .00f , 1 .00f );
@@ -17,7 +30,13 @@ namespace imgui_kit
1730 constexpr ImVec4 Purple = ImVec4(0 .50f , 0 .00f , 0 .50f , 1 .00f );
1831 constexpr ImVec4 Cyan = ImVec4(0 .00f , 1 .00f , 1 .00f , 1 .00f );
1932 constexpr ImVec4 Magenta = ImVec4(1 .00f , 0 .00f , 1 .00f , 1 .00f );
33+ /* * @} */
2034
35+ /* *
36+ * @defgroup colours_extended Extended palette
37+ * @brief Additional named colours.
38+ * @{
39+ */
2140 // Extended Palette
2241 constexpr ImVec4 Coral = ImVec4(1 .00f , 0 .50f , 0 .31f , 1 .00f );
2342 constexpr ImVec4 Violet = ImVec4(0 .93f , 0 .51f , 0 .93f , 1 .00f );
@@ -31,21 +50,39 @@ namespace imgui_kit
3150 constexpr ImVec4 Navy = ImVec4(0 .00f , 0 .00f , 0 .50f , 1 .00f );
3251 constexpr ImVec4 Mint = ImVec4(0 .74f , 1 .00f , 0 .98f , 1 .00f );
3352 constexpr ImVec4 Peach = ImVec4(1 .00f , 0 .89f , 0 .71f , 1 .00f );
53+ /* * @} */
3454
55+ /* *
56+ * @defgroup colours_grayscale Grayscales
57+ * @brief Shades of grey.
58+ * @{
59+ */
3560 // Grayscales
3661 constexpr ImVec4 DarkGray = ImVec4(0 .20f , 0 .20f , 0 .20f , 1 .00f );
3762 constexpr ImVec4 Gray = ImVec4(0 .50f , 0 .50f , 0 .50f , 1 .00f );
3863 constexpr ImVec4 LightGray = ImVec4(0 .75f , 0 .75f , 0 .75f , 1 .00f );
3964 constexpr ImVec4 Silver = ImVec4(0 .75f , 0 .75f , 0 .80f , 1 .00f );
65+ /* * @} */
4066
67+ /* *
68+ * @defgroup colours_pastel Pastel colours
69+ * @brief Soft, low-saturation colours.
70+ * @{
71+ */
4172 // Pastel Colors
4273 constexpr ImVec4 PastelPink = ImVec4(1 .00f , 0 .82f , 0 .86f , 1 .00f );
4374 constexpr ImVec4 PastelGreen = ImVec4(0 .47f , 0 .87f , 0 .47f , 1 .00f );
4475 constexpr ImVec4 PastelBlue = ImVec4(0 .68f , 0 .85f , 0 .90f , 1 .00f );
4576 constexpr ImVec4 PastelYellow = ImVec4(0 .99f , 0 .99f , 0 .59f , 1 .00f );
4677 constexpr ImVec4 PastelOrange = ImVec4(1 .00f , 0 .70f , 0 .28f , 1 .00f );
4778 constexpr ImVec4 PastelViolet = ImVec4(0 .80f , 0 .60f , 0 .80f , 1 .00f );
79+ /* * @} */
4880
81+ /* *
82+ * @defgroup colours_dark Dark colours
83+ * @brief Darkened variants of the basic colours.
84+ * @{
85+ */
4986 // Dark Colors
5087 constexpr ImVec4 DarkRed = ImVec4(0 .55f , 0 .00f , 0 .00f , 1 .00f );
5188 constexpr ImVec4 DarkGreen = ImVec4(0 .00f , 0 .39f , 0 .00f , 1 .00f );
@@ -55,6 +92,7 @@ namespace imgui_kit
5592 constexpr ImVec4 DarkCyan = ImVec4(0 .00f , 0 .55f , 0 .55f , 1 .00f );
5693 constexpr ImVec4 DarkMagenta = ImVec4(0 .55f , 0 .00f , 0 .55f , 1 .00f );
5794 constexpr ImVec4 DarkOrange = ImVec4(0 .55f , 0 .27f , 0 .07f , 1 .00f );
95+ /* * @} */
5896 }
59-
60- }
97+
98+ }
0 commit comments