add color push/pop

This commit is contained in:
Eknous-P 2023-08-26 15:24:32 +04:00
parent ccdd5693c6
commit f0bcb1c06a
2 changed files with 10 additions and 0 deletions

View file

@ -2181,6 +2181,8 @@ class FurnaceGUI {
void pushDestColor(); void pushDestColor();
void popDestColor(); void popDestColor();
void pushAddColor();
void popAddColor();
void pushWarningColor(bool warnCond, bool errorCond=false); void pushWarningColor(bool warnCond, bool errorCond=false);
void popWarningColor(); void popWarningColor();

View file

@ -3992,6 +3992,14 @@ void FurnaceGUI::popDestColor() {
popAccentColors(); popAccentColors();
} }
void FurnaceGUI::pushAddColor() {
pushAccentColors(uiColors[GUI_COLOR_ADDITIVE],uiColors[GUI_COLOR_ADDITIVE],uiColors[GUI_COLOR_ADDITIVE],ImVec4(0.0f,0.0f,0.0f,0.0f));
}
void FurnaceGUI::popAddColor() {
popAccentColors();
}
void FurnaceGUI::pushWarningColor(bool warnCond, bool errorCond) { void FurnaceGUI::pushWarningColor(bool warnCond, bool errorCond) {
if (warnColorPushed) { if (warnColorPushed) {
logE("warnColorPushed"); logE("warnColorPushed");