Skip to content
This repository has been archived by the owner on Jan 4, 2025. It is now read-only.

Commit

Permalink
Merge pull request #1184 from ironmansoftware/collapsiblefixes
Browse files Browse the repository at this point in the history
Collapsible Fixes for issue 1149
  • Loading branch information
adamdriscoll authored Sep 26, 2019
2 parents 9f49dfd + 0e46192 commit e6ba4a4
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/UniversalDashboard.Materialize/Scripts/collapsible.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ function New-UDCollapsible {
[Parameter(Mandatory = $true, Position = 0)]
[ScriptBlock]$Items,
[Parameter()]
[UniversalDashboard.Models.DashboardColor]$BackgroundColor = 'White',
[UniversalDashboard.Models.DashboardColor]$BackgroundColor = 'Transparent',
[Parameter()]
[UniversalDashboard.Models.DashboardColor]$FontColor = 'Black',
[Parameter()]
Expand Down
8 changes: 8 additions & 0 deletions src/UniversalDashboard/Models/DashboardColor.cs
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,14 @@ public static DashboardColor Parse(string hexOrName)

return new DashboardColor(iColorInt);
}
else if ((hexOrName.ToLower()).Equals("transparent"))
{
var color = Color.FromArgb(0, 0, 0, 0);

log.Debug($"Parse - color = {color}");

return new DashboardColor(color);
}
else
{
var color = Color.FromName(hexOrName);
Expand Down

0 comments on commit e6ba4a4

Please sign in to comment.