Add new GUI themes and prep version bump.
- Everforest - Kanagawa Paper - Old Book - Zenburn Update help/docs accordingly.
This commit is contained in:
@@ -4,7 +4,7 @@ project(kte)
|
||||
include(GNUInstallDirs)
|
||||
|
||||
set(CMAKE_CXX_STANDARD 17)
|
||||
set(KTE_VERSION "1.2.4")
|
||||
set(KTE_VERSION "1.3.0")
|
||||
|
||||
# Default to terminal-only build to avoid SDL/OpenGL dependency by default.
|
||||
# Enable with -DBUILD_GUI=ON when SDL2/OpenGL/Freetype are available.
|
||||
@@ -153,6 +153,10 @@ set(THEME_HEADERS
|
||||
themes/Solarized.h
|
||||
themes/Plan9.h
|
||||
themes/Nord.h
|
||||
themes/Everforest.h
|
||||
themes/KanagawaPaper.h
|
||||
themes/OldBook.h
|
||||
themes/Zenburn.h
|
||||
)
|
||||
|
||||
set(FONT_HEADERS
|
||||
|
||||
@@ -75,7 +75,7 @@ HelpText::Text()
|
||||
"Buffers:\n +HELP+ is read-only. Press C-k ' to toggle; C-k h restores it.\n"
|
||||
"\n"
|
||||
"GUI appearance (command prompt):\n"
|
||||
" : theme NAME Set GUI theme (eink, gruvbox, nord, plan9, solarized)\n"
|
||||
" : theme NAME Set GUI theme (eink, everforest, gruvbox, kanagawa-paper, nord, old-book, plan9, solarized, zenburn)\n"
|
||||
" : background MODE Set background: light | dark (affects eink, gruvbox, solarized)\n"
|
||||
);
|
||||
}
|
||||
}
|
||||
@@ -146,9 +146,10 @@ When running the GUI frontend, you can control appearance via the generic
|
||||
command prompt (type "C-k ;" then enter commands):
|
||||
.TP
|
||||
.B : theme NAME
|
||||
Set the GUI theme. Available names: "nord", "gruvbox", "plan9", "solarized", "eink".
|
||||
Set the GUI theme. Available names: "eink", "everforest", "gruvbox", "kanagawa-paper", "nord", "old-book", "plan9", "solarized", "zenburn".
|
||||
Compatibility aliases are also accepted: "gruvbox-dark", "gruvbox-light",
|
||||
"solarized-dark", "solarized-light", "eink-dark", "eink-light".
|
||||
"solarized-dark", "solarized-light", "eink-dark", "eink-light",
|
||||
"everforest-hard", "oldbook", "kanagawa", "kanagawa-light", "kanagawa-paper-light".
|
||||
.TP
|
||||
.B : background MODE
|
||||
Set background mode for supported themes. MODE is either "light" or "dark".
|
||||
|
||||
106
themes/Everforest.h
Normal file
106
themes/Everforest.h
Normal file
@@ -0,0 +1,106 @@
|
||||
// themes/Everforest.h — Everforest (hard, dark) inspired ImGui theme (header-only)
|
||||
#pragma once
|
||||
#include "ThemeHelpers.h"
|
||||
|
||||
// Expects to be included from GUITheme.h after <imgui.h> and RGBA() helper
|
||||
|
||||
static void
|
||||
ApplyEverforestTheme()
|
||||
{
|
||||
// Everforest hard dark palette (approximate)
|
||||
const ImVec4 bg0 = RGBA(0x2B3339); // base background
|
||||
const ImVec4 bg1 = RGBA(0x323C41);
|
||||
const ImVec4 bg2 = RGBA(0x3A454A);
|
||||
const ImVec4 bg3 = RGBA(0x4C555B);
|
||||
const ImVec4 fg0 = RGBA(0xD3C6AA); // foreground
|
||||
const ImVec4 fg1 = RGBA(0xEDE0C8);
|
||||
|
||||
// Accents
|
||||
const ImVec4 green = RGBA(0xA7C080);
|
||||
const ImVec4 aqua = RGBA(0x83C092);
|
||||
const ImVec4 blue = RGBA(0x7FBBB3);
|
||||
const ImVec4 yellow = RGBA(0xDBBC7F);
|
||||
const ImVec4 orange = RGBA(0xE69875);
|
||||
|
||||
ImGuiStyle &style = ImGui::GetStyle();
|
||||
style.WindowPadding = ImVec2(8.0f, 8.0f);
|
||||
style.FramePadding = ImVec2(6.0f, 4.0f);
|
||||
style.CellPadding = ImVec2(6.0f, 4.0f);
|
||||
style.ItemSpacing = ImVec2(6.0f, 6.0f);
|
||||
style.ItemInnerSpacing = ImVec2(6.0f, 4.0f);
|
||||
style.ScrollbarSize = 14.0f;
|
||||
style.GrabMinSize = 10.0f;
|
||||
style.WindowRounding = 4.0f;
|
||||
style.FrameRounding = 3.0f;
|
||||
style.PopupRounding = 4.0f;
|
||||
style.GrabRounding = 3.0f;
|
||||
style.TabRounding = 4.0f;
|
||||
style.WindowBorderSize = 1.0f;
|
||||
style.FrameBorderSize = 1.0f;
|
||||
|
||||
ImVec4 *colors = style.Colors;
|
||||
colors[ImGuiCol_Text] = fg0;
|
||||
colors[ImGuiCol_TextDisabled] = ImVec4(fg0.x, fg0.y, fg0.z, 0.55f);
|
||||
colors[ImGuiCol_WindowBg] = bg0;
|
||||
colors[ImGuiCol_ChildBg] = bg0;
|
||||
colors[ImGuiCol_PopupBg] = ImVec4(bg1.x, bg1.y, bg1.z, 0.98f);
|
||||
colors[ImGuiCol_Border] = bg2;
|
||||
colors[ImGuiCol_BorderShadow] = RGBA(0x000000, 0.0f);
|
||||
|
||||
colors[ImGuiCol_FrameBg] = bg2;
|
||||
colors[ImGuiCol_FrameBgHovered] = bg3;
|
||||
colors[ImGuiCol_FrameBgActive] = bg1;
|
||||
|
||||
colors[ImGuiCol_TitleBg] = bg1;
|
||||
colors[ImGuiCol_TitleBgActive] = bg2;
|
||||
colors[ImGuiCol_TitleBgCollapsed] = bg1;
|
||||
|
||||
colors[ImGuiCol_MenuBarBg] = bg1;
|
||||
colors[ImGuiCol_ScrollbarBg] = bg0;
|
||||
colors[ImGuiCol_ScrollbarGrab] = bg3;
|
||||
colors[ImGuiCol_ScrollbarGrabHovered] = bg2;
|
||||
colors[ImGuiCol_ScrollbarGrabActive] = bg1;
|
||||
|
||||
colors[ImGuiCol_CheckMark] = green;
|
||||
colors[ImGuiCol_SliderGrab] = green;
|
||||
colors[ImGuiCol_SliderGrabActive] = aqua;
|
||||
|
||||
colors[ImGuiCol_Button] = bg3;
|
||||
colors[ImGuiCol_ButtonHovered] = bg2;
|
||||
colors[ImGuiCol_ButtonActive] = bg1;
|
||||
|
||||
colors[ImGuiCol_Header] = bg3;
|
||||
colors[ImGuiCol_HeaderHovered] = bg2;
|
||||
colors[ImGuiCol_HeaderActive] = bg2;
|
||||
|
||||
colors[ImGuiCol_Separator] = bg2;
|
||||
colors[ImGuiCol_SeparatorHovered] = bg1;
|
||||
colors[ImGuiCol_SeparatorActive] = blue;
|
||||
|
||||
colors[ImGuiCol_ResizeGrip] = ImVec4(fg1.x, fg1.y, fg1.z, 0.12f);
|
||||
colors[ImGuiCol_ResizeGripHovered] = ImVec4(green.x, green.y, green.z, 0.67f);
|
||||
colors[ImGuiCol_ResizeGripActive] = aqua;
|
||||
|
||||
colors[ImGuiCol_Tab] = bg2;
|
||||
colors[ImGuiCol_TabHovered] = bg1;
|
||||
colors[ImGuiCol_TabActive] = bg3;
|
||||
colors[ImGuiCol_TabUnfocused] = bg2;
|
||||
colors[ImGuiCol_TabUnfocusedActive] = bg3;
|
||||
|
||||
colors[ImGuiCol_TableHeaderBg] = bg2;
|
||||
colors[ImGuiCol_TableBorderStrong] = bg1;
|
||||
colors[ImGuiCol_TableBorderLight] = ImVec4(bg1.x, bg1.y, bg1.z, 0.6f);
|
||||
colors[ImGuiCol_TableRowBg] = ImVec4(bg1.x, bg1.y, bg1.z, 0.2f);
|
||||
colors[ImGuiCol_TableRowBgAlt] = ImVec4(bg1.x, bg1.y, bg1.z, 0.35f);
|
||||
|
||||
colors[ImGuiCol_TextSelectedBg] = ImVec4(orange.x, orange.y, orange.z, 0.30f);
|
||||
colors[ImGuiCol_DragDropTarget] = orange;
|
||||
colors[ImGuiCol_NavHighlight] = orange;
|
||||
colors[ImGuiCol_NavWindowingHighlight] = ImVec4(fg1.x, fg1.y, fg1.z, 0.70f);
|
||||
colors[ImGuiCol_NavWindowingDimBg] = ImVec4(0.0f, 0.0f, 0.0f, 0.45f);
|
||||
colors[ImGuiCol_ModalWindowDimBg] = ImVec4(0.0f, 0.0f, 0.0f, 0.45f);
|
||||
colors[ImGuiCol_PlotLines] = aqua;
|
||||
colors[ImGuiCol_PlotLinesHovered] = blue;
|
||||
colors[ImGuiCol_PlotHistogram] = yellow;
|
||||
colors[ImGuiCol_PlotHistogramHovered] = orange;
|
||||
}
|
||||
105
themes/KanagawaPaper.h
Normal file
105
themes/KanagawaPaper.h
Normal file
@@ -0,0 +1,105 @@
|
||||
// themes/KanagawaPaper.h — Kanagawa Paper (light) inspired ImGui theme (header-only)
|
||||
#pragma once
|
||||
#include "ThemeHelpers.h"
|
||||
|
||||
// Expects to be included from GUITheme.h after <imgui.h> and RGBA() helper
|
||||
|
||||
static void
|
||||
ApplyKanagawaPaperTheme()
|
||||
{
|
||||
// Approximate Kanagawa Paper (light) palette
|
||||
const ImVec4 bg0 = RGBA(0xF2EAD3); // paper
|
||||
const ImVec4 bg1 = RGBA(0xE6DBC3);
|
||||
const ImVec4 bg2 = RGBA(0xD9CEB5);
|
||||
const ImVec4 bg3 = RGBA(0xCBBE9E);
|
||||
const ImVec4 fg0 = RGBA(0x3A3A3A); // ink
|
||||
const ImVec4 fg1 = RGBA(0x1F1F1F);
|
||||
|
||||
// Accents (muted teal/orange/blue)
|
||||
const ImVec4 teal = RGBA(0x3A7D7C);
|
||||
const ImVec4 orange = RGBA(0xC4746E);
|
||||
const ImVec4 blue = RGBA(0x487AA1);
|
||||
const ImVec4 yellow = RGBA(0xB58900);
|
||||
|
||||
ImGuiStyle &style = ImGui::GetStyle();
|
||||
style.WindowPadding = ImVec2(8.0f, 8.0f);
|
||||
style.FramePadding = ImVec2(6.0f, 4.0f);
|
||||
style.CellPadding = ImVec2(6.0f, 4.0f);
|
||||
style.ItemSpacing = ImVec2(6.0f, 6.0f);
|
||||
style.ItemInnerSpacing = ImVec2(6.0f, 4.0f);
|
||||
style.ScrollbarSize = 14.0f;
|
||||
style.GrabMinSize = 10.0f;
|
||||
style.WindowRounding = 4.0f;
|
||||
style.FrameRounding = 3.0f;
|
||||
style.PopupRounding = 4.0f;
|
||||
style.GrabRounding = 3.0f;
|
||||
style.TabRounding = 4.0f;
|
||||
style.WindowBorderSize = 1.0f;
|
||||
style.FrameBorderSize = 1.0f;
|
||||
|
||||
ImVec4 *colors = style.Colors;
|
||||
colors[ImGuiCol_Text] = fg0;
|
||||
colors[ImGuiCol_TextDisabled] = ImVec4(fg0.x, fg0.y, fg0.z, 0.55f);
|
||||
colors[ImGuiCol_WindowBg] = bg0;
|
||||
colors[ImGuiCol_ChildBg] = bg0;
|
||||
colors[ImGuiCol_PopupBg] = ImVec4(bg1.x, bg1.y, bg1.z, 0.98f);
|
||||
colors[ImGuiCol_Border] = bg2;
|
||||
colors[ImGuiCol_BorderShadow] = RGBA(0x000000, 0.0f);
|
||||
|
||||
colors[ImGuiCol_FrameBg] = bg2;
|
||||
colors[ImGuiCol_FrameBgHovered] = bg3;
|
||||
colors[ImGuiCol_FrameBgActive] = bg1;
|
||||
|
||||
colors[ImGuiCol_TitleBg] = bg1;
|
||||
colors[ImGuiCol_TitleBgActive] = bg2;
|
||||
colors[ImGuiCol_TitleBgCollapsed] = bg1;
|
||||
|
||||
colors[ImGuiCol_MenuBarBg] = bg1;
|
||||
colors[ImGuiCol_ScrollbarBg] = bg0;
|
||||
colors[ImGuiCol_ScrollbarGrab] = bg3;
|
||||
colors[ImGuiCol_ScrollbarGrabHovered] = bg2;
|
||||
colors[ImGuiCol_ScrollbarGrabActive] = bg1;
|
||||
|
||||
colors[ImGuiCol_CheckMark] = teal;
|
||||
colors[ImGuiCol_SliderGrab] = teal;
|
||||
colors[ImGuiCol_SliderGrabActive] = blue;
|
||||
|
||||
colors[ImGuiCol_Button] = bg3;
|
||||
colors[ImGuiCol_ButtonHovered] = bg2;
|
||||
colors[ImGuiCol_ButtonActive] = bg1;
|
||||
|
||||
colors[ImGuiCol_Header] = bg3;
|
||||
colors[ImGuiCol_HeaderHovered] = bg2;
|
||||
colors[ImGuiCol_HeaderActive] = bg2;
|
||||
|
||||
colors[ImGuiCol_Separator] = bg2;
|
||||
colors[ImGuiCol_SeparatorHovered] = bg1;
|
||||
colors[ImGuiCol_SeparatorActive] = teal;
|
||||
|
||||
colors[ImGuiCol_ResizeGrip] = ImVec4(fg1.x, fg1.y, fg1.z, 0.12f);
|
||||
colors[ImGuiCol_ResizeGripHovered] = ImVec4(teal.x, teal.y, teal.z, 0.67f);
|
||||
colors[ImGuiCol_ResizeGripActive] = blue;
|
||||
|
||||
colors[ImGuiCol_Tab] = bg2;
|
||||
colors[ImGuiCol_TabHovered] = bg1;
|
||||
colors[ImGuiCol_TabActive] = bg3;
|
||||
colors[ImGuiCol_TabUnfocused] = bg2;
|
||||
colors[ImGuiCol_TabUnfocusedActive] = bg3;
|
||||
|
||||
colors[ImGuiCol_TableHeaderBg] = bg2;
|
||||
colors[ImGuiCol_TableBorderStrong] = bg1;
|
||||
colors[ImGuiCol_TableBorderLight] = ImVec4(bg1.x, bg1.y, bg1.z, 0.6f);
|
||||
colors[ImGuiCol_TableRowBg] = ImVec4(bg1.x, bg1.y, bg1.z, 0.2f);
|
||||
colors[ImGuiCol_TableRowBgAlt] = ImVec4(bg1.x, bg1.y, bg1.z, 0.35f);
|
||||
|
||||
colors[ImGuiCol_TextSelectedBg] = ImVec4(orange.x, orange.y, orange.z, 0.30f);
|
||||
colors[ImGuiCol_DragDropTarget] = orange;
|
||||
colors[ImGuiCol_NavHighlight] = orange;
|
||||
colors[ImGuiCol_NavWindowingHighlight] = ImVec4(fg1.x, fg1.y, fg1.z, 0.70f);
|
||||
colors[ImGuiCol_NavWindowingDimBg] = ImVec4(0.0f, 0.0f, 0.0f, 0.25f);
|
||||
colors[ImGuiCol_ModalWindowDimBg] = ImVec4(0.0f, 0.0f, 0.0f, 0.25f);
|
||||
colors[ImGuiCol_PlotLines] = teal;
|
||||
colors[ImGuiCol_PlotLinesHovered] = blue;
|
||||
colors[ImGuiCol_PlotHistogram] = yellow;
|
||||
colors[ImGuiCol_PlotHistogramHovered] = orange;
|
||||
}
|
||||
105
themes/OldBook.h
Normal file
105
themes/OldBook.h
Normal file
@@ -0,0 +1,105 @@
|
||||
// themes/OldBook.h — Old Book (sepia) inspired ImGui theme (header-only)
|
||||
#pragma once
|
||||
#include "ThemeHelpers.h"
|
||||
|
||||
// Expects to be included from GUITheme.h after <imgui.h> and RGBA() helper
|
||||
|
||||
static void
|
||||
ApplyOldBookTheme()
|
||||
{
|
||||
// Sepia old paper aesthetic
|
||||
const ImVec4 bg0 = RGBA(0xF5E6C8); // paper
|
||||
const ImVec4 bg1 = RGBA(0xEAD9B8);
|
||||
const ImVec4 bg2 = RGBA(0xDECBA6);
|
||||
const ImVec4 bg3 = RGBA(0xCDBA96);
|
||||
const ImVec4 ink = RGBA(0x3B2F2F); // dark brown ink
|
||||
const ImVec4 inkSoft = RGBA(0x5A4540);
|
||||
|
||||
// Accents: muted teal/red/blue like aged inks
|
||||
const ImVec4 teal = RGBA(0x3F7F7A);
|
||||
const ImVec4 red = RGBA(0xA65858);
|
||||
const ImVec4 blue = RGBA(0x4F6D8C);
|
||||
const ImVec4 yellow = RGBA(0xB58B00);
|
||||
|
||||
ImGuiStyle &style = ImGui::GetStyle();
|
||||
style.WindowPadding = ImVec2(8.0f, 8.0f);
|
||||
style.FramePadding = ImVec2(6.0f, 4.0f);
|
||||
style.CellPadding = ImVec2(6.0f, 4.0f);
|
||||
style.ItemSpacing = ImVec2(6.0f, 6.0f);
|
||||
style.ItemInnerSpacing = ImVec2(6.0f, 4.0f);
|
||||
style.ScrollbarSize = 14.0f;
|
||||
style.GrabMinSize = 10.0f;
|
||||
style.WindowRounding = 4.0f;
|
||||
style.FrameRounding = 3.0f;
|
||||
style.PopupRounding = 4.0f;
|
||||
style.GrabRounding = 3.0f;
|
||||
style.TabRounding = 4.0f;
|
||||
style.WindowBorderSize = 1.0f;
|
||||
style.FrameBorderSize = 1.0f;
|
||||
|
||||
ImVec4 *colors = style.Colors;
|
||||
colors[ImGuiCol_Text] = ink;
|
||||
colors[ImGuiCol_TextDisabled] = ImVec4(ink.x, ink.y, ink.z, 0.55f);
|
||||
colors[ImGuiCol_WindowBg] = bg0;
|
||||
colors[ImGuiCol_ChildBg] = bg0;
|
||||
colors[ImGuiCol_PopupBg] = ImVec4(bg1.x, bg1.y, bg1.z, 0.98f);
|
||||
colors[ImGuiCol_Border] = bg2;
|
||||
colors[ImGuiCol_BorderShadow] = RGBA(0x000000, 0.0f);
|
||||
|
||||
colors[ImGuiCol_FrameBg] = bg2;
|
||||
colors[ImGuiCol_FrameBgHovered] = bg3;
|
||||
colors[ImGuiCol_FrameBgActive] = bg1;
|
||||
|
||||
colors[ImGuiCol_TitleBg] = bg1;
|
||||
colors[ImGuiCol_TitleBgActive] = bg2;
|
||||
colors[ImGuiCol_TitleBgCollapsed] = bg1;
|
||||
|
||||
colors[ImGuiCol_MenuBarBg] = bg1;
|
||||
colors[ImGuiCol_ScrollbarBg] = bg0;
|
||||
colors[ImGuiCol_ScrollbarGrab] = bg3;
|
||||
colors[ImGuiCol_ScrollbarGrabHovered] = bg2;
|
||||
colors[ImGuiCol_ScrollbarGrabActive] = bg1;
|
||||
|
||||
colors[ImGuiCol_CheckMark] = teal;
|
||||
colors[ImGuiCol_SliderGrab] = teal;
|
||||
colors[ImGuiCol_SliderGrabActive] = blue;
|
||||
|
||||
colors[ImGuiCol_Button] = bg3;
|
||||
colors[ImGuiCol_ButtonHovered] = bg2;
|
||||
colors[ImGuiCol_ButtonActive] = bg1;
|
||||
|
||||
colors[ImGuiCol_Header] = bg3;
|
||||
colors[ImGuiCol_HeaderHovered] = bg2;
|
||||
colors[ImGuiCol_HeaderActive] = bg2;
|
||||
|
||||
colors[ImGuiCol_Separator] = bg2;
|
||||
colors[ImGuiCol_SeparatorHovered] = bg1;
|
||||
colors[ImGuiCol_SeparatorActive] = teal;
|
||||
|
||||
colors[ImGuiCol_ResizeGrip] = ImVec4(inkSoft.x, inkSoft.y, inkSoft.z, 0.12f);
|
||||
colors[ImGuiCol_ResizeGripHovered] = ImVec4(teal.x, teal.y, teal.z, 0.67f);
|
||||
colors[ImGuiCol_ResizeGripActive] = blue;
|
||||
|
||||
colors[ImGuiCol_Tab] = bg2;
|
||||
colors[ImGuiCol_TabHovered] = bg1;
|
||||
colors[ImGuiCol_TabActive] = bg3;
|
||||
colors[ImGuiCol_TabUnfocused] = bg2;
|
||||
colors[ImGuiCol_TabUnfocusedActive] = bg3;
|
||||
|
||||
colors[ImGuiCol_TableHeaderBg] = bg2;
|
||||
colors[ImGuiCol_TableBorderStrong] = bg1;
|
||||
colors[ImGuiCol_TableBorderLight] = ImVec4(bg1.x, bg1.y, bg1.z, 0.6f);
|
||||
colors[ImGuiCol_TableRowBg] = ImVec4(bg1.x, bg1.y, bg1.z, 0.2f);
|
||||
colors[ImGuiCol_TableRowBgAlt] = ImVec4(bg1.x, bg1.y, bg1.z, 0.35f);
|
||||
|
||||
colors[ImGuiCol_TextSelectedBg] = ImVec4(red.x, red.y, red.z, 0.25f);
|
||||
colors[ImGuiCol_DragDropTarget] = red;
|
||||
colors[ImGuiCol_NavHighlight] = red;
|
||||
colors[ImGuiCol_NavWindowingHighlight] = ImVec4(inkSoft.x, inkSoft.y, inkSoft.z, 0.70f);
|
||||
colors[ImGuiCol_NavWindowingDimBg] = ImVec4(0.0f, 0.0f, 0.0f, 0.15f);
|
||||
colors[ImGuiCol_ModalWindowDimBg] = ImVec4(0.0f, 0.0f, 0.0f, 0.15f);
|
||||
colors[ImGuiCol_PlotLines] = teal;
|
||||
colors[ImGuiCol_PlotLinesHovered] = blue;
|
||||
colors[ImGuiCol_PlotHistogram] = yellow;
|
||||
colors[ImGuiCol_PlotHistogramHovered] = red;
|
||||
}
|
||||
104
themes/Zenburn.h
Normal file
104
themes/Zenburn.h
Normal file
@@ -0,0 +1,104 @@
|
||||
// themes/Zenburn.h — Zenburn (low-contrast dark) inspired ImGui theme (header-only)
|
||||
#pragma once
|
||||
#include "ThemeHelpers.h"
|
||||
|
||||
// Expects to be included from GUITheme.h after <imgui.h> and RGBA() helper
|
||||
|
||||
static void
|
||||
ApplyZenburnTheme()
|
||||
{
|
||||
// Zenburn palette (approximate)
|
||||
const ImVec4 bg0 = RGBA(0x3F3F3F);
|
||||
const ImVec4 bg1 = RGBA(0x4F4F4F);
|
||||
const ImVec4 bg2 = RGBA(0x5F5F5F);
|
||||
const ImVec4 bg3 = RGBA(0x6F6F6F);
|
||||
const ImVec4 fg0 = RGBA(0xDCDCCC);
|
||||
const ImVec4 fg1 = RGBA(0xFFFFEF);
|
||||
|
||||
const ImVec4 green = RGBA(0x7F9F7F);
|
||||
const ImVec4 blue = RGBA(0x8CD0D3);
|
||||
const ImVec4 yellow = RGBA(0xF0DFAF);
|
||||
const ImVec4 orange = RGBA(0xDCA3A3);
|
||||
|
||||
ImGuiStyle &style = ImGui::GetStyle();
|
||||
style.WindowPadding = ImVec2(8.0f, 8.0f);
|
||||
style.FramePadding = ImVec2(6.0f, 4.0f);
|
||||
style.CellPadding = ImVec2(6.0f, 4.0f);
|
||||
style.ItemSpacing = ImVec2(6.0f, 6.0f);
|
||||
style.ItemInnerSpacing = ImVec2(6.0f, 4.0f);
|
||||
style.ScrollbarSize = 14.0f;
|
||||
style.GrabMinSize = 10.0f;
|
||||
style.WindowRounding = 4.0f;
|
||||
style.FrameRounding = 3.0f;
|
||||
style.PopupRounding = 4.0f;
|
||||
style.GrabRounding = 3.0f;
|
||||
style.TabRounding = 4.0f;
|
||||
style.WindowBorderSize = 1.0f;
|
||||
style.FrameBorderSize = 1.0f;
|
||||
|
||||
ImVec4 *colors = style.Colors;
|
||||
colors[ImGuiCol_Text] = fg0;
|
||||
colors[ImGuiCol_TextDisabled] = ImVec4(fg0.x, fg0.y, fg0.z, 0.55f);
|
||||
colors[ImGuiCol_WindowBg] = bg0;
|
||||
colors[ImGuiCol_ChildBg] = bg0;
|
||||
colors[ImGuiCol_PopupBg] = ImVec4(bg1.x, bg1.y, bg1.z, 0.98f);
|
||||
colors[ImGuiCol_Border] = bg2;
|
||||
colors[ImGuiCol_BorderShadow] = RGBA(0x000000, 0.0f);
|
||||
|
||||
colors[ImGuiCol_FrameBg] = bg2;
|
||||
colors[ImGuiCol_FrameBgHovered] = bg3;
|
||||
colors[ImGuiCol_FrameBgActive] = bg1;
|
||||
|
||||
colors[ImGuiCol_TitleBg] = bg1;
|
||||
colors[ImGuiCol_TitleBgActive] = bg2;
|
||||
colors[ImGuiCol_TitleBgCollapsed] = bg1;
|
||||
|
||||
colors[ImGuiCol_MenuBarBg] = bg1;
|
||||
colors[ImGuiCol_ScrollbarBg] = bg0;
|
||||
colors[ImGuiCol_ScrollbarGrab] = bg3;
|
||||
colors[ImGuiCol_ScrollbarGrabHovered] = bg2;
|
||||
colors[ImGuiCol_ScrollbarGrabActive] = bg1;
|
||||
|
||||
colors[ImGuiCol_CheckMark] = green;
|
||||
colors[ImGuiCol_SliderGrab] = green;
|
||||
colors[ImGuiCol_SliderGrabActive] = blue;
|
||||
|
||||
colors[ImGuiCol_Button] = bg3;
|
||||
colors[ImGuiCol_ButtonHovered] = bg2;
|
||||
colors[ImGuiCol_ButtonActive] = bg1;
|
||||
|
||||
colors[ImGuiCol_Header] = bg3;
|
||||
colors[ImGuiCol_HeaderHovered] = bg2;
|
||||
colors[ImGuiCol_HeaderActive] = bg2;
|
||||
|
||||
colors[ImGuiCol_Separator] = bg2;
|
||||
colors[ImGuiCol_SeparatorHovered] = bg1;
|
||||
colors[ImGuiCol_SeparatorActive] = blue;
|
||||
|
||||
colors[ImGuiCol_ResizeGrip] = ImVec4(fg1.x, fg1.y, fg1.z, 0.12f);
|
||||
colors[ImGuiCol_ResizeGripHovered] = ImVec4(green.x, green.y, green.z, 0.67f);
|
||||
colors[ImGuiCol_ResizeGripActive] = blue;
|
||||
|
||||
colors[ImGuiCol_Tab] = bg2;
|
||||
colors[ImGuiCol_TabHovered] = bg1;
|
||||
colors[ImGuiCol_TabActive] = bg3;
|
||||
colors[ImGuiCol_TabUnfocused] = bg2;
|
||||
colors[ImGuiCol_TabUnfocusedActive] = bg3;
|
||||
|
||||
colors[ImGuiCol_TableHeaderBg] = bg2;
|
||||
colors[ImGuiCol_TableBorderStrong] = bg1;
|
||||
colors[ImGuiCol_TableBorderLight] = ImVec4(bg1.x, bg1.y, bg1.z, 0.6f);
|
||||
colors[ImGuiCol_TableRowBg] = ImVec4(bg1.x, bg1.y, bg1.z, 0.2f);
|
||||
colors[ImGuiCol_TableRowBgAlt] = ImVec4(bg1.x, bg1.y, bg1.z, 0.35f);
|
||||
|
||||
colors[ImGuiCol_TextSelectedBg] = ImVec4(orange.x, orange.y, orange.z, 0.30f);
|
||||
colors[ImGuiCol_DragDropTarget] = orange;
|
||||
colors[ImGuiCol_NavHighlight] = orange;
|
||||
colors[ImGuiCol_NavWindowingHighlight] = ImVec4(fg1.x, fg1.y, fg1.z, 0.70f);
|
||||
colors[ImGuiCol_NavWindowingDimBg] = ImVec4(0.0f, 0.0f, 0.0f, 0.45f);
|
||||
colors[ImGuiCol_ModalWindowDimBg] = ImVec4(0.0f, 0.0f, 0.0f, 0.45f);
|
||||
colors[ImGuiCol_PlotLines] = green;
|
||||
colors[ImGuiCol_PlotLinesHovered] = blue;
|
||||
colors[ImGuiCol_PlotHistogram] = yellow;
|
||||
colors[ImGuiCol_PlotHistogramHovered] = orange;
|
||||
}
|
||||
Reference in New Issue
Block a user