mirror of
https://github.com/goatcorp/Dalamud.git
synced 2025-12-13 12:14:16 +01:00
feat: add missing color overrides (#803)
This commit is contained in:
parent
dd10b4f169
commit
d676473928
3 changed files with 108 additions and 9 deletions
|
|
@ -45,12 +45,12 @@ namespace Dalamud.Interface.Colors
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Gets yellow used in dalamud.
|
/// Gets yellow used in dalamud.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public static Vector4 DalamudYellow { get; } = new(1f, 1f, .4f, 1f);
|
public static Vector4 DalamudYellow { get; internal set; } = new(1f, 1f, .4f, 1f);
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Gets violet used in dalamud.
|
/// Gets violet used in dalamud.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public static Vector4 DalamudViolet { get; } = new(0.770f, 0.700f, 0.965f, 1.000f);
|
public static Vector4 DalamudViolet { get; internal set; } = new(0.770f, 0.700f, 0.965f, 1.000f);
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Gets tank blue (UIColor37).
|
/// Gets tank blue (UIColor37).
|
||||||
|
|
@ -70,36 +70,36 @@ namespace Dalamud.Interface.Colors
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Gets parsed grey.
|
/// Gets parsed grey.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public static Vector4 ParsedGrey { get; } = new(0.4f, 0.4f, 0.4f, 1f);
|
public static Vector4 ParsedGrey { get; internal set; } = new(0.4f, 0.4f, 0.4f, 1f);
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Gets parsed green.
|
/// Gets parsed green.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public static Vector4 ParsedGreen { get; } = new(0.117f, 1f, 0f, 1f);
|
public static Vector4 ParsedGreen { get; internal set; } = new(0.117f, 1f, 0f, 1f);
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Gets parsed blue.
|
/// Gets parsed blue.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public static Vector4 ParsedBlue { get; } = new(0f, 0.439f, 1f, 1f);
|
public static Vector4 ParsedBlue { get; internal set; } = new(0f, 0.439f, 1f, 1f);
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Gets parsed purple.
|
/// Gets parsed purple.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public static Vector4 ParsedPurple { get; } = new(0.639f, 0.207f, 0.933f, 1f);
|
public static Vector4 ParsedPurple { get; internal set; } = new(0.639f, 0.207f, 0.933f, 1f);
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Gets parsed orange.
|
/// Gets parsed orange.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public static Vector4 ParsedOrange { get; } = new(1f, 0.501f, 0f, 1f);
|
public static Vector4 ParsedOrange { get; internal set; } = new(1f, 0.501f, 0f, 1f);
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Gets parsed pink.
|
/// Gets parsed pink.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public static Vector4 ParsedPink { get; } = new(0.886f, 0.407f, 0.658f, 1f);
|
public static Vector4 ParsedPink { get; internal set; } = new(0.886f, 0.407f, 0.658f, 1f);
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Gets parsed gold.
|
/// Gets parsed gold.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public static Vector4 ParsedGold { get; } = new(0.898f, 0.8f, 0.501f, 1f);
|
public static Vector4 ParsedGold { get; internal set; } = new(0.898f, 0.8f, 0.501f, 1f);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -39,6 +39,33 @@ namespace Dalamud.Interface.Style
|
||||||
[JsonProperty("j")]
|
[JsonProperty("j")]
|
||||||
public Vector4? DPSRed { get; set; }
|
public Vector4? DPSRed { get; set; }
|
||||||
|
|
||||||
|
[JsonProperty("k")]
|
||||||
|
public Vector4? DalamudYellow { get; set; }
|
||||||
|
|
||||||
|
[JsonProperty("l")]
|
||||||
|
public Vector4? DalamudViolet { get; set; }
|
||||||
|
|
||||||
|
[JsonProperty("m")]
|
||||||
|
public Vector4? ParsedGrey { get; set; }
|
||||||
|
|
||||||
|
[JsonProperty("n")]
|
||||||
|
public Vector4? ParsedGreen { get; set; }
|
||||||
|
|
||||||
|
[JsonProperty("o")]
|
||||||
|
public Vector4? ParsedBlue { get; set; }
|
||||||
|
|
||||||
|
[JsonProperty("p")]
|
||||||
|
public Vector4? ParsedPurple { get; set; }
|
||||||
|
|
||||||
|
[JsonProperty("q")]
|
||||||
|
public Vector4? ParsedOrange { get; set; }
|
||||||
|
|
||||||
|
[JsonProperty("r")]
|
||||||
|
public Vector4? ParsedPink { get; set; }
|
||||||
|
|
||||||
|
[JsonProperty("s")]
|
||||||
|
public Vector4? ParsedGold { get; set; }
|
||||||
|
|
||||||
public void Apply()
|
public void Apply()
|
||||||
{
|
{
|
||||||
if (this.DalamudRed.HasValue)
|
if (this.DalamudRed.HasValue)
|
||||||
|
|
@ -90,6 +117,51 @@ namespace Dalamud.Interface.Style
|
||||||
{
|
{
|
||||||
ImGuiColors.DPSRed = this.DPSRed.Value;
|
ImGuiColors.DPSRed = this.DPSRed.Value;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (this.DalamudYellow.HasValue)
|
||||||
|
{
|
||||||
|
ImGuiColors.DalamudYellow = this.DalamudYellow.Value;
|
||||||
|
}
|
||||||
|
|
||||||
|
if (this.DalamudViolet.HasValue)
|
||||||
|
{
|
||||||
|
ImGuiColors.DalamudViolet = this.DalamudViolet.Value;
|
||||||
|
}
|
||||||
|
|
||||||
|
if (this.ParsedGrey.HasValue)
|
||||||
|
{
|
||||||
|
ImGuiColors.ParsedGrey = this.ParsedGrey.Value;
|
||||||
|
}
|
||||||
|
|
||||||
|
if (this.ParsedGreen.HasValue)
|
||||||
|
{
|
||||||
|
ImGuiColors.ParsedGreen = this.ParsedGreen.Value;
|
||||||
|
}
|
||||||
|
|
||||||
|
if (this.ParsedBlue.HasValue)
|
||||||
|
{
|
||||||
|
ImGuiColors.ParsedBlue = this.ParsedBlue.Value;
|
||||||
|
}
|
||||||
|
|
||||||
|
if (this.ParsedPurple.HasValue)
|
||||||
|
{
|
||||||
|
ImGuiColors.ParsedPurple = this.ParsedPurple.Value;
|
||||||
|
}
|
||||||
|
|
||||||
|
if (this.ParsedOrange.HasValue)
|
||||||
|
{
|
||||||
|
ImGuiColors.ParsedOrange = this.ParsedOrange.Value;
|
||||||
|
}
|
||||||
|
|
||||||
|
if (this.ParsedPink.HasValue)
|
||||||
|
{
|
||||||
|
ImGuiColors.ParsedPink = this.ParsedPink.Value;
|
||||||
|
}
|
||||||
|
|
||||||
|
if (this.ParsedGold.HasValue)
|
||||||
|
{
|
||||||
|
ImGuiColors.ParsedGold = this.ParsedGold.Value;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -126,9 +126,18 @@ namespace Dalamud.Interface.Style
|
||||||
DalamudWhite = new Vector4(1f, 1f, 1f, 1f),
|
DalamudWhite = new Vector4(1f, 1f, 1f, 1f),
|
||||||
DalamudWhite2 = new Vector4(0.878f, 0.878f, 0.878f, 1f),
|
DalamudWhite2 = new Vector4(0.878f, 0.878f, 0.878f, 1f),
|
||||||
DalamudOrange = new Vector4(1f, 0.709f, 0f, 1f),
|
DalamudOrange = new Vector4(1f, 0.709f, 0f, 1f),
|
||||||
|
DalamudYellow = new Vector4(1f, 1f, .4f, 1f),
|
||||||
|
DalamudViolet = new Vector4(0.770f, 0.700f, 0.965f, 1.000f),
|
||||||
TankBlue = new Vector4(0f, 0.6f, 1f, 1f),
|
TankBlue = new Vector4(0f, 0.6f, 1f, 1f),
|
||||||
HealerGreen = new Vector4(0f, 0.8f, 0.1333333f, 1f),
|
HealerGreen = new Vector4(0f, 0.8f, 0.1333333f, 1f),
|
||||||
DPSRed = new Vector4(0.7058824f, 0f, 0f, 1f),
|
DPSRed = new Vector4(0.7058824f, 0f, 0f, 1f),
|
||||||
|
ParsedGrey = new Vector4(0.4f, 0.4f, 0.4f, 1f),
|
||||||
|
ParsedGreen = new Vector4(0.117f, 1f, 0f, 1f),
|
||||||
|
ParsedBlue = new Vector4(0f, 0.439f, 1f, 1f),
|
||||||
|
ParsedPurple = new Vector4(0.639f, 0.207f, 0.933f, 1f),
|
||||||
|
ParsedOrange = new Vector4(1f, 0.501f, 0f, 1f),
|
||||||
|
ParsedPink = new Vector4(0.886f, 0.407f, 0.658f, 1f),
|
||||||
|
ParsedGold = new Vector4(0.898f, 0.8f, 0.501f, 1f),
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
@ -236,9 +245,18 @@ namespace Dalamud.Interface.Style
|
||||||
DalamudWhite = new Vector4(1f, 1f, 1f, 1f),
|
DalamudWhite = new Vector4(1f, 1f, 1f, 1f),
|
||||||
DalamudWhite2 = new Vector4(0.878f, 0.878f, 0.878f, 1f),
|
DalamudWhite2 = new Vector4(0.878f, 0.878f, 0.878f, 1f),
|
||||||
DalamudOrange = new Vector4(1f, 0.709f, 0f, 1f),
|
DalamudOrange = new Vector4(1f, 0.709f, 0f, 1f),
|
||||||
|
DalamudYellow = new Vector4(1f, 1f, .4f, 1f),
|
||||||
|
DalamudViolet = new Vector4(0.770f, 0.700f, 0.965f, 1.000f),
|
||||||
TankBlue = new Vector4(0f, 0.6f, 1f, 1f),
|
TankBlue = new Vector4(0f, 0.6f, 1f, 1f),
|
||||||
HealerGreen = new Vector4(0f, 0.8f, 0.1333333f, 1f),
|
HealerGreen = new Vector4(0f, 0.8f, 0.1333333f, 1f),
|
||||||
DPSRed = new Vector4(0.7058824f, 0f, 0f, 1f),
|
DPSRed = new Vector4(0.7058824f, 0f, 0f, 1f),
|
||||||
|
ParsedGrey = new Vector4(0.4f, 0.4f, 0.4f, 1f),
|
||||||
|
ParsedGreen = new Vector4(0.117f, 1f, 0f, 1f),
|
||||||
|
ParsedBlue = new Vector4(0f, 0.439f, 1f, 1f),
|
||||||
|
ParsedPurple = new Vector4(0.639f, 0.207f, 0.933f, 1f),
|
||||||
|
ParsedOrange = new Vector4(1f, 0.501f, 0f, 1f),
|
||||||
|
ParsedPink = new Vector4(0.886f, 0.407f, 0.658f, 1f),
|
||||||
|
ParsedGold = new Vector4(0.898f, 0.8f, 0.501f, 1f),
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
@ -400,9 +418,18 @@ namespace Dalamud.Interface.Style
|
||||||
DalamudWhite = ImGuiColors.DalamudWhite,
|
DalamudWhite = ImGuiColors.DalamudWhite,
|
||||||
DalamudWhite2 = ImGuiColors.DalamudWhite2,
|
DalamudWhite2 = ImGuiColors.DalamudWhite2,
|
||||||
DalamudOrange = ImGuiColors.DalamudOrange,
|
DalamudOrange = ImGuiColors.DalamudOrange,
|
||||||
|
DalamudYellow = ImGuiColors.DalamudYellow,
|
||||||
|
DalamudViolet = ImGuiColors.DalamudViolet,
|
||||||
TankBlue = ImGuiColors.TankBlue,
|
TankBlue = ImGuiColors.TankBlue,
|
||||||
HealerGreen = ImGuiColors.HealerGreen,
|
HealerGreen = ImGuiColors.HealerGreen,
|
||||||
DPSRed = ImGuiColors.DPSRed,
|
DPSRed = ImGuiColors.DPSRed,
|
||||||
|
ParsedGrey = ImGuiColors.ParsedGrey,
|
||||||
|
ParsedGreen = ImGuiColors.ParsedGreen,
|
||||||
|
ParsedBlue = ImGuiColors.ParsedBlue,
|
||||||
|
ParsedPurple = ImGuiColors.ParsedPurple,
|
||||||
|
ParsedOrange = ImGuiColors.ParsedOrange,
|
||||||
|
ParsedPink = ImGuiColors.ParsedPink,
|
||||||
|
ParsedGold = ImGuiColors.ParsedGold,
|
||||||
};
|
};
|
||||||
|
|
||||||
return model;
|
return model;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue