FF-1289 - added custom colors

This commit is contained in:
John Andrews
2024-02-18 21:46:48 +13:00
parent 5de0b977b7
commit 3991c3c59e
7 changed files with 30 additions and 3 deletions

View File

@@ -3,14 +3,24 @@ using System.Text.Json;
namespace FileFlows.Apprise.Communication;
/// <summary>
/// Flow element that send a notification via apprise
/// </summary>
public class Apprise: Node
{
public override int Inputs => 1;
/// <inheritdoc />
public override int Outputs => 2;
public override FlowElementType Type => FlowElementType.Communication;
/// <inheritdoc />
public override FlowElementType Type => FlowElementType.Communication;
/// <inheritdoc />
public override string Icon => "fas fa-bell";
/// <inheritdoc />
public override bool FailureNode => true;
/// <inheritdoc />
public override string HelpUrl => "https://fileflows.com/docs/plugins/apprise/apprise";
/// <inheritdoc />
public override string CustomColor => "#257575";
[Required]
[TextVariable(1)]
@@ -42,6 +52,7 @@ public class Apprise: Node
}
}
/// <inheritdoc />
public override int Execute(NodeParameters args)
{
try

View File

@@ -24,7 +24,10 @@ public class FailFlow : Node
/// Gets the URL for the help page
/// </summary>
public override string HelpUrl => "https://fileflows.com/docs/plugins/basic-nodes/fail-flow";
/// <inheritdoc />
public override string CustomColor => "var(--error)";
/// <summary>
/// Gets or sets the reason to fail the flow
/// </summary>

View File

@@ -5,12 +5,19 @@ namespace FileFlows.DiscordNodes.Communication;
public class Discord: Node
{
/// <inheritdoc />
public override int Inputs => 1;
/// <inheritdoc />
public override int Outputs => 2;
public override FlowElementType Type => FlowElementType.Communication;
/// <inheritdoc />
public override string Icon => "fab fa-discord";
/// <inheritdoc />
public override bool FailureNode => true;
/// <inheritdoc />
public override string HelpUrl => "https://fileflows.com/docs/plugins/discord/discord";
/// <inheritdoc />
public override string CustomColor => "#5865F2";
[Required]
[TextVariable(1)]

Binary file not shown.

Binary file not shown.

View File

@@ -28,6 +28,9 @@ public class Gotify: Node
/// Gets if this can be used in a failure flow
/// </summary>
public override bool FailureNode => true;
/// <inheritdoc />
public override string CustomColor => "#6fc4e7";
/// <summary>
/// Gets the Help URL

View File

@@ -20,11 +20,14 @@ public class Telegram: Node
/// <summary>
/// Gets the icon for this flow element
/// </summary>
public override string Icon => "fas fa-bell";
public override string Icon => "fab fa-telegram-plane";
/// <summary>
/// Gets if this can be used in a failure flow
/// </summary>
public override bool FailureNode => true;
/// <inheritdoc />
public override string CustomColor => "#0088CC";
/// <summary>
/// Gets the Help URL