Compare commits
4 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 34eaa72033 | |||
| f49f1698f4 | |||
| f4b3188069 | |||
| 2571ab79c1 |
@@ -4,7 +4,7 @@ project(kte)
|
|||||||
include(GNUInstallDirs)
|
include(GNUInstallDirs)
|
||||||
|
|
||||||
set(CMAKE_CXX_STANDARD 20)
|
set(CMAKE_CXX_STANDARD 20)
|
||||||
set(KTE_VERSION "1.8.0")
|
set(KTE_VERSION "1.8.3")
|
||||||
|
|
||||||
# Default to terminal-only build to avoid SDL/OpenGL dependency by default.
|
# Default to terminal-only build to avoid SDL/OpenGL dependency by default.
|
||||||
# Enable with -DBUILD_GUI=ON when SDL2/OpenGL/Freetype are available.
|
# Enable with -DBUILD_GUI=ON when SDL2/OpenGL/Freetype are available.
|
||||||
@@ -14,6 +14,7 @@ set(BUILD_TESTS ON CACHE BOOL "Enable building test programs.")
|
|||||||
set(KTE_FONT_SIZE "18.0" CACHE STRING "Default font size for GUI")
|
set(KTE_FONT_SIZE "18.0" CACHE STRING "Default font size for GUI")
|
||||||
option(KTE_UNDO_DEBUG "Enable undo instrumentation logs" OFF)
|
option(KTE_UNDO_DEBUG "Enable undo instrumentation logs" OFF)
|
||||||
option(KTE_ENABLE_TREESITTER "Enable optional Tree-sitter highlighter adapter" OFF)
|
option(KTE_ENABLE_TREESITTER "Enable optional Tree-sitter highlighter adapter" OFF)
|
||||||
|
option(KTE_STATIC_LINK "Enable static linking on Linux" ON)
|
||||||
|
|
||||||
# Optionally enable AddressSanitizer (ASan)
|
# Optionally enable AddressSanitizer (ASan)
|
||||||
option(ENABLE_ASAN "Enable AddressSanitizer for builds" OFF)
|
option(ENABLE_ASAN "Enable AddressSanitizer for builds" OFF)
|
||||||
@@ -285,7 +286,7 @@ endif ()
|
|||||||
target_link_libraries(kte ${CURSES_LIBRARIES})
|
target_link_libraries(kte ${CURSES_LIBRARIES})
|
||||||
|
|
||||||
# Static linking on Linux only (macOS does not support static linking of system libraries)
|
# Static linking on Linux only (macOS does not support static linking of system libraries)
|
||||||
if (NOT APPLE)
|
if (NOT APPLE AND KTE_STATIC_LINK)
|
||||||
target_link_options(kte PRIVATE -static)
|
target_link_options(kte PRIVATE -static)
|
||||||
endif ()
|
endif ()
|
||||||
|
|
||||||
@@ -375,7 +376,7 @@ if (BUILD_TESTS)
|
|||||||
endif ()
|
endif ()
|
||||||
|
|
||||||
# Static linking on Linux only (macOS does not support static linking of system libraries)
|
# Static linking on Linux only (macOS does not support static linking of system libraries)
|
||||||
if (NOT APPLE)
|
if (NOT APPLE AND KTE_STATIC_LINK)
|
||||||
target_link_options(kte_tests PRIVATE -static)
|
target_link_options(kte_tests PRIVATE -static)
|
||||||
endif ()
|
endif ()
|
||||||
endif ()
|
endif ()
|
||||||
@@ -418,7 +419,7 @@ if (BUILD_GUI)
|
|||||||
endif ()
|
endif ()
|
||||||
|
|
||||||
# Static linking on Linux only (macOS does not support static linking of system libraries)
|
# Static linking on Linux only (macOS does not support static linking of system libraries)
|
||||||
if (NOT APPLE)
|
if (NOT APPLE AND KTE_STATIC_LINK)
|
||||||
target_link_options(kge PRIVATE -static)
|
target_link_options(kge PRIVATE -static)
|
||||||
endif ()
|
endif ()
|
||||||
|
|
||||||
|
|||||||
37
GUITheme.h
37
GUITheme.h
@@ -330,6 +330,7 @@ enum class ThemeId {
|
|||||||
Amber = 10,
|
Amber = 10,
|
||||||
WeylandYutani = 11,
|
WeylandYutani = 11,
|
||||||
Orbital = 12,
|
Orbital = 12,
|
||||||
|
Tufte = 13,
|
||||||
};
|
};
|
||||||
|
|
||||||
// Current theme tracking
|
// Current theme tracking
|
||||||
@@ -377,6 +378,7 @@ BackgroundModeName()
|
|||||||
#include "themes/WeylandYutani.h"
|
#include "themes/WeylandYutani.h"
|
||||||
#include "themes/Zenburn.h"
|
#include "themes/Zenburn.h"
|
||||||
#include "themes/Orbital.h"
|
#include "themes/Orbital.h"
|
||||||
|
#include "themes/Tufte.h"
|
||||||
|
|
||||||
|
|
||||||
// Theme abstraction and registry (generalized theme system)
|
// Theme abstraction and registry (generalized theme system)
|
||||||
@@ -488,6 +490,28 @@ struct OrbitalTheme final : Theme {
|
|||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
struct TufteTheme final : Theme {
|
||||||
|
[[nodiscard]] const char *Name() const override
|
||||||
|
{
|
||||||
|
return "tufte";
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
void Apply() const override
|
||||||
|
{
|
||||||
|
if (gBackgroundMode == BackgroundMode::Dark)
|
||||||
|
ApplyTufteDarkTheme();
|
||||||
|
else
|
||||||
|
ApplyTufteLightTheme();
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
ThemeId Id() override
|
||||||
|
{
|
||||||
|
return ThemeId::Tufte;
|
||||||
|
}
|
||||||
|
};
|
||||||
|
|
||||||
struct ZenburnTheme final : Theme {
|
struct ZenburnTheme final : Theme {
|
||||||
[[nodiscard]] const char *Name() const override
|
[[nodiscard]] const char *Name() const override
|
||||||
{
|
{
|
||||||
@@ -657,7 +681,7 @@ ThemeRegistry()
|
|||||||
static std::vector<std::unique_ptr<Theme> > reg;
|
static std::vector<std::unique_ptr<Theme> > reg;
|
||||||
if (reg.empty()) {
|
if (reg.empty()) {
|
||||||
// Alphabetical by canonical name:
|
// Alphabetical by canonical name:
|
||||||
// amber, eink, everforest, gruvbox, kanagawa-paper, lcars, nord, old-book, orbital, plan9, solarized, weyland-yutani, zenburn
|
// amber, eink, everforest, gruvbox, kanagawa-paper, lcars, nord, old-book, orbital, plan9, solarized, tufte, weyland-yutani, zenburn
|
||||||
reg.emplace_back(std::make_unique<detail::AmberTheme>());
|
reg.emplace_back(std::make_unique<detail::AmberTheme>());
|
||||||
reg.emplace_back(std::make_unique<detail::EInkTheme>());
|
reg.emplace_back(std::make_unique<detail::EInkTheme>());
|
||||||
reg.emplace_back(std::make_unique<detail::EverforestTheme>());
|
reg.emplace_back(std::make_unique<detail::EverforestTheme>());
|
||||||
@@ -669,6 +693,7 @@ ThemeRegistry()
|
|||||||
reg.emplace_back(std::make_unique<detail::OrbitalTheme>());
|
reg.emplace_back(std::make_unique<detail::OrbitalTheme>());
|
||||||
reg.emplace_back(std::make_unique<detail::Plan9Theme>());
|
reg.emplace_back(std::make_unique<detail::Plan9Theme>());
|
||||||
reg.emplace_back(std::make_unique<detail::SolarizedTheme>());
|
reg.emplace_back(std::make_unique<detail::SolarizedTheme>());
|
||||||
|
reg.emplace_back(std::make_unique<detail::TufteTheme>());
|
||||||
reg.emplace_back(std::make_unique<detail::WeylandYutaniTheme>());
|
reg.emplace_back(std::make_unique<detail::WeylandYutaniTheme>());
|
||||||
reg.emplace_back(std::make_unique<detail::ZenburnTheme>());
|
reg.emplace_back(std::make_unique<detail::ZenburnTheme>());
|
||||||
}
|
}
|
||||||
@@ -855,10 +880,12 @@ ThemeIndexFromId(const ThemeId id)
|
|||||||
return 9;
|
return 9;
|
||||||
case ThemeId::Solarized:
|
case ThemeId::Solarized:
|
||||||
return 10;
|
return 10;
|
||||||
case ThemeId::WeylandYutani:
|
case ThemeId::Tufte:
|
||||||
return 11;
|
return 11;
|
||||||
case ThemeId::Zenburn:
|
case ThemeId::WeylandYutani:
|
||||||
return 12;
|
return 12;
|
||||||
|
case ThemeId::Zenburn:
|
||||||
|
return 13;
|
||||||
}
|
}
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
@@ -892,8 +919,10 @@ ThemeIdFromIndex(const size_t idx)
|
|||||||
case 10:
|
case 10:
|
||||||
return ThemeId::Solarized;
|
return ThemeId::Solarized;
|
||||||
case 11:
|
case 11:
|
||||||
return ThemeId::WeylandYutani;
|
return ThemeId::Tufte;
|
||||||
case 12:
|
case 12:
|
||||||
|
return ThemeId::WeylandYutani;
|
||||||
|
case 13:
|
||||||
return ThemeId::Zenburn;
|
return ThemeId::Zenburn;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -48,6 +48,7 @@ stdenv.mkDerivation {
|
|||||||
"-DBUILD_GUI=${if graphical then "ON" else "OFF"}"
|
"-DBUILD_GUI=${if graphical then "ON" else "OFF"}"
|
||||||
"-DKTE_USE_QT=${if graphical-qt then "ON" else "OFF"}"
|
"-DKTE_USE_QT=${if graphical-qt then "ON" else "OFF"}"
|
||||||
"-DCMAKE_BUILD_TYPE=Debug"
|
"-DCMAKE_BUILD_TYPE=Debug"
|
||||||
|
"-DKTE_STATIC_LINK=OFF"
|
||||||
];
|
];
|
||||||
|
|
||||||
installPhase = ''
|
installPhase = ''
|
||||||
|
|||||||
@@ -5,6 +5,7 @@
|
|||||||
|
|
||||||
#include <cstdint>
|
#include <cstdint>
|
||||||
#include <cstdio>
|
#include <cstdio>
|
||||||
|
#include <cstring>
|
||||||
#include <fstream>
|
#include <fstream>
|
||||||
#include <string>
|
#include <string>
|
||||||
#include <vector>
|
#include <vector>
|
||||||
|
|||||||
203
themes/Tufte.h
Normal file
203
themes/Tufte.h
Normal file
@@ -0,0 +1,203 @@
|
|||||||
|
// themes/Tufte.h — Edward Tufte inspired ImGui theme (header-only)
|
||||||
|
// Warm cream paper, dark ink, minimal chrome, restrained accent colors.
|
||||||
|
#pragma once
|
||||||
|
#include "ThemeHelpers.h"
|
||||||
|
|
||||||
|
// Light variant (primary — Tufte's books are fundamentally light)
|
||||||
|
static inline void
|
||||||
|
ApplyTufteLightTheme()
|
||||||
|
{
|
||||||
|
// Tufte palette: warm cream paper with near-black ink
|
||||||
|
const ImVec4 paper = RGBA(0xFFFFF8); // Tufte's signature warm white
|
||||||
|
const ImVec4 bg1 = RGBA(0xF4F0E8); // slightly darker cream
|
||||||
|
const ImVec4 bg2 = RGBA(0xEAE6DE); // UI elements
|
||||||
|
const ImVec4 bg3 = RGBA(0xDDD9D1); // hover/active
|
||||||
|
const ImVec4 ink = RGBA(0x111111); // near-black text
|
||||||
|
const ImVec4 dim = RGBA(0x6B6B6B); // disabled/secondary text
|
||||||
|
const ImVec4 border = RGBA(0xD0CCC4); // subtle borders
|
||||||
|
|
||||||
|
// Tufte uses color sparingly: muted red for emphasis, navy for links
|
||||||
|
const ImVec4 red = RGBA(0xA00000); // restrained dark red
|
||||||
|
const ImVec4 blue = RGBA(0x1F3F6F); // dark navy
|
||||||
|
|
||||||
|
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 = 12.0f;
|
||||||
|
style.GrabMinSize = 10.0f;
|
||||||
|
style.WindowRounding = 0.0f; // sharp edges — typographic, not app-like
|
||||||
|
style.FrameRounding = 0.0f;
|
||||||
|
style.PopupRounding = 0.0f;
|
||||||
|
style.GrabRounding = 0.0f;
|
||||||
|
style.TabRounding = 0.0f;
|
||||||
|
style.WindowBorderSize = 1.0f;
|
||||||
|
style.FrameBorderSize = 0.0f; // minimal frame borders
|
||||||
|
|
||||||
|
ImVec4 *colors = style.Colors;
|
||||||
|
colors[ImGuiCol_Text] = ink;
|
||||||
|
colors[ImGuiCol_TextDisabled] = dim;
|
||||||
|
colors[ImGuiCol_WindowBg] = paper;
|
||||||
|
colors[ImGuiCol_ChildBg] = paper;
|
||||||
|
colors[ImGuiCol_PopupBg] = ImVec4(bg1.x, bg1.y, bg1.z, 0.98f);
|
||||||
|
colors[ImGuiCol_Border] = border;
|
||||||
|
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] = paper;
|
||||||
|
colors[ImGuiCol_ScrollbarGrab] = bg3;
|
||||||
|
colors[ImGuiCol_ScrollbarGrabHovered] = bg2;
|
||||||
|
colors[ImGuiCol_ScrollbarGrabActive] = border;
|
||||||
|
|
||||||
|
colors[ImGuiCol_CheckMark] = ink;
|
||||||
|
colors[ImGuiCol_SliderGrab] = ink;
|
||||||
|
colors[ImGuiCol_SliderGrabActive] = blue;
|
||||||
|
|
||||||
|
colors[ImGuiCol_Button] = bg2;
|
||||||
|
colors[ImGuiCol_ButtonHovered] = bg3;
|
||||||
|
colors[ImGuiCol_ButtonActive] = bg1;
|
||||||
|
|
||||||
|
colors[ImGuiCol_Header] = bg2;
|
||||||
|
colors[ImGuiCol_HeaderHovered] = bg3;
|
||||||
|
colors[ImGuiCol_HeaderActive] = bg3;
|
||||||
|
|
||||||
|
colors[ImGuiCol_Separator] = border;
|
||||||
|
colors[ImGuiCol_SeparatorHovered] = bg3;
|
||||||
|
colors[ImGuiCol_SeparatorActive] = red;
|
||||||
|
|
||||||
|
colors[ImGuiCol_ResizeGrip] = ImVec4(ink.x, ink.y, ink.z, 0.10f);
|
||||||
|
colors[ImGuiCol_ResizeGripHovered] = ImVec4(red.x, red.y, red.z, 0.50f);
|
||||||
|
colors[ImGuiCol_ResizeGripActive] = red;
|
||||||
|
|
||||||
|
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] = border;
|
||||||
|
colors[ImGuiCol_TableBorderLight] = ImVec4(border.x, border.y, border.z, 0.5f);
|
||||||
|
colors[ImGuiCol_TableRowBg] = ImVec4(bg1.x, bg1.y, bg1.z, 0.0f);
|
||||||
|
colors[ImGuiCol_TableRowBgAlt] = ImVec4(bg1.x, bg1.y, bg1.z, 0.30f);
|
||||||
|
|
||||||
|
colors[ImGuiCol_TextSelectedBg] = ImVec4(red.x, red.y, red.z, 0.15f);
|
||||||
|
colors[ImGuiCol_DragDropTarget] = red;
|
||||||
|
colors[ImGuiCol_NavHighlight] = red;
|
||||||
|
colors[ImGuiCol_NavWindowingHighlight] = ImVec4(ink.x, ink.y, ink.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] = blue;
|
||||||
|
colors[ImGuiCol_PlotLinesHovered] = red;
|
||||||
|
colors[ImGuiCol_PlotHistogram] = blue;
|
||||||
|
colors[ImGuiCol_PlotHistogramHovered] = red;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
// Dark variant — warm charcoal with cream ink, same restrained accents
|
||||||
|
static inline void
|
||||||
|
ApplyTufteDarkTheme()
|
||||||
|
{
|
||||||
|
const ImVec4 bg0 = RGBA(0x1C1B19); // warm near-black
|
||||||
|
const ImVec4 bg1 = RGBA(0x252420); // slightly lighter
|
||||||
|
const ImVec4 bg2 = RGBA(0x302F2A); // UI elements
|
||||||
|
const ImVec4 bg3 = RGBA(0x3D3C36); // hover/active
|
||||||
|
const ImVec4 ink = RGBA(0xEAE6DE); // cream text (inverted paper)
|
||||||
|
const ImVec4 dim = RGBA(0x9A9690); // disabled text
|
||||||
|
const ImVec4 border = RGBA(0x4A4840); // subtle borders
|
||||||
|
|
||||||
|
const ImVec4 red = RGBA(0xD06060); // warmer red for dark bg
|
||||||
|
const ImVec4 blue = RGBA(0x7098C0); // lighter navy for dark bg
|
||||||
|
|
||||||
|
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 = 12.0f;
|
||||||
|
style.GrabMinSize = 10.0f;
|
||||||
|
style.WindowRounding = 0.0f;
|
||||||
|
style.FrameRounding = 0.0f;
|
||||||
|
style.PopupRounding = 0.0f;
|
||||||
|
style.GrabRounding = 0.0f;
|
||||||
|
style.TabRounding = 0.0f;
|
||||||
|
style.WindowBorderSize = 1.0f;
|
||||||
|
style.FrameBorderSize = 0.0f;
|
||||||
|
|
||||||
|
ImVec4 *colors = style.Colors;
|
||||||
|
colors[ImGuiCol_Text] = ink;
|
||||||
|
colors[ImGuiCol_TextDisabled] = dim;
|
||||||
|
colors[ImGuiCol_WindowBg] = bg0;
|
||||||
|
colors[ImGuiCol_ChildBg] = bg0;
|
||||||
|
colors[ImGuiCol_PopupBg] = ImVec4(bg1.x, bg1.y, bg1.z, 0.98f);
|
||||||
|
colors[ImGuiCol_Border] = border;
|
||||||
|
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] = border;
|
||||||
|
colors[ImGuiCol_ScrollbarGrabActive] = dim;
|
||||||
|
|
||||||
|
colors[ImGuiCol_CheckMark] = ink;
|
||||||
|
colors[ImGuiCol_SliderGrab] = ink;
|
||||||
|
colors[ImGuiCol_SliderGrabActive] = blue;
|
||||||
|
|
||||||
|
colors[ImGuiCol_Button] = bg2;
|
||||||
|
colors[ImGuiCol_ButtonHovered] = bg3;
|
||||||
|
colors[ImGuiCol_ButtonActive] = bg1;
|
||||||
|
|
||||||
|
colors[ImGuiCol_Header] = bg2;
|
||||||
|
colors[ImGuiCol_HeaderHovered] = bg3;
|
||||||
|
colors[ImGuiCol_HeaderActive] = bg3;
|
||||||
|
|
||||||
|
colors[ImGuiCol_Separator] = border;
|
||||||
|
colors[ImGuiCol_SeparatorHovered] = bg3;
|
||||||
|
colors[ImGuiCol_SeparatorActive] = red;
|
||||||
|
|
||||||
|
colors[ImGuiCol_ResizeGrip] = ImVec4(ink.x, ink.y, ink.z, 0.10f);
|
||||||
|
colors[ImGuiCol_ResizeGripHovered] = ImVec4(red.x, red.y, red.z, 0.50f);
|
||||||
|
colors[ImGuiCol_ResizeGripActive] = red;
|
||||||
|
|
||||||
|
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] = border;
|
||||||
|
colors[ImGuiCol_TableBorderLight] = ImVec4(border.x, border.y, border.z, 0.5f);
|
||||||
|
colors[ImGuiCol_TableRowBg] = ImVec4(bg1.x, bg1.y, bg1.z, 0.0f);
|
||||||
|
colors[ImGuiCol_TableRowBgAlt] = ImVec4(bg1.x, bg1.y, bg1.z, 0.30f);
|
||||||
|
|
||||||
|
colors[ImGuiCol_TextSelectedBg] = ImVec4(red.x, red.y, red.z, 0.20f);
|
||||||
|
colors[ImGuiCol_DragDropTarget] = red;
|
||||||
|
colors[ImGuiCol_NavHighlight] = red;
|
||||||
|
colors[ImGuiCol_NavWindowingHighlight] = ImVec4(ink.x, ink.y, ink.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] = blue;
|
||||||
|
colors[ImGuiCol_PlotLinesHovered] = red;
|
||||||
|
colors[ImGuiCol_PlotHistogram] = blue;
|
||||||
|
colors[ImGuiCol_PlotHistogramHovered] = red;
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user