From ca859671c34f7de58a16abea1477e79a3daaf187 Mon Sep 17 00:00:00 2001 From: Yousef Khadadeh Date: Thu, 25 Jun 2026 15:21:32 +0300 Subject: [PATCH] Add fill color 1 and back color 0 to theme editor --- src/GUIStuff/Elements/GUIStuffHelpers.hpp | 2 +- src/Toolbar.cpp | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/src/GUIStuff/Elements/GUIStuffHelpers.hpp b/src/GUIStuff/Elements/GUIStuffHelpers.hpp index 027b4b2..7c0be6b 100644 --- a/src/GUIStuff/Elements/GUIStuffHelpers.hpp +++ b/src/GUIStuff/Elements/GUIStuffHelpers.hpp @@ -108,7 +108,7 @@ struct Theme { uint16_t padding1 = 8; float windowCorners1 = 8; - NLOHMANN_DEFINE_TYPE_INTRUSIVE_WITH_DEFAULT(Theme, fillColor1, fillColor2, backColor1, backColor2, frontColor1, frontColor2, errorColor, warningColor, hoverExpandTime, childGap1, padding1, windowCorners1) + NLOHMANN_DEFINE_TYPE_INTRUSIVE_WITH_DEFAULT(Theme, fillColor1, fillColor2, backColor0, backColor1, backColor2, frontColor1, frontColor2, errorColor, warningColor, hoverExpandTime, childGap1, padding1, windowCorners1) }; std::shared_ptr get_default_dark_mode(); diff --git a/src/Toolbar.cpp b/src/Toolbar.cpp index 4d58e79..6529ac3 100644 --- a/src/Toolbar.cpp +++ b/src/Toolbar.cpp @@ -1645,7 +1645,9 @@ void Toolbar::general_settings_inner_gui() { auto theme_color_field = [&](const char* id, const char* name, SkColor4f* c) { color_picker_button_field(gui, id, name, c, {}); }; + theme_color_field("fillColor1", "Fill Color 1", &io.theme->fillColor1); theme_color_field("fillColor2", "Fill Color 2", &io.theme->fillColor2); + theme_color_field("backColor0", "Back Color 0", &io.theme->backColor0); theme_color_field("backColor1", "Back Color 1", &io.theme->backColor1); theme_color_field("backColor2", "Back Color 2", &io.theme->backColor2); theme_color_field("frontColor1", "Front Color 1", &io.theme->frontColor1);