mirror of
https://github.com/tildearrow/furnace.git
synced 2024-12-18 06:20:17 +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 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();
|
||||||
|
|
||||||
|
|
|
@ -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");
|
||||||
|
|
Loading…
Reference in a new issue