* QColor.cs: Add "none" color

* QDefines.cs: Add Color and Connection Statice strings
This commit is contained in:
2021-02-13 12:57:09 -05:00
parent 5c1859a2cc
commit a74a77ae9e
2 changed files with 51 additions and 17 deletions
+33 -17
View File
@@ -3,40 +3,43 @@
public class QColor public class QColor
{ {
public string name { get; set; } public string name { get; set; }
public string Hex { get; set; } public string Hex { get; set; }
public string lightHex { get; set; } public string lightHex { get; set; }
public string darkHex { get; set; } public string darkHex { get; set; }
public QColor() public QColor()
{ {
defaultColor(); noneColor();
} }
public QColor(string name) public QColor(string name)
{ {
switch (name) switch (name)
{ {
case "red": case QColorName.Red:
redColor(); redColor();
break; break;
case "orange": case QColorName.Orange:
orangeColor(); orangeColor();
break; break;
case "yellow": case QColorName.Yellow:
yellowColor(); yellowColor();
break; break;
case "green": case QColorName.Green:
greenColor(); greenColor();
break; break;
case "blue": case QColorName.Blue:
blueColor(); blueColor();
break; break;
case "indigo": case QColorName.Indigo:
indigoColor(); indigoColor();
break; break;
case "purple": case QColorName.Purple:
purpleColor(); purpleColor();
break; break;
case QColorName.None:
noneColor();
break;
default: default:
defaultColor(); defaultColor();
break; break;
@@ -45,7 +48,15 @@
private void defaultColor() private void defaultColor()
{ {
name = "default"; name = QColorName.Default;
lightHex = "#ACAAB2";
Hex = "#8F8A99";
darkHex = "#77737F";
}
private void noneColor()
{
name = QColorName.None;
lightHex = "#ACAAB2"; lightHex = "#ACAAB2";
Hex = "#8F8A99"; Hex = "#8F8A99";
darkHex = "#77737F"; darkHex = "#77737F";
@@ -53,28 +64,31 @@
private void redColor() private void redColor()
{ {
name = "red"; name = QColorName.Red;
lightHex = "#FC563C"; lightHex = "#FC563C";
Hex = "#FC363B"; Hex = "#FC363B";
darkHex = "#E31C24"; darkHex = "#E31C24";
} }
private void orangeColor() private void orangeColor()
{ {
name = "orange"; name = QColorName.Orange;
lightHex = "#FFAA00"; lightHex = "#FFAA00";
Hex = "#FF9500"; Hex = "#FF9500";
darkHex = "#FF6A00"; darkHex = "#FF6A00";
} }
private void yellowColor () private void yellowColor ()
{ {
name = "yellow"; name = QColorName.Yellow;
lightHex = "#FFF480"; lightHex = "#FFF480";
Hex = "#F7E519"; Hex = "#F7E519";
darkHex = "#FFD500"; darkHex = "#FFD500";
} }
private void greenColor() private void greenColor()
{ {
name = "green"; name = QColorName.Green;
lightHex = "#17E639"; lightHex = "#17E639";
Hex = "#00CC22"; Hex = "#00CC22";
darkHex = "#00B300"; darkHex = "#00B300";
@@ -82,21 +96,23 @@
private void blueColor() private void blueColor()
{ {
name = "blue"; name = QColorName.Blue;
lightHex = "#5C73E6"; lightHex = "#5C73E6";
Hex = "#415AD9"; Hex = "#415AD9";
darkHex = "#2944CC"; darkHex = "#2944CC";
} }
private void indigoColor() private void indigoColor()
{ {
name = "purple"; name = QColorName.Purple;
lightHex = "#3F388C"; lightHex = "#3F388C";
Hex = "#5A5499"; Hex = "#5A5499";
darkHex = "#6262B3"; darkHex = "#6262B3";
} }
private void purpleColor() private void purpleColor()
{ {
name = "purple"; name = QColorName.Purple;
lightHex = "#B500D9"; lightHex = "#B500D9";
Hex = "#9500B3"; Hex = "#9500B3";
darkHex = "#730099"; darkHex = "#730099";
+18
View File
@@ -124,6 +124,24 @@
public const string RootCueUpdate = "[root group of cue lists]"; public const string RootCueUpdate = "[root group of cue lists]";
} }
public static class QConnectionStatus {
public const string BadPass = "badpass";
public const string Ok = "ok";
public const string Error = "error";
}
public static class QColorName
{
public const string Red = "red";
public const string Orange = "orange";
public const string Yellow = "yellow";
public const string Green = "green";
public const string Blue = "blue";
public const string Indigo = "indigo";
public const string Purple = "purple";
public const string None = "none";
public const string Default = "default"; //is this even an option?
}
enum QFadeMode enum QFadeMode
{ {