You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I want to put a bigger separator between certain groups of icons in the toolbar. I would like to be able to use a custom "image" property for the "separator" type toolbar item.
Alternatively, perhaps there could be a way to define the separator width via a new config property just for Separator types, since separators seem to be created with the .NET "ToolStripSeparator" object which allows for an override of the separator thickness, as seen in ToolStripSeparator.cs:
/// <summary>
/// Deriving classes can override this to configure a default size for their control.
/// This is more efficient than setting the size in the control's constructor.
/// </summary>
protected override Size DefaultSize => new(SeparatorThickness, SeparatorThickness);
protected internal override Padding DefaultMargin => Padding.Empty;
How to use feature
Perhaps in the igconfig.json file, since "Separator" types already have an "image" property, just make be used when the user sets a path in the property.
Space width could be determined by the user by simply adjusting the aspect ratio of the SVG file they create.
Additional context
I tried adding a custom separator type item via Settings > Layout > Toolbar > "Add a Custom Button", where I put the type "Separator" and a path to a custom svg in the "Image" property, but it writes to the config as a regular separator and ignores any properties set.
The text was updated successfully, but these errors were encountered:
System information
Describe the feature
I want to put a bigger separator between certain groups of icons in the toolbar. I would like to be able to use a custom "image" property for the "separator" type toolbar item.
Alternatively, perhaps there could be a way to define the separator width via a new config property just for Separator types, since separators seem to be created with the .NET "ToolStripSeparator" object which allows for an override of the separator thickness, as seen in
ToolStripSeparator.cs
:How to use feature
Additional context
I tried adding a custom separator type item via Settings > Layout > Toolbar > "Add a Custom Button", where I put the type "Separator" and a path to a custom svg in the "Image" property, but it writes to the config as a regular separator and ignores any properties set.
The text was updated successfully, but these errors were encountered: