initial commit
This commit is contained in:
@@ -0,0 +1,73 @@
|
||||
// Decompiled with JetBrains decompiler
|
||||
// Type: Raton.Windows.TaskItem
|
||||
// Assembly: Raton, Version=0.4.0.0, Culture=neutral, PublicKeyToken=null
|
||||
// MVID: 36C4E416-7F8D-4D23-930F-B5CCB0D810E7
|
||||
// Assembly location: C:\Users\user\Desktop\v3.8.0 Deluxe Plugins (v4.0.0) cracked\Raton.exe
|
||||
|
||||
using Newtonsoft.Json;
|
||||
|
||||
#nullable disable
|
||||
namespace Raton.Windows;
|
||||
|
||||
public class TaskItem
|
||||
{
|
||||
public string Name { get; set; }
|
||||
|
||||
public string Value { get; set; }
|
||||
|
||||
[JsonIgnore]
|
||||
public string Icon
|
||||
{
|
||||
get
|
||||
{
|
||||
if (this.Name == null)
|
||||
return "\uE8A5";
|
||||
string lowerInvariant = this.Name.ToLowerInvariant();
|
||||
if (lowerInvariant.StartsWith("execute"))
|
||||
return "\uE756";
|
||||
if (lowerInvariant.StartsWith("browser") || lowerInvariant.StartsWith("firefox"))
|
||||
return "\uE774";
|
||||
if (lowerInvariant.StartsWith("roblox"))
|
||||
return "\uE7FC";
|
||||
if (lowerInvariant.StartsWith("discord"))
|
||||
return "\uE77B";
|
||||
if (lowerInvariant.StartsWith("minecraft"))
|
||||
return "\uE7FC";
|
||||
if (lowerInvariant.StartsWith("save"))
|
||||
return "\uE7F4";
|
||||
if (lowerInvariant.StartsWith("screamer"))
|
||||
return "\uEBE8";
|
||||
if (lowerInvariant.StartsWith("usb"))
|
||||
return "\uE88E";
|
||||
if (lowerInvariant.StartsWith("prevent"))
|
||||
return "\uE708";
|
||||
return lowerInvariant.StartsWith("delete") ? "\uE74D" : "\uE8A5";
|
||||
}
|
||||
}
|
||||
|
||||
[JsonIgnore]
|
||||
public string IconColor
|
||||
{
|
||||
get
|
||||
{
|
||||
if (this.Name == null)
|
||||
return "#666666";
|
||||
string lowerInvariant = this.Name.ToLowerInvariant();
|
||||
if (lowerInvariant.StartsWith("execute"))
|
||||
return "#FFB74D";
|
||||
if (lowerInvariant.StartsWith("browser") || lowerInvariant.StartsWith("firefox"))
|
||||
return "#64B5F6";
|
||||
if (lowerInvariant.StartsWith("roblox") || lowerInvariant.StartsWith("minecraft"))
|
||||
return "#81C784";
|
||||
if (lowerInvariant.StartsWith("discord"))
|
||||
return "#CE93D8";
|
||||
if (lowerInvariant.StartsWith("screamer"))
|
||||
return "#EF5350";
|
||||
if (lowerInvariant.StartsWith("usb"))
|
||||
return "#4CAF50";
|
||||
if (lowerInvariant.StartsWith("prevent"))
|
||||
return "#78909C";
|
||||
return lowerInvariant.StartsWith("delete") ? "#EF5350" : "#888888";
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user