2024-03-06 21:49:54 +00:00
|
|
|
using Pastel;
|
|
|
|
|
|
|
|
namespace TUI.Engine.Theme;
|
|
|
|
|
|
|
|
public static class Palette
|
|
|
|
{
|
2024-06-14 11:02:21 +00:00
|
|
|
public const string HoverColor = "292928";
|
|
|
|
public const string PrimaryColor = "84BA64";
|
|
|
|
public const string HintColor = "71797E";
|
|
|
|
public const string DisableColor = "303030";
|
|
|
|
public const string ErrorColor = "CA3433";
|
|
|
|
public const string WarningColor = "EC9706";
|
|
|
|
public const string InfoColor = "25799F";
|
|
|
|
|
2024-03-06 21:49:54 +00:00
|
|
|
public static string Main(this string currentText, bool isFocused = true) =>
|
|
|
|
isFocused
|
|
|
|
? currentText.Pastel(PrimaryColor)
|
|
|
|
: Hint(currentText);
|
2024-06-14 11:02:21 +00:00
|
|
|
|
2024-03-06 21:49:54 +00:00
|
|
|
public static string Hint(this string currentText) => currentText.Pastel(HintColor);
|
2024-06-14 11:02:21 +00:00
|
|
|
|
2024-03-17 19:57:31 +00:00
|
|
|
public static string Hint(this char currentText) => currentText.ToString().Pastel(HintColor);
|
2024-06-14 11:02:21 +00:00
|
|
|
|
2024-03-06 21:49:54 +00:00
|
|
|
public static string Disable(this string currentText) => currentText.RemoveColors().Pastel(HintColor);
|
2024-06-14 11:02:21 +00:00
|
|
|
|
2024-03-06 21:49:54 +00:00
|
|
|
public static string Warning(this string currentText) => currentText.Pastel(WarningColor);
|
2024-06-14 11:02:21 +00:00
|
|
|
|
2024-03-06 21:49:54 +00:00
|
|
|
public static string Error(this string currentText) => currentText.Pastel(ErrorColor);
|
2024-06-14 11:02:21 +00:00
|
|
|
|
2024-03-06 21:49:54 +00:00
|
|
|
public static string Info(this string currentText) => currentText.Pastel(InfoColor);
|
2024-06-14 11:02:21 +00:00
|
|
|
|
2024-03-17 19:57:31 +00:00
|
|
|
public static string Info(this char currentText) => currentText.ToString().Pastel(InfoColor);
|
2024-06-14 11:02:21 +00:00
|
|
|
|
2024-03-17 19:57:31 +00:00
|
|
|
public static string Info(this int currentText) => currentText.ToString().Pastel(InfoColor);
|
2024-03-06 21:49:54 +00:00
|
|
|
}
|