Add fill color 1 and back color 0 to theme editor

This commit is contained in:
Yousef Khadadeh 2026-06-25 15:21:32 +03:00
parent c234d921f0
commit ca859671c3
2 changed files with 3 additions and 1 deletions

View file

@ -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<Theme> get_default_dark_mode();

View file

@ -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<SkColor4f>(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);