Skip to content

Commit

Permalink
Merge pull request #346 from oneblink/ON-45509
Browse files Browse the repository at this point in the history
ON-45509 # Added styles to FormsAppEnvironment
  • Loading branch information
Zaxist authored Dec 11, 2024
2 parents b901d1a + 3e9743e commit 5b164f8
Show file tree
Hide file tree
Showing 10 changed files with 103 additions and 33 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@

## Unreleased

### Added

- `styles` to `FormsAppEnvironment`

## [10.0.0] - 2024-12-11

### Removed
Expand Down
4 changes: 4 additions & 0 deletions OneBlink.SDK/models/FormsAppEnvironment.cs
Original file line number Diff line number Diff line change
Expand Up @@ -35,5 +35,9 @@ public FormsAppEnvironmentCloneOptions cloneOptions
{
get; set;
}
public FormsAppEnvironmentStyles styles
{
get; set;
}
}
}
14 changes: 14 additions & 0 deletions OneBlink.SDK/models/FormsAppEnvironmentStyles.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
namespace OneBlink.SDK.Model
{
public class FormsAppEnvironmentStyles : FormsAppEnvironmentStylesBase
{
public string logoUrl
{
get; set;
}
public FormsListStylesButtons buttons
{
get; set;
}
}
}
27 changes: 27 additions & 0 deletions OneBlink.SDK/models/FormsAppEnvironmentStylesBase.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
namespace OneBlink.SDK.Model
{
public class FormsAppEnvironmentStylesBase
{
public string foregroundColour
{
get; set;
}
public string highlightColour
{
get; set;
}
public string contrastColour
{
get; set;
}
public string customCss
{
get; set;
}
}

public class FormsAppStylesBase : FormsAppEnvironmentStylesBase
{

}
}
18 changes: 18 additions & 0 deletions OneBlink.SDK/models/FormsAppEnvironmentStylesButton.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
namespace OneBlink.SDK.Model
{
public class FormsAppEnvironmentStylesButton
{
public string icon
{
get; set;
}
public string label
{
get; set;
}
}

public class FormsListStylesButton : FormsAppEnvironmentStylesButton
{
}
}
31 changes: 31 additions & 0 deletions OneBlink.SDK/models/FormsAppEnvironmentStylesButtons.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
namespace OneBlink.SDK.Model
{
public class FormsAppEnvironmentStylesButtons
{
public FormsListStylesButton submit
{
get; set;
}
public FormsListStylesButton cancel
{
get; set;
}
public FormsListStylesButton saveDraft
{
get; set;
}
public FormsListStylesButton cancelPromptYes
{
get; set;
}
public FormsListStylesButton cancelPromptNo
{
get; set;
}
}

public class FormsListStylesButtons : FormsAppEnvironmentStylesButtons
{
}
}

10 changes: 0 additions & 10 deletions OneBlink.SDK/models/FormsAppStylesBase.cs

This file was deleted.

9 changes: 5 additions & 4 deletions OneBlink.SDK/models/FormsListStyles.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,11 @@

namespace OneBlink.SDK.Model
{
public class FormsListStyles : FormsAppStylesBase
public class FormsListStyles : FormsAppEnvironmentStyles
{
public string logoUrl {get;set;}
public List<FormsAppMenuItems> menuItems {get;set;}
public FormsListStylesButtons buttons {get;set;}
public List<FormsAppMenuItems> menuItems
{
get; set;
}
}
}
8 changes: 0 additions & 8 deletions OneBlink.SDK/models/FormsListStylesButton.cs

This file was deleted.

11 changes: 0 additions & 11 deletions OneBlink.SDK/models/FormsListStylesButtons.cs

This file was deleted.

0 comments on commit 5b164f8

Please sign in to comment.