Can you describe the change you made that seemed to work well?
We did a quick test with applying a stroke-width and a stroke set to "currentColor" on a symbol and didn't see positive results.
Announcement
Collapse
No announcement yet.
X
-
Thanks for your reply. I actually tried adding stroke and stroke-width only to a handful of icons (those in the grid's header context menu) where it seemed to work pretty well.
But of course if you're taking care of this is much better than what I can try to modify by myself :)
Leave a comment:
-
hi Claudio,
Firstly, it seems unlikely that you could reliably affect the SVG in Shiva's stockIcons.svg with stroke and stroke width - most of them have a single compound-path, which effectively draws icons using a number of filled shapes, rather than stroked lines. That's why setting "fill" to currentColor works. So, as well as being time-consuming, it would be surprising if affecting stroke-width in these icons were to work well.
However. The stockIcons.svg in Shiva has icons from Google's Material-Symbols icon-set, which is available in various styles (outline, rounded, filled, sharp) and in 7 weights (100-700). The ones in Shiva right now are rounded (outline), 300 weight which, as you say, makes for pretty narrow images. Google claims that all Material-Symbols variants have the same icons with the same names (not quite true), and we have a set of src-strings that map our stockIcons to Material-Symbols icon-names. So, technically, we do have a version of stockIcons.svg for each of the style/weight variants and an app could switch among them by replacing stockIcons.svg in its skin dir.
In the future, we'll make the Material-Symbols variants available, and may also add mappings for other icons-sets, like FontAwesome's free solid.svg.
But for now, we'll test out a few icon-weights in Shiva - if things look better with more weight, we'll make that change.Last edited by Isomorphic; 26 Jun 2024, 05:58.
Leave a comment:
-
question about stockIcons.svg
Hello, I am interested in the possibility of having the stock icons available in different stroke widths, as the current ones appear quite thin.
I've been experimenting with stroke and stroke-width attributes as it seems doable to modify the stockIcons file, but before I invest more time in this, I wanted to ask if offering stock icons with varying stroke widths is part of your roadmap.
I am also fond of solid icons, although I understand that creating these would likely require a significantly greater magnitude of effort.
Tags: None
Leave a comment: