Add new GUI themes and update documentation.
Some checks failed
Release / Bump Homebrew formula (push) Has been cancelled
Release / Build Linux amd64 (push) Has been cancelled
Release / Build Linux arm64 (push) Has been cancelled
Release / Build macOS arm64 (.app) (push) Has been cancelled
Release / Create GitHub Release (push) Has been cancelled

- Amber
- LCARS
- Orbital
- Weyland-Yutani
- Kanagawa Paper (dark mode extension)

Update help text to reflect additions.
This commit is contained in:
2025-12-03 00:36:01 -08:00
parent 64022766c5
commit c864af7daa
10 changed files with 846 additions and 81 deletions

107
themes/Amber.h Normal file
View File

@@ -0,0 +1,107 @@
// themes/Amber.h — Vim Amber inspired ImGui theme (header-only)
#pragma once
#include "ThemeHelpers.h"
// Expects to be included from GUITheme.h after <imgui.h> and RGBA() helper
static inline void
ApplyAmberTheme()
{
// Amber: dark background with amber/orange highlights and warm text
const ImVec4 bg0 = RGBA(0x141414);
const ImVec4 bg1 = RGBA(0x1E1E1E);
const ImVec4 bg2 = RGBA(0x2A2A2A);
const ImVec4 bg3 = RGBA(0x343434);
const ImVec4 text = RGBA(0xE6D5A3); // warm parchment-like text
const ImVec4 text2 = RGBA(0xFFF2C2);
const ImVec4 amber = RGBA(0xFFB000);
const ImVec4 orange = RGBA(0xFF8C32);
const ImVec4 yellow = RGBA(0xFFD166);
const ImVec4 teal = RGBA(0x3AAFA9);
const ImVec4 cyan = RGBA(0x4CC9F0);
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] = text;
colors[ImGuiCol_TextDisabled] = ImVec4(text.x, text.y, text.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] = bg3;
colors[ImGuiCol_BorderShadow] = RGBA(0x000000, 0.0f);
colors[ImGuiCol_FrameBg] = bg2;
colors[ImGuiCol_FrameBgHovered] = ImVec4(amber.x, amber.y, amber.z, 0.20f);
colors[ImGuiCol_FrameBgActive] = ImVec4(orange.x, orange.y, orange.z, 0.25f);
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] = ImVec4(amber.x, amber.y, amber.z, 0.50f);
colors[ImGuiCol_ScrollbarGrabActive] = amber;
colors[ImGuiCol_CheckMark] = amber;
colors[ImGuiCol_SliderGrab] = amber;
colors[ImGuiCol_SliderGrabActive] = orange;
colors[ImGuiCol_Button] = bg3;
colors[ImGuiCol_ButtonHovered] = ImVec4(amber.x, amber.y, amber.z, 0.25f);
colors[ImGuiCol_ButtonActive] = ImVec4(amber.x, amber.y, amber.z, 0.40f);
colors[ImGuiCol_Header] = ImVec4(amber.x, amber.y, amber.z, 0.25f);
colors[ImGuiCol_HeaderHovered] = ImVec4(yellow.x, yellow.y, yellow.z, 0.30f);
colors[ImGuiCol_HeaderActive] = ImVec4(orange.x, orange.y, orange.z, 0.30f);
colors[ImGuiCol_Separator] = bg3;
colors[ImGuiCol_SeparatorHovered] = amber;
colors[ImGuiCol_SeparatorActive] = orange;
colors[ImGuiCol_ResizeGrip] = ImVec4(text2.x, text2.y, text2.z, 0.12f);
colors[ImGuiCol_ResizeGripHovered] = ImVec4(amber.x, amber.y, amber.z, 0.67f);
colors[ImGuiCol_ResizeGripActive] = orange;
colors[ImGuiCol_Tab] = bg2;
colors[ImGuiCol_TabHovered] = ImVec4(amber.x, amber.y, amber.z, 0.25f);
colors[ImGuiCol_TabActive] = ImVec4(yellow.x, yellow.y, yellow.z, 0.30f);
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(amber.x, amber.y, amber.z, 0.28f);
colors[ImGuiCol_DragDropTarget] = orange;
colors[ImGuiCol_NavHighlight] = cyan;
colors[ImGuiCol_NavWindowingHighlight] = ImVec4(text2.x, text2.y, text2.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] = teal;
colors[ImGuiCol_PlotLinesHovered] = cyan;
colors[ImGuiCol_PlotHistogram] = amber;
colors[ImGuiCol_PlotHistogramHovered] = orange;
}

View File

@@ -5,7 +5,7 @@
// Expects to be included from GUITheme.h after <imgui.h> and RGBA() helper
static void
ApplyKanagawaPaperTheme()
ApplyKanagawaPaperLightTheme()
{
// Approximate Kanagawa Paper (light) palette
const ImVec4 bg0 = RGBA(0xF2EAD3); // paper
@@ -102,4 +102,105 @@ ApplyKanagawaPaperTheme()
colors[ImGuiCol_PlotLinesHovered] = blue;
colors[ImGuiCol_PlotHistogram] = yellow;
colors[ImGuiCol_PlotHistogramHovered] = orange;
}
static void
ApplyKanagawaPaperDarkTheme()
{
// Approximate Kanagawa (dark) with paper-inspired warmth
const ImVec4 bg0 = RGBA(0x1F1E1A); // deep warm black
const ImVec4 bg1 = RGBA(0x25241F);
const ImVec4 bg2 = RGBA(0x2E2C26);
const ImVec4 bg3 = RGBA(0x3A372F);
const ImVec4 fg0 = RGBA(0xDCD7BA); // warm ivory ink (kanagawa fg)
const ImVec4 fg1 = RGBA(0xC8C093);
// Accents similar to kanagawa-wave
const ImVec4 teal = RGBA(0x7AA89F);
const ImVec4 orange = RGBA(0xFFA066);
const ImVec4 blue = RGBA(0x7E9CD8);
const ImVec4 yellow = RGBA(0xE6C384);
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 *c = style.Colors;
c[ImGuiCol_Text] = fg0;
c[ImGuiCol_TextDisabled] = ImVec4(fg1.x, fg1.y, fg1.z, 0.6f);
c[ImGuiCol_WindowBg] = bg0;
c[ImGuiCol_ChildBg] = bg0;
c[ImGuiCol_PopupBg] = ImVec4(bg1.x, bg1.y, bg1.z, 0.98f);
c[ImGuiCol_Border] = bg2;
c[ImGuiCol_BorderShadow] = RGBA(0x000000, 0.0f);
c[ImGuiCol_FrameBg] = bg2;
c[ImGuiCol_FrameBgHovered] = bg3;
c[ImGuiCol_FrameBgActive] = bg1;
c[ImGuiCol_TitleBg] = bg1;
c[ImGuiCol_TitleBgActive] = bg2;
c[ImGuiCol_TitleBgCollapsed] = bg1;
c[ImGuiCol_MenuBarBg] = bg1;
c[ImGuiCol_ScrollbarBg] = bg0;
c[ImGuiCol_ScrollbarGrab] = bg3;
c[ImGuiCol_ScrollbarGrabHovered] = bg2;
c[ImGuiCol_ScrollbarGrabActive] = bg1;
c[ImGuiCol_CheckMark] = teal;
c[ImGuiCol_SliderGrab] = teal;
c[ImGuiCol_SliderGrabActive] = blue;
c[ImGuiCol_Button] = bg3;
c[ImGuiCol_ButtonHovered] = bg2;
c[ImGuiCol_ButtonActive] = bg1;
c[ImGuiCol_Header] = bg3;
c[ImGuiCol_HeaderHovered] = bg2;
c[ImGuiCol_HeaderActive] = bg2;
c[ImGuiCol_Separator] = bg2;
c[ImGuiCol_SeparatorHovered] = bg1;
c[ImGuiCol_SeparatorActive] = teal;
c[ImGuiCol_ResizeGrip] = ImVec4(fg1.x, fg1.y, fg1.z, 0.15f);
c[ImGuiCol_ResizeGripHovered] = ImVec4(teal.x, teal.y, teal.z, 0.67f);
c[ImGuiCol_ResizeGripActive] = blue;
c[ImGuiCol_Tab] = bg2;
c[ImGuiCol_TabHovered] = bg1;
c[ImGuiCol_TabActive] = bg3;
c[ImGuiCol_TabUnfocused] = bg2;
c[ImGuiCol_TabUnfocusedActive] = bg3;
c[ImGuiCol_TableHeaderBg] = bg2;
c[ImGuiCol_TableBorderStrong] = bg1;
c[ImGuiCol_TableBorderLight] = ImVec4(bg1.x, bg1.y, bg1.z, 0.6f);
c[ImGuiCol_TableRowBg] = ImVec4(bg1.x, bg1.y, bg1.z, 0.12f);
c[ImGuiCol_TableRowBgAlt] = ImVec4(bg1.x, bg1.y, bg1.z, 0.22f);
c[ImGuiCol_TextSelectedBg] = ImVec4(orange.x, orange.y, orange.z, 0.28f);
c[ImGuiCol_DragDropTarget] = orange;
c[ImGuiCol_NavHighlight] = orange;
c[ImGuiCol_NavWindowingHighlight] = ImVec4(fg1.x, fg1.y, fg1.z, 0.70f);
c[ImGuiCol_NavWindowingDimBg] = ImVec4(0.0f, 0.0f, 0.0f, 0.35f);
c[ImGuiCol_ModalWindowDimBg] = ImVec4(0.0f, 0.0f, 0.0f, 0.35f);
c[ImGuiCol_PlotLines] = teal;
c[ImGuiCol_PlotLinesHovered] = blue;
c[ImGuiCol_PlotHistogram] = yellow;
c[ImGuiCol_PlotHistogramHovered] = orange;
}
// Back-compat name kept; select by global background
static inline void
ApplyKanagawaPaperTheme()
{
if (GetBackgroundMode() == BackgroundMode::Dark)
ApplyKanagawaPaperDarkTheme();
else
ApplyKanagawaPaperLightTheme();
}

108
themes/LCARS.h Normal file
View File

@@ -0,0 +1,108 @@
// themes/LCARS.h — LCARS-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
ApplyLcarsTheme()
{
// LCARS-inspired palette: dark background with vibrant pastel accents
const ImVec4 bg0 = RGBA(0x0E0E10); // near-black background
const ImVec4 bg1 = RGBA(0x1A1A1F);
const ImVec4 bg2 = RGBA(0x26262C);
const ImVec4 bg3 = RGBA(0x33333A);
const ImVec4 fg0 = RGBA(0xECECEC); // primary text
const ImVec4 fg1 = RGBA(0xBFBFC4);
// LCARS accent colors (approximations)
const ImVec4 lcars_orange = RGBA(0xFF9966);
const ImVec4 lcars_yellow = RGBA(0xFFCC66);
const ImVec4 lcars_pink = RGBA(0xFF99CC);
const ImVec4 lcars_purple = RGBA(0xCC99FF);
const ImVec4 lcars_blue = RGBA(0x66CCFF);
ImGuiStyle &style = ImGui::GetStyle();
style.WindowPadding = ImVec2(10.0f, 10.0f);
style.FramePadding = ImVec2(8.0f, 6.0f);
style.CellPadding = ImVec2(6.0f, 4.0f);
style.ItemSpacing = ImVec2(8.0f, 8.0f);
style.ItemInnerSpacing = ImVec2(6.0f, 4.0f);
style.ScrollbarSize = 16.0f;
style.GrabMinSize = 12.0f;
style.WindowRounding = 6.0f;
style.FrameRounding = 6.0f;
style.PopupRounding = 6.0f;
style.GrabRounding = 6.0f;
style.TabRounding = 6.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] = bg3;
colors[ImGuiCol_BorderShadow] = RGBA(0x000000, 0.0f);
colors[ImGuiCol_FrameBg] = bg2;
colors[ImGuiCol_FrameBgHovered] = ImVec4(lcars_purple.x, lcars_purple.y, lcars_purple.z, 0.35f);
colors[ImGuiCol_FrameBgActive] = ImVec4(lcars_orange.x, lcars_orange.y, lcars_orange.z, 0.35f);
colors[ImGuiCol_TitleBg] = bg1;
colors[ImGuiCol_TitleBgActive] = ImVec4(bg2.x, bg2.y, bg2.z, 1.0f);
colors[ImGuiCol_TitleBgCollapsed] = bg1;
colors[ImGuiCol_MenuBarBg] = bg1;
colors[ImGuiCol_ScrollbarBg] = bg0;
colors[ImGuiCol_ScrollbarGrab] = bg3;
colors[ImGuiCol_ScrollbarGrabHovered] = ImVec4(lcars_blue.x, lcars_blue.y, lcars_blue.z, 0.6f);
colors[ImGuiCol_ScrollbarGrabActive] = lcars_blue;
colors[ImGuiCol_CheckMark] = lcars_orange;
colors[ImGuiCol_SliderGrab] = lcars_orange;
colors[ImGuiCol_SliderGrabActive] = lcars_pink;
colors[ImGuiCol_Button] = ImVec4(bg3.x, bg3.y, bg3.z, 1.0f);
colors[ImGuiCol_ButtonHovered] = ImVec4(lcars_orange.x, lcars_orange.y, lcars_orange.z, 0.35f);
colors[ImGuiCol_ButtonActive] = ImVec4(lcars_orange.x, lcars_orange.y, lcars_orange.z, 0.55f);
colors[ImGuiCol_Header] = ImVec4(lcars_purple.x, lcars_purple.y, lcars_purple.z, 0.30f);
colors[ImGuiCol_HeaderHovered] = ImVec4(lcars_blue.x, lcars_blue.y, lcars_blue.z, 0.35f);
colors[ImGuiCol_HeaderActive] = ImVec4(lcars_orange.x, lcars_orange.y, lcars_orange.z, 0.35f);
colors[ImGuiCol_Separator] = bg3;
colors[ImGuiCol_SeparatorHovered] = lcars_blue;
colors[ImGuiCol_SeparatorActive] = lcars_pink;
colors[ImGuiCol_ResizeGrip] = ImVec4(fg1.x, fg1.y, fg1.z, 0.12f);
colors[ImGuiCol_ResizeGripHovered] = ImVec4(lcars_yellow.x, lcars_yellow.y, lcars_yellow.z, 0.67f);
colors[ImGuiCol_ResizeGripActive] = lcars_orange;
colors[ImGuiCol_Tab] = bg2;
colors[ImGuiCol_TabHovered] = ImVec4(lcars_blue.x, lcars_blue.y, lcars_blue.z, 0.35f);
colors[ImGuiCol_TabActive] = ImVec4(lcars_purple.x, lcars_purple.y, lcars_purple.z, 0.35f);
colors[ImGuiCol_TabUnfocused] = bg2;
colors[ImGuiCol_TabUnfocusedActive] = ImVec4(bg3.x, bg3.y, bg3.z, 1.0f);
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(lcars_yellow.x, lcars_yellow.y, lcars_yellow.z, 0.30f);
colors[ImGuiCol_DragDropTarget] = lcars_orange;
colors[ImGuiCol_NavHighlight] = lcars_blue;
colors[ImGuiCol_NavWindowingHighlight] = ImVec4(fg0.x, fg0.y, fg0.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] = lcars_blue;
colors[ImGuiCol_PlotLinesHovered] = lcars_purple;
colors[ImGuiCol_PlotHistogram] = lcars_yellow;
colors[ImGuiCol_PlotHistogramHovered] = lcars_orange;
}

View File

@@ -4,10 +4,11 @@
// Expects to be included from GUITheme.h after <imgui.h> and RGBA() helper
static void
ApplyOldBookTheme()
// Light variant (existing)
static inline void
ApplyOldBookLightTheme()
{
// Sepia old paper aesthetic
// Sepia old paper aesthetic (light)
const ImVec4 bg0 = RGBA(0xF5E6C8); // paper
const ImVec4 bg1 = RGBA(0xEAD9B8);
const ImVec4 bg2 = RGBA(0xDECBA6);
@@ -102,4 +103,118 @@ ApplyOldBookTheme()
colors[ImGuiCol_PlotLinesHovered] = blue;
colors[ImGuiCol_PlotHistogram] = yellow;
colors[ImGuiCol_PlotHistogramHovered] = red;
}
// Dark variant (new)
static inline void
ApplyOldBookDarkTheme()
{
// Old Book 8 (vim-oldbook8) — exact dark palette mapping
// Source: oldbook8.vim (background=dark)
const ImVec4 bg0 = RGBA(0x3C4855); // Normal guibg
const ImVec4 bg1 = RGBA(0x445160); // Fold/Pmenu bg
const ImVec4 bg2 = RGBA(0x626C77); // StatusLine/MatchParen bg
const ImVec4 bg3 = RGBA(0x85939B); // Delimiter (used as a lighter hover tier)
const ImVec4 fg0 = RGBA(0xD5D4D2); // Normal guifg
const ImVec4 fg1 = RGBA(0x626C77); // Comment/secondary text
const ImVec4 fg2 = RGBA(0xA5A6A4); // Type/Function (used for active controls)
// Accents from scheme
const ImVec4 yellow = RGBA(0xDDD668); // Search
const ImVec4 yellow2 = RGBA(0xD5BC02); // IncSearch
const ImVec4 cyan = RGBA(0x87D7FF); // Visual selection
const ImVec4 green = RGBA(0x5BB899); // DiffAdd
const ImVec4 red = RGBA(0xDB6C6C); // Error/DiffDelete
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] = fg1;
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] = bg1;
colors[ImGuiCol_FrameBgHovered] = bg2;
colors[ImGuiCol_FrameBgActive] = fg2;
colors[ImGuiCol_TitleBg] = bg1;
colors[ImGuiCol_TitleBgActive] = bg2;
colors[ImGuiCol_TitleBgCollapsed] = bg1;
colors[ImGuiCol_MenuBarBg] = bg1;
colors[ImGuiCol_ScrollbarBg] = bg0;
colors[ImGuiCol_ScrollbarGrab] = bg2;
colors[ImGuiCol_ScrollbarGrabHovered] = bg3;
colors[ImGuiCol_ScrollbarGrabActive] = fg2;
colors[ImGuiCol_CheckMark] = yellow;
colors[ImGuiCol_SliderGrab] = yellow;
colors[ImGuiCol_SliderGrabActive] = cyan;
colors[ImGuiCol_Button] = bg2;
colors[ImGuiCol_ButtonHovered] = bg3;
colors[ImGuiCol_ButtonActive] = fg2;
colors[ImGuiCol_Header] = bg2;
colors[ImGuiCol_HeaderHovered] = bg3;
colors[ImGuiCol_HeaderActive] = bg3;
colors[ImGuiCol_Separator] = bg2;
colors[ImGuiCol_SeparatorHovered] = yellow;
colors[ImGuiCol_SeparatorActive] = yellow2;
colors[ImGuiCol_ResizeGrip] = ImVec4(fg1.x, fg1.y, fg1.z, 0.12f);
colors[ImGuiCol_ResizeGripHovered] = ImVec4(cyan.x, cyan.y, cyan.z, 0.67f);
colors[ImGuiCol_ResizeGripActive] = cyan;
colors[ImGuiCol_Tab] = bg1;
colors[ImGuiCol_TabHovered] = bg2;
colors[ImGuiCol_TabActive] = bg2;
colors[ImGuiCol_TabUnfocused] = bg1;
colors[ImGuiCol_TabUnfocusedActive] = bg2;
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(cyan.x, cyan.y, cyan.z, 0.28f);
colors[ImGuiCol_DragDropTarget] = yellow;
colors[ImGuiCol_NavHighlight] = yellow;
colors[ImGuiCol_NavWindowingHighlight] = ImVec4(fg1.x, fg1.y, fg1.z, 0.70f);
colors[ImGuiCol_NavWindowingDimBg] = ImVec4(0.0f, 0.0f, 0.0f, 0.35f);
colors[ImGuiCol_ModalWindowDimBg] = ImVec4(0.0f, 0.0f, 0.0f, 0.35f);
colors[ImGuiCol_PlotLines] = green;
colors[ImGuiCol_PlotLinesHovered] = cyan;
colors[ImGuiCol_PlotHistogram] = yellow;
colors[ImGuiCol_PlotHistogramHovered] = red;
}
static void
ApplyOldBookTheme()
{
// Back-compat: keep calling light by default; GUITheme dispatches variants
ApplyOldBookLightTheme();
}

105
themes/Orbital.h Normal file
View File

@@ -0,0 +1,105 @@
// themes/Orbital.h — Orbital (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 inline void
ApplyOrbitalTheme()
{
// Orbital: deep-space dark with cool blues and magentas
const ImVec4 bg0 = RGBA(0x0C0F12); // background
const ImVec4 bg1 = RGBA(0x12161B);
const ImVec4 bg2 = RGBA(0x192029);
const ImVec4 bg3 = RGBA(0x212A36);
const ImVec4 fg0 = RGBA(0xC8D3E5); // primary text
const ImVec4 fg1 = RGBA(0x9FB2CC); // secondary text
const ImVec4 blue = RGBA(0x6AA2FF); // primary accent
const ImVec4 cyan = RGBA(0x5AD1E6);
const ImVec4 magenta = RGBA(0xD681F8);
const ImVec4 yellow = RGBA(0xE6C17D);
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 *c = style.Colors;
c[ImGuiCol_Text] = fg0;
c[ImGuiCol_TextDisabled] = ImVec4(fg1.x, fg1.y, fg1.z, 0.7f);
c[ImGuiCol_WindowBg] = bg0;
c[ImGuiCol_ChildBg] = bg0;
c[ImGuiCol_PopupBg] = ImVec4(bg1.x, bg1.y, bg1.z, 0.98f);
c[ImGuiCol_Border] = bg2;
c[ImGuiCol_BorderShadow] = RGBA(0x000000, 0.0f);
c[ImGuiCol_FrameBg] = bg2;
c[ImGuiCol_FrameBgHovered] = bg3;
c[ImGuiCol_FrameBgActive] = bg1;
c[ImGuiCol_TitleBg] = bg1;
c[ImGuiCol_TitleBgActive] = bg2;
c[ImGuiCol_TitleBgCollapsed] = bg1;
c[ImGuiCol_MenuBarBg] = bg1;
c[ImGuiCol_ScrollbarBg] = bg0;
c[ImGuiCol_ScrollbarGrab] = bg3;
c[ImGuiCol_ScrollbarGrabHovered] = bg2;
c[ImGuiCol_ScrollbarGrabActive] = bg1;
c[ImGuiCol_CheckMark] = cyan;
c[ImGuiCol_SliderGrab] = cyan;
c[ImGuiCol_SliderGrabActive] = blue;
c[ImGuiCol_Button] = ImVec4(blue.x, blue.y, blue.z, 0.18f);
c[ImGuiCol_ButtonHovered] = ImVec4(blue.x, blue.y, blue.z, 0.28f);
c[ImGuiCol_ButtonActive] = ImVec4(blue.x, blue.y, blue.z, 0.40f);
c[ImGuiCol_Header] = ImVec4(magenta.x, magenta.y, magenta.z, 0.18f);
c[ImGuiCol_HeaderHovered] = ImVec4(magenta.x, magenta.y, magenta.z, 0.28f);
c[ImGuiCol_HeaderActive] = ImVec4(magenta.x, magenta.y, magenta.z, 0.40f);
c[ImGuiCol_Separator] = bg2;
c[ImGuiCol_SeparatorHovered] = cyan;
c[ImGuiCol_SeparatorActive] = blue;
c[ImGuiCol_ResizeGrip] = ImVec4(fg1.x, fg1.y, fg1.z, 0.10f);
c[ImGuiCol_ResizeGripHovered] = ImVec4(cyan.x, cyan.y, cyan.z, 0.67f);
c[ImGuiCol_ResizeGripActive] = blue;
c[ImGuiCol_Tab] = bg2;
c[ImGuiCol_TabHovered] = bg1;
c[ImGuiCol_TabActive] = bg3;
c[ImGuiCol_TabUnfocused] = bg2;
c[ImGuiCol_TabUnfocusedActive] = bg3;
c[ImGuiCol_TableHeaderBg] = bg2;
c[ImGuiCol_TableBorderStrong] = bg1;
c[ImGuiCol_TableBorderLight] = ImVec4(bg1.x, bg1.y, bg1.z, 0.6f);
c[ImGuiCol_TableRowBg] = ImVec4(bg1.x, bg1.y, bg1.z, 0.12f);
c[ImGuiCol_TableRowBgAlt] = ImVec4(bg1.x, bg1.y, bg1.z, 0.22f);
c[ImGuiCol_TextSelectedBg] = ImVec4(blue.x, blue.y, blue.z, 0.28f);
c[ImGuiCol_DragDropTarget] = yellow;
c[ImGuiCol_NavHighlight] = blue;
c[ImGuiCol_NavWindowingHighlight] = ImVec4(fg1.x, fg1.y, fg1.z, 0.70f);
c[ImGuiCol_NavWindowingDimBg] = ImVec4(0.0f, 0.0f, 0.0f, 0.35f);
c[ImGuiCol_ModalWindowDimBg] = ImVec4(0.0f, 0.0f, 0.0f, 0.35f);
c[ImGuiCol_PlotLines] = cyan;
c[ImGuiCol_PlotLinesHovered] = blue;
c[ImGuiCol_PlotHistogram] = yellow;
c[ImGuiCol_PlotHistogramHovered] = magenta;
}

105
themes/WeylandYutani.h Normal file
View File

@@ -0,0 +1,105 @@
// themes/WeylandYutani.h — Weyland-Yutani inspired ImGui theme (header-only)
#pragma once
#include "ThemeHelpers.h"
// Expects to be included from GUITheme.h after <imgui.h> and RGBA() helper
static inline void
ApplyWeylandYutaniTheme()
{
// Corporate sci-fi aesthetic: near-black with hazard yellow accents
const ImVec4 bg0 = RGBA(0x0A0A0A);
const ImVec4 bg1 = RGBA(0x151515);
const ImVec4 bg2 = RGBA(0x202020);
const ImVec4 bg3 = RGBA(0x2B2B2B);
const ImVec4 fg0 = RGBA(0xE6E6E6);
const ImVec4 fg1 = RGBA(0xBDBDBD);
const ImVec4 hazard = RGBA(0xFFC300); // Weyland-Yutani yellow
const ImVec4 orange = RGBA(0xFF8C00);
const ImVec4 cyan = RGBA(0x4CC9F0);
ImGuiStyle &style = ImGui::GetStyle();
style.WindowPadding = ImVec2(10.0f, 8.0f);
style.FramePadding = ImVec2(8.0f, 5.0f);
style.CellPadding = ImVec2(6.0f, 4.0f);
style.ItemSpacing = ImVec2(8.0f, 6.0f);
style.ItemInnerSpacing = ImVec2(6.0f, 4.0f);
style.ScrollbarSize = 14.0f;
style.GrabMinSize = 10.0f;
style.WindowRounding = 2.0f;
style.FrameRounding = 2.0f;
style.PopupRounding = 2.0f;
style.GrabRounding = 2.0f;
style.TabRounding = 2.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] = bg3;
colors[ImGuiCol_BorderShadow] = RGBA(0x000000, 0.0f);
colors[ImGuiCol_FrameBg] = bg2;
colors[ImGuiCol_FrameBgHovered] = ImVec4(hazard.x, hazard.y, hazard.z, 0.20f);
colors[ImGuiCol_FrameBgActive] = ImVec4(orange.x, orange.y, orange.z, 0.25f);
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] = ImVec4(hazard.x, hazard.y, hazard.z, 0.50f);
colors[ImGuiCol_ScrollbarGrabActive] = hazard;
colors[ImGuiCol_CheckMark] = hazard;
colors[ImGuiCol_SliderGrab] = hazard;
colors[ImGuiCol_SliderGrabActive] = orange;
colors[ImGuiCol_Button] = bg3;
colors[ImGuiCol_ButtonHovered] = ImVec4(hazard.x, hazard.y, hazard.z, 0.25f);
colors[ImGuiCol_ButtonActive] = ImVec4(hazard.x, hazard.y, hazard.z, 0.40f);
colors[ImGuiCol_Header] = ImVec4(hazard.x, hazard.y, hazard.z, 0.25f);
colors[ImGuiCol_HeaderHovered] = ImVec4(cyan.x, cyan.y, cyan.z, 0.30f);
colors[ImGuiCol_HeaderActive] = ImVec4(orange.x, orange.y, orange.z, 0.30f);
colors[ImGuiCol_Separator] = bg3;
colors[ImGuiCol_SeparatorHovered] = hazard;
colors[ImGuiCol_SeparatorActive] = orange;
colors[ImGuiCol_ResizeGrip] = ImVec4(fg1.x, fg1.y, fg1.z, 0.12f);
colors[ImGuiCol_ResizeGripHovered] = ImVec4(hazard.x, hazard.y, hazard.z, 0.67f);
colors[ImGuiCol_ResizeGripActive] = orange;
colors[ImGuiCol_Tab] = bg2;
colors[ImGuiCol_TabHovered] = ImVec4(hazard.x, hazard.y, hazard.z, 0.25f);
colors[ImGuiCol_TabActive] = ImVec4(cyan.x, cyan.y, cyan.z, 0.30f);
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(hazard.x, hazard.y, hazard.z, 0.28f);
colors[ImGuiCol_DragDropTarget] = orange;
colors[ImGuiCol_NavHighlight] = cyan;
colors[ImGuiCol_NavWindowingHighlight] = ImVec4(fg0.x, fg0.y, fg0.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] = cyan;
colors[ImGuiCol_PlotLinesHovered] = hazard;
colors[ImGuiCol_PlotHistogram] = hazard;
colors[ImGuiCol_PlotHistogramHovered] = orange;
}