Wiki Icon Updates

Discussions about the wiki documentation of FreeCAD and its translation.
Forum rules
Be nice to others! Respect the FreeCAD code of conduct!
triplus
Veteran
Posts: 9471
Joined: Mon Dec 12, 2011 4:45 pm

Re: Wiki Icon Updates

Post by triplus »

agryson wrote:Look, @triplus, I'm sorry if my tone is a little brusque, I got frustrated since we're spending more time talking then doing.

I'll update the wiki and create a pull request as we said.

The asset duplication and browser dependency will have to wait a while maybe.
Well you have ambitious goals and therefore some tension is bound to happen. In the end you managed to resolve what seem like an unresolvable issue and the world didn’t had to stop. Therefore we didn't waste our time in vain trying and conclusion can be made it was likely worth it. ;)

P.S. Now i will focus on my coding related efforts regarding FreeCAD for a while when i will have free time. You i am sure will manage just fine as you showed the needed quality and some guidance and the knowledge needed regarding the process involved was transferred successfully.
renatorivo
Veteran
Posts: 2611
Joined: Tue Feb 21, 2012 8:07 pm
Location: Torino - Italy

Re: Wiki Icon Updates

Post by renatorivo »

Hi.
Icons aligned to guidelines.
As a test, I upgraded two icons .png in Draft, imported 64px, displayed 32px
iconetango.png
iconetango.png (18.53 KiB) Viewed 1572 times
seems fine.
Any suggestions?
Renato
User avatar
agryson
Posts: 463
Joined: Wed Nov 23, 2016 8:30 am
Location: Bordeaux, France
Contact:

Re: Wiki Icon Updates

Post by agryson »

renatorivo wrote:Any suggestions?
Looks good! 8-)

I spent some time this weekend updating the icons on the artwork page in svg. I thought updating there would update almost everywhere. I have a script that exports the icons to PNG in various sizes, which should speed things up, I can send it to you tomorrow.

If you need any help with the updates let me know, we can split the work.
User avatar
agryson
Posts: 463
Joined: Wed Nov 23, 2016 8:30 am
Location: Bordeaux, France
Contact:

Re: Wiki Icon Updates

Post by agryson »

Wow, just found the workbench pages (I thought they used the icons on the artwork page). That's a lot of updating!
I'll produce a zip of everything updated so far and share it too. Then I'll try to nibble away at those pages till we've found them all!
renatorivo
Veteran
Posts: 2611
Joined: Tue Feb 21, 2012 8:07 pm
Location: Torino - Italy

Re: Wiki Icon Updates

Post by renatorivo »

agryson wrote:I have a script that exports the icons to PNG in various sizes, which should speed things up, I can send it to you tomorrow.
Thanks, this would be helpful.
User avatar
agryson
Posts: 463
Joined: Wed Nov 23, 2016 8:30 am
Location: Bordeaux, France
Contact:

Re: Wiki Icon Updates

Post by agryson »

renatorivo wrote:Thanks, this would be helpful.
Here you are

To use:
- Enter the folder you want to export
- Run script with the desired output size as a number (16, 32, etc) e.g. ~/scripts/export_png.sh 32 will export them as 32px. Default value is 64 (So if you want them at 64px, just run the script with no variable)
- A folder will be created in your Pictures directory called exportOutput containing all the icons, this gets emptied each time you run the script.
- The filenames have the size appended, script can be edited if this is not desireable.

Requirements: inkscape, bash

I'll of course be doing as much as I can over next few days as well.
User avatar
yorik
Founder
Posts: 13664
Joined: Tue Feb 17, 2009 9:16 pm
Location: Brussels
Contact:

Re: Wiki Icon Updates

Post by yorik »

Actually we might as well start using the svg icons in the wiki... Nowadays all browsers display svg icons.
User avatar
agryson
Posts: 463
Joined: Wed Nov 23, 2016 8:30 am
Location: Bordeaux, France
Contact:

Re: Wiki Icon Updates

Post by agryson »

yorik wrote:Actually we might as well start using the svg icons in the wiki... Nowadays all browsers display svg icons.
True, but recall that the renderer on our mediawiki gave funky results with clipped paths...
User avatar
yorik
Founder
Posts: 13664
Joined: Tue Feb 17, 2009 9:16 pm
Location: Brussels
Contact:

Re: Wiki Icon Updates

Post by yorik »

Hm you are right... That was actually one of the reasons to stick to png.
User avatar
NormandC
Veteran
Posts: 18589
Joined: Sat Feb 06, 2010 9:52 pm
Location: Québec, Canada

Re: Wiki Icon Updates

Post by NormandC »

The problem is that SVGs can't be used for the GUICommand templates. IIRC they can't be resized.

It's a PITA, because it means having to maintain two sets of icons, PNG/SVG...
Post Reply