-
Notifications
You must be signed in to change notification settings - Fork 11
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
icons not pixel-perfect #33
Comments
Hi there Merci! I'm actually very poor with graphics. I tried my best. Would you be able to help me out with it? Someone just sent me this attached PSD that gives all the different variations for the different operating systems. He discussed it here - https://discourse.mozilla-community.org/t/ux-the-different-colors-for-toolbar-icons-per-platform-win-nix-mac/8655/8?u=noitidart Please see attached. |
Oh! Are you talking about the icons in the toolbar of the image editor? Those I got from http://www.flaticon.com/ and then I dropped them into fontello to make a font out of them - http://fontello.com/ - it was really hard for me. I would love to collaborate with you on images. If you are available. If not, no problem! :) |
Well, I'm just actually the someone who sent you the PSDs. XD |
Oo! Haha that is so cool of you to follow my work from that topic dnd provide feedback on it! I really appreciate it! You are probably very busy supporting your addon. You are so right, I opened up those PSDs and was totally overwhelmed! Haha I'll understand it sooner or later |
No pain no gain, brother.
|
Oh wow!! Thank you so much friend!! This will really help me get them done. Sincerest thanks!! |
It seems I forgot to enable the sharing of the link above. It should be accessible now. |
Wow very interesting @Merci-chao thanks for this info! |
Hello, |
No way! That is so awesome @noureddin! There is no problem at all for commenting on old issue, it is very very much appreciated! Old issues are the most troublesome because I was not able to do it. With all the other coding development and performance enhancements I couldn't find the time to learn graphics to do this. If you can really help me out here that would be sooooo awesome! Barakallahfi! |
@noureddin this is where I got the icon from - https://www.iconfinder.com/icons/99958/screenshot_icon#size=128 - in case it helps :) |
I thought the needed icons are those in your attached file "skin.zip", so I began with them. This file, modes@2x.svg.zip, contains the vectorized version of Actually, If the site allows downloading the icons in a vector format like svg, I don't need to do anything. But it doesn't seem to do so. |
Oooo haha @noureddin those are files for @Merci-chao's addon. He gave me them as example. |
Ok, No problem. :D Where can I get the icons used in your addons? |
I just need this one here please - https://www.iconfinder.com/icons/99958/screenshot_icon#size=128 :) The other icons are png but the issue @Merci-chao refers to only affects this one. |
I thought it's about the icons in general. Anyway, this is the logo in svg, Screenshot.svg.zip. Please try it and let me know if it could be improved in anyway. :) |
Wow thank you! So cool! I struggled so much to make it haha its a joke Could you please make the different colors for the different systems. As @Merci-chao did in his addon - he lists paths to the images based on platform here - https://addons.mozilla.org/en-US/firefox/files/browse/498411/file/chrome.manifest#L4 And then his images are here - https://addons.mozilla.org/en-US/firefox/files/browse/498411/file/chrome/skin/menuPanel@2x.png#top He says:
I did some research and mentioned in the original post of the topic - https://discourse.mozilla-community.org/t/ux-the-different-colors-for-toolbar-icons-per-platform-win-nix-mac/ But the way @Merci-chao did it is the perfect way. @Merci-chao may you please chime in if you have some time, it will really help @noureddin :) |
SVG files use CSS attributes, and can use an external CSS file. Extract this file, Screenshot.zip, and open the SVG file in Firefox, and hover over the icon, then take a look the contents of the CSS file. ;) So, all those versions can be made with only two files: an SVG and a CSS. |
Oh wow! No way! That is super duper cool thank you @noureddin !! I will definitely try that right now! :) |
Im having a tricky time getting it to work. This is my code:
Its showing as black for me. :( |
As far as I can understand from this page (Sections "Using SVG as an |
Ohh sweeet!! That fixed it! I'll go collect the different styles of the different OS and share with you the result, this is real exciting! |
this branch created for issue #33 - i am trying to use @noureddin awesome technique of svg and internal stylesheet. i got the stylesheet overriding per os and it works when access raw, but when used as list-image-style it wont work and thats how the CustomizableUI.jsm makes the the toolbarbutton :( - need to figure out how to get the internal style sheet to work with list-style-image otherwise we'll have to make unique image per, which will stick. the unique styleshet per is much better
I just created branch @noureddin do you know how ot make the internal stylesheet apply when the svg is used as |
@Noitidart I don't know but I try to find a solution. Also, if it's possible to embed the CSS in the SVG file, it may work. But it may not be easy in this case. |
I can't find an easy solution, sorry! I am not an expert, so there may be a solution but I couldn't find it. Anyway, it should work with internal CSS (written inside the SVG file), so you can tell me all the |
Thanks @noureddin for that offer. I'll do some research to get all those. But I wanted to ask @Merci-chao if he could share the style attributes. He is familiar with it. Hi @Merci-chao, could you please share how the style i would apply to each image? Not the exact thing, but how you think it would look, like color gradient, you can just say it in words too and I can hammer out the code. :) |
It is impossible to apply styles to the SVG image referenced by If you want to have a dynamic appearance, there are two ways to achieve:
I've tried to use SVG file with the second method at the first time. However, it is difficult to implement the inner shadow effect in SVG, and the outcome is not perfectly matched with the Firefox default style. There is not much information in MDN, so you may need to Google the documents and examples. |
Great! Thanks a lot, @Merci-chao! After searching, I found out that using Anyway, this file, Sceenshot.zip, contains the logo with four styles and an HTML page to try it with |
@noureddin oh wow thank you so much! I missed your reply, those are so beutiful! |
@Noitidart You're welcome! No problem. You can give me a list of the required colors/gradients and I will put them into the SVG. |
Hey @noureddin I'm going to get v1.12 out and then I have to take a break. I have to work on future compatability so am learning some C++. Firefox is moving to WebExtensions and my addons like NativeShot will be hit hard. I'll get back to you on these images in the future (near future hopefully) please. :) |
OK. No problem! Good luck! :) |
The icon of toolbar buttons are not pixel-perfect. If you are using PS or AI, you can enable the snap to pixels option and tune your icons.
The text was updated successfully, but these errors were encountered: