mirror of
https://git.do.srb2.org/STJr/ZoneBuilder.git
synced 2025-04-22 09:31:14 +00:00
Fix thing/linedef label text for dark mode
This commit is contained in:
parent
dbdb8bc931
commit
6b21d45fac
3 changed files with 9 additions and 1 deletions
|
@ -80,6 +80,7 @@ namespace CodeImp.DoomBuilder.Controls
|
|||
|
||||
baseflags.TryGetValue(p.Key, out string basevalue);
|
||||
checkboxes[i].BackColor = (p.Value != basevalue) ? Color.LightGray : Color.White;
|
||||
checkboxes[i].ForeColor = Color.Black;
|
||||
|
||||
i++;
|
||||
}
|
||||
|
|
|
@ -24,6 +24,8 @@ using System.Windows.Forms;
|
|||
using CodeImp.DoomBuilder.Config;
|
||||
using CodeImp.DoomBuilder.Data;
|
||||
using CodeImp.DoomBuilder.GZBuilder.Controls;
|
||||
using static System.Windows.Forms.VisualStyles.VisualStyleElement.Button;
|
||||
|
||||
|
||||
#endregion
|
||||
|
||||
|
@ -372,6 +374,7 @@ namespace CodeImp.DoomBuilder.Controls
|
|||
parametercaption.Location = new System.Drawing.Point(Math.Max(60 - offset, 0), 27);
|
||||
parametercaption.Size = new System.Drawing.Size(offset, 13);
|
||||
parametercaption.BackColor = (parametercaption.Text != "Parameter:") ? Color.LightGray : Color.White;
|
||||
parametercaption.ForeColor = Color.Black;
|
||||
}
|
||||
|
||||
if(doupdatenode)
|
||||
|
|
|
@ -289,6 +289,7 @@ namespace CodeImp.DoomBuilder.Windows
|
|||
{
|
||||
groupBox4.Text = ti.AngleText;
|
||||
groupBox4.BackColor = (groupBox4.Text != "Angle") ? Color.LightGray : Color.White;
|
||||
groupBox4.ForeColor = Color.Black;
|
||||
label3.Text = ti.FlagsValueText + ":";
|
||||
}
|
||||
}
|
||||
|
@ -302,6 +303,7 @@ namespace CodeImp.DoomBuilder.Windows
|
|||
preventmapchange = false;
|
||||
flagsvalue.Text = evaluateFlagsValue();
|
||||
label3.BackColor = (label3.Text != "Flags value:") ? Color.LightGray : Color.White;
|
||||
label3.ForeColor = Color.Black;
|
||||
|
||||
argscontrol.UpdateScriptControls(); //mxd
|
||||
actionhelp.UpdateAction(action.GetValue()); //mxd
|
||||
|
@ -642,8 +644,10 @@ namespace CodeImp.DoomBuilder.Windows
|
|||
flags.UpdateCheckboxes(newFlags, General.Map.Config.ThingFlags);
|
||||
groupBox4.Text = (thinginfo == null) ? "Angle" : thinginfo.AngleText;
|
||||
groupBox4.BackColor = (groupBox4.Text != "Angle") ? Color.LightGray : Color.White;
|
||||
label3.Text = (thinginfo == null) ? "Flags value:" : thinginfo.FlagsValueText + ":";
|
||||
groupBox4.ForeColor = Color.Black;
|
||||
label3.Text = (thinginfo == null) ? "Flags value:" : thinginfo.FlagsValueText + ":";
|
||||
label3.BackColor = (label3.Text != "Flags value:") ? Color.LightGray : Color.White;
|
||||
label3.ForeColor = Color.Black;
|
||||
|
||||
General.Map.IsChanged = true;
|
||||
if(OnValuesChanged != null) OnValuesChanged(this, EventArgs.Empty);
|
||||
|
|
Loading…
Reference in a new issue