Skip to content

Commit

Permalink
Component & Container Icons
Browse files Browse the repository at this point in the history
Added component and container (normal, horizontal, vertical) icons
  • Loading branch information
modery committed Nov 15, 2022
1 parent 2a503df commit 8114621
Showing 1 changed file with 43 additions and 0 deletions.
43 changes: 43 additions & 0 deletions PowerDocu.Common/AppControlIcons.cs
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ public static string GetControlIcon(string controlname)
"checkbox" => CheckboxIcon,
"circle" => ShapesIcon,
"combobox" => ComboBoxIcon,
"component" => ComponentIcon,
"dataTable" => DataGridIcon,
"datepicker" => DatePickerIcon,
"dropdown" => DropDownIcon,
Expand All @@ -35,6 +36,7 @@ public static string GetControlIcon(string controlname)
"galleryTemplate" => UnknownControlIcon,
"group" => GroupIcon,
"hexagon" => ShapesIcon,
"horizontalAutoLayoutContainer" => HorizontalLayoutContainerIcon,
"htmlViewer" => HtmlViewerIcon,
"icon" => IconsIcon,
"image" => ImageIcon,
Expand All @@ -44,6 +46,7 @@ public static string GetControlIcon(string controlname)
"legend" => UnknownControlIcon,
"lineChart" => LineChartIcon,
"listbox" => ListboxIcon,
"manualLayoutContainer" => ManualLayoutContainerIcon,
"Map" => MapIcon,
"markupInMr" => MarkupInMrIcon,
"MeasureInMR" => MeasureInMRIcon,
Expand All @@ -70,6 +73,7 @@ public static string GetControlIcon(string controlname)
"toggleSwitch" => ToggleSwitchIcon,
"triangle" => ShapesIcon,
"typedDataCard" => UnknownControlIcon,
"verticalAutoLayoutContainer" => VerticalLayoutContainerIcon,
"videoPlayback" => VideoIcon,
"ViewIn3D" => ViewIn3DIcon,
"ViewInMR" => ViewInMRIcon,
Expand Down Expand Up @@ -643,5 +647,44 @@ public static string TextRecognizerIcon
IconFooter;
}
}

public static string ManualLayoutContainerIcon
{
get
{
return @"<svg version=""1.1"" xmlns=""http://www.w3.org/2000/svg"" xmlns:xlink=""http://www.w3.org/1999/xlink"" width=""2048"" height=""2048""><g>" +
@"<path d=""M0 1920V0h1920v1920H0zm128-128h1664V128H128v1664zM1536 579v762l-576 287-576-287V579l576-287 576 287zm-512 335v539l384-191V722l-384 192zm-64-111l369-184-369-184-369 184 369 184zm-64 111L512 722v540l384 191V914z""></path>" +
IconFooter;
}
}

public static string HorizontalLayoutContainerIcon
{
get
{
return IconHeader +
@"<path d=""M1 0.5H6C6.27614 0.5 6.5 0.723858 6.5 1V15C6.5 15.2761 6.27614 15.5 6 15.5H1C0.723858 15.5 0.5 15.2761 0.5 15V1C0.5 0.723858 0.723858 0.5 1 0.5ZM10 0.5H15C15.2761 0.5 15.5 0.723858 15.5 1V15C15.5 15.2761 15.2761 15.5 15 15.5H10C9.72386 15.5 9.5 15.2761 9.5 15V1C9.5 0.723858 9.72386 0.5 10 0.5Z"" fill=""white"" stroke=""#444444""></path>" +
IconFooter;
}
}

public static string VerticalLayoutContainerIcon
{
get
{
return IconHeader +
@"<path d=""M1 0.5H15C15.2761 0.5 15.5 0.723858 15.5 1V6C15.5 6.27614 15.2761 6.5 15 6.5H1C0.723858 6.5 0.5 6.27614 0.5 6V1C0.5 0.723858 0.723858 0.5 1 0.5ZM1 9.5H15C15.2761 9.5 15.5 9.72386 15.5 10V15C15.5 15.2761 15.2761 15.5 15 15.5H1C0.723858 15.5 0.5 15.2761 0.5 15V10C0.5 9.72386 0.723858 9.5 1 9.5Z"" fill=""white"" stroke=""#444444""></path>" +
IconFooter;
}
}
public static string ComponentIcon
{
get
{
return @"<svg version=""1.1"" xmlns=""http://www.w3.org/2000/svg"" xmlns:xlink=""http://www.w3.org/1999/xlink"" width=""2048"" height=""2048""><g>" +
@"<path d=""M1024 256v768h768v896H128V256h896zM896 384H256v640h640V384zM256 1792h640v-640H256v640zm768 0h640v-640h-640v640zm256-1024V0h768v768h-768zm128-128h512V128h-512v512z""></path>" +
IconFooter;
}
}
}
}

0 comments on commit 8114621

Please sign in to comment.