Custom cursors and high dpi (Windows and MacOS testers needed)

A forum for research and development of the user interface of FreeCAD
Forum rules
Be nice to others! Respect the FreeCAD code of conduct!
mikeprice99
Posts: 100
Joined: Sat Jun 27, 2020 9:06 am
Location: Dorset, England

Re: Custom cursors and high dpi (Windows and MacOS testers needed)

Post by mikeprice99 »

vanuan wrote: Sun Jul 26, 2020 8:02 pm If you want to overhaul SVG icons, let's do it in a separate PR.
As long as you're happy with what I've given, then I'm happy. Let's not add any complications.
jmaustpc
Veteran
Posts: 11207
Joined: Tue Jul 26, 2011 6:28 am
Location: Australia

Re: Custom cursors and high dpi (Windows and MacOS testers needed)

Post by jmaustpc »

mikeprice99 wrote: Sun Jul 26, 2020 8:54 pm
vanuan wrote: Sun Jul 26, 2020 8:02 pm If you want to overhaul SVG icons, let's do it in a separate PR.
As long as you're happy with what I've given, then I'm happy. Let's not add any complications.
Hi guys, I have not looked at the code etc. however two thoughts, ideally all Mike's SVG files should be in one git commit but regardless he should create a git repo and commit his files to it and then vanuan should pull that so that although it can be one PR to FreeCAD, it will show up in the git history as two commits and hence credit to each person's work.

Secondly Mike, I have not looked but have you included an appropriate licence within the SVG file? If you open the SVG file in a text editor you will see the licence section. I only just now thought about that. :)

Jim
User avatar
vanuan
Posts: 539
Joined: Wed Oct 24, 2018 9:49 pm

Re: Custom cursors and high dpi (Windows and MacOS testers needed)

Post by vanuan »

jmaustpc wrote: Mon Jul 27, 2020 12:41 am
Secondly Mike, I have not looked but have you included an appropriate licence within the SVG file? If you open the SVG file in a text editor you will see the licence section. I only just now thought about that. :)
I think Mike intentionally doesn't want any metadata which isn't used in the production app. Add several kilobytes to each svg and you've got several megabytes of wasted space. Of course, it's zipped and extracted to /tmp but it's still an overhead.

I think ideally, there should be some script/cmake step which "cleans" svg files. But that's totally unrelated to this PR. So maybe we can simply add a LICENSE file to the folder and list all credits there.
User avatar
bitacovir
Veteran
Posts: 1570
Joined: Sat Apr 19, 2014 6:23 am
Contact:

Re: Custom cursors and high dpi

Post by bitacovir »

vanuan wrote: Tue Jul 21, 2020 7:48 pm
bitacovir wrote: Sat Jul 18, 2020 2:48 pm
Is this what you want?

First SVG cursor is ready to review!

Now the problem is with constraints icons: https://github.com/FreeCAD/FreeCAD/tree ... cons/small

Screenshot from 2020-07-21 22-34-43.png

Also, need to figure out how to set crosshair color.
So what do you need now? More SVG files for the rest of the icons? I am not a developer, so just give me a simple task.
::bitacovir::
==================
One must be absolutely modern.
Arthur Rimbaud (A Season in Hell -1873)

Canal Youtube Grupo Telegram de FreeCAD Español

My personal web site
My GitHub repository
Mini Airflow Tunnel Project
mikeprice99
Posts: 100
Joined: Sat Jun 27, 2020 9:06 am
Location: Dorset, England

Re: Custom cursors and high dpi (Windows and MacOS testers needed)

Post by mikeprice99 »

vanuan wrote: Mon Jul 27, 2020 9:06 am I think Mike intentionally doesn't want any metadata which isn't used in the production app. Add several kilobytes to each svg and you've got several megabytes of wasted space.
Exactly! I presume with svg based cursors the cursors are being created fomr the svg when the workbench is first opened. During this operation, each svg will be opened, parsed and the cursor built. The smaller and more precise the svg file, the quicker it'll work: FreeCAD will appear more responsive. (I also want to optimise all the button icon svgs)
vanuan wrote: Mon Jul 27, 2020 9:06 am I think ideally, there should be some script/cmake step which "cleans" svg files. But that's totally unrelated to this PR. So maybe we can simply add a LICENSE file to the folder and list all credits there.
Unfortunately, some of the contents of these SVGs is very complex. On inspection, most of the current SVGs contain multiple gradient definitions that are totally unused. Graphical objects are drawn in one place, then moved, sometimes more than once.

SVGs are a little hobby for me. I've cleaned up the FreeCAD logo - and added a twist. Drop the attached file in a browser to see! (Maybe we could use it on the website?)
Attachments
FreeCAD_twist.svg
(2.49 KiB) Downloaded 67 times
User avatar
vanuan
Posts: 539
Joined: Wed Oct 24, 2018 9:49 pm

Re: Custom cursors and high dpi

Post by vanuan »

bitacovir wrote: Mon Jul 27, 2020 12:28 pm So what do you need now? More SVG files for the rest of the icons? I am not a developer, so just give me a simple task.
Now, I need somebody to review the code and hopefully merge it. Then a daily build should be released so that users would test and report remaining issues if any.

Created a separate thread to discuss the code https://forum.freecadweb.org/viewtopic.php?f=17&t=49012
vocx
Veteran
Posts: 5197
Joined: Thu Oct 18, 2018 9:18 pm

Re: Custom cursors and high dpi (Windows and MacOS testers needed)

Post by vocx »

jmaustpc wrote: Mon Jul 27, 2020 12:41 am ...
Secondly Mike, I have not looked but have you included an appropriate licence within the SVG file?
This is in general not needed. All code in FreeCAD is implicitly either LGPL2, or Creative Commons 3.0 for the artwork.
Always add the important information to your posts if you need help. Also see Tutorials and Video tutorials.
To support the documentation effort, and code development, your donation is appreciated: liberapay.com/FreeCAD.
vocx
Veteran
Posts: 5197
Joined: Thu Oct 18, 2018 9:18 pm

Re: Custom cursors and high dpi

Post by vocx »

vanuan wrote: Mon Jul 27, 2020 1:15 pm Now, I need somebody to review the code and hopefully merge it...
By the way, don't despair. This is how FreeCAD works. Occasionally it takes weeks and months for pull requests to be merged. So just sit tight and enjoy the ride.

(A lot of active forum users are in fact non-programmers so they can't do much anyway.)
Always add the important information to your posts if you need help. Also see Tutorials and Video tutorials.
To support the documentation effort, and code development, your donation is appreciated: liberapay.com/FreeCAD.
mikeprice99
Posts: 100
Joined: Sat Jun 27, 2020 9:06 am
Location: Dorset, England

Re: Custom cursors and high dpi (Windows and MacOS testers needed)

Post by mikeprice99 »

vocx wrote: Mon Jul 27, 2020 3:29 pm This is in general not needed. All code in FreeCAD is implicitly either LGPL2, or Creative Commons 3.0 for the artwork.
Excellent. Thanks for clarifying!
vocx
Veteran
Posts: 5197
Joined: Thu Oct 18, 2018 9:18 pm

Re: Custom cursors and high dpi (Windows and MacOS testers needed)

Post by vocx »

mikeprice99 wrote: Mon Jul 27, 2020 1:14 pm ...(I also want to optimise all the button icon svgs)...
If you want to improve the SVG icons, go ahead; I think they definitely could use some work. For example, they should all be Plain SVG and have a native resolution of 96 dpi.

And yes, many icons have many strange things inside, unused gradients and things like that. I suspect this is due to historical reasons; agryson was responsible for creating the new set of icons sometime around the development of v0.16. See Artwork Guidelines, and Artwork.

However, since that time more people have joined the coding effort and programmers, not artists, have added new icons by essentially copying and modifying older ones; so I think at this point many icons could use a cleanup.
Always add the important information to your posts if you need help. Also see Tutorials and Video tutorials.
To support the documentation effort, and code development, your donation is appreciated: liberapay.com/FreeCAD.
Post Reply