mirror of
https://github.com/tildearrow/furnace.git
synced 2024-12-17 22:10:12 +00:00
add color push/pop
This commit is contained in:
parent
ccdd5693c6
commit
f0bcb1c06a
2 changed files with 10 additions and 0 deletions
|
@ -2181,6 +2181,8 @@ class FurnaceGUI {
|
|||
|
||||
void pushDestColor();
|
||||
void popDestColor();
|
||||
void pushAddColor();
|
||||
void popAddColor();
|
||||
void pushWarningColor(bool warnCond, bool errorCond=false);
|
||||
void popWarningColor();
|
||||
|
||||
|
|
|
@ -3992,6 +3992,14 @@ void FurnaceGUI::popDestColor() {
|
|||
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) {
|
||||
if (warnColorPushed) {
|
||||
logE("warnColorPushed");
|
||||
|
|
Loading…
Reference in a new issue