Skip to content
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

Real vector SVG icon with background (low contrast issue is fixed) #133

Open
wants to merge 5 commits into
base: main
Choose a base branch
from

Conversation

unclechu
Copy link

@unclechu unclechu commented Nov 2, 2017

For first I attach screenshots that demonstrates low contrast with dark Github and/or Firefox themes.
icon-in-firefox-panel
readme
I also have realized that SVG icon wasn't really vector, it had raster background, so, I redraw it, also I calculated sizes and positions (see spreadsheet attachment if you want to see details) and now intervals and sizes is precise.

So now background of "window" object filled with white color and low contrast issue is fixed.

vtr-sizes.ods.gz (contains few custom functions in macro section).

@unclechu
Copy link
Author

unclechu commented Nov 3, 2017

@Croydon bump

@unclechu
Copy link
Author

unclechu commented Nov 3, 2017

@Croydon
Copy link
Owner

Croydon commented Nov 5, 2017

Oops, you are right, the logo version aren't really svg files right now. Thanks for you work so far!

However, I still see a few issues here. Most importantly, making the background white is rather a workaround than a good solution. I don't know how to do that, but the icons should be made the way, that the svg-fill CSS atribute can by applied to it and the icon will take the color for these parts which are per default black. The background should stay transparent. This would look much more native.

Have a look here: https://browser-config.herokuapp.com if you change svg-fill the icons will adopt the color.

@unclechu Do you have experience how to do this?

Also, last but not least, it would require the same work for the small variant for the icon (without the "tab sidebar" element on the left).

@unclechu
Copy link
Author

unclechu commented Nov 7, 2017

@Croydon now it's done, small icon have been redrawn too, background is transparent and fill-color set to 'undefined' for everything (opacity set to 50% for lines in left part of big icon). Please try it and let me know if everything is okay.

@unclechu
Copy link
Author

unclechu commented Nov 7, 2017

But, if you ask me, it will never fix low-contrast issue for github readme page for example. I'm not sure how it can be fixed using transparent background, maybe it would be better to use alternative version of this icon with filled background for cases like that.

@unclechu
Copy link
Author

unclechu commented Nov 7, 2017

I can add alternative ones if you agree it would be a good idea.

@Croydon
Copy link
Owner

Croydon commented Nov 11, 2017

I have updated the readme and filled a bug for Firefox: https://bugzilla.mozilla.org/show_bug.cgi?id=1416400

I will wait for progress on this bug

@Croydon
Copy link
Owner

Croydon commented Nov 11, 2017

Is there a way to "soft set" the color? A default value of colors which is easily overwritten by the fill attribute?

@unclechu
Copy link
Author

@Croydon I believe it's black color by default and don't know if "soft set" is possible.

Base automatically changed from master to main January 23, 2021 22:00
@Croydon Croydon self-assigned this Jul 28, 2023
@Croydon Croydon added this to the 0.15.0 milestone Jul 28, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants