Fix color of special designs.

This commit is contained in:
Ottermandias 2024-03-08 16:45:20 +01:00
parent e8907871af
commit 2c0423d2b5

View file

@ -48,7 +48,6 @@ public abstract class DesignComboBase : FilterComboCache<Tuple<IDesignStandIn, s
switch (design)
{
case Design realDesign:
{
using var color = ImRaii.PushColor(ImGuiCol.Text, DesignColors.GetColor(realDesign));
ret = base.DrawSelectable(globalIdx, selected);
@ -57,6 +56,7 @@ public abstract class DesignComboBase : FilterComboCache<Tuple<IDesignStandIn, s
}
case QuickSelectedDesign quickDesign:
{
using var color = ImRaii.PushColor(ImGuiCol.Text, ColorId.NormalDesign.Value());
ret = base.DrawSelectable(globalIdx, selected);
DrawResolvedDesign(quickDesign);
return ret;