-
-
Notifications
You must be signed in to change notification settings - Fork 932
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
idea: base + adornment #1227
Comments
That would really be a great addition! |
If only there was a collection of just common adornments. I believe this would be possible using masks and simple shapes to cut the adornment holes in the primary icon. Ideally, the adornment library would include the masks (basically black filled outlines of the icon just a little larger than the icon) ready to be applied. |
It may work well for the solid icons, but I'm not sure about the outlines since the cutouts should cuts the lines. You can better observe that behavior on |
Here is an example with masks and outlines which shows it DOES cut the lines using this method (using outline alarm and solid circle-plus). This is a poor example, as at 24x24 the plus portion is hard to read, which is why we would need adornments rendered smaller to start with that will match the stroke of the outline. When merging the two icons I placed each one in a separate group. You can easily replace the last path in the last group with any other circular icon that is also 24x24 :)
|
for the icons that seem to cut lines, you could potentially just create a pre-cut template that has enough space for the adornments to settle in, and if necessary use the pre-cut template for adaption does this seem like a viable option? or is there something I might be missing in terms of context? |
The issue of pre-generating would be that some of the adornments would end up with not enough space, or too much (the minus vs the heart for instance). Clipping the path would need to occur, and that would require a little more lifting than the SVG specs allow for. You can get close using the masking method, load it up into Inkscape and use the Boolean path routines to cut the path properly and remove some of the points. |
There is another path. We could have a collection of icons that can be fused with few adornments and build them on the fly (from the website and the integrated libraries). Then, no needs to pre-generate everything. BTW, That would take ages and clutter the searching engine. |
@sukei based off your example, we could have some kind of template that defines the paths that the base icon would be modified from and then set some boundaries that keep the bounadries porportional depending on the intersections between the adornments and the base. |
Icon name
N/A
Use cases
I'm not sure if its possible due to how font icons work, but, based on how the icon structure works, it seems like there is an icon base, and icons with adornments, e.g.
cog
orplus
, it'd be pretty awesome if we could programmatically add all adornments to each icon so then you could have something like theserver
icon withserver-plus
instead of having to manually create each individually.Design ideas
I've got an idea on how to implement this, but wanted to hear some feedback before I go and actually try to implement this.
Checklist
The text was updated successfully, but these errors were encountered: