As long as you're happy with what I've given, then I'm happy. Let's not add any complications.
Custom cursors and high dpi (Windows and MacOS testers needed)
Forum rules
Be nice to others! Respect the FreeCAD code of conduct!
Be nice to others! Respect the FreeCAD code of conduct!
-
- Posts: 100
- Joined: Sat Jun 27, 2020 9:06 am
- Location: Dorset, England
Re: Custom cursors and high dpi (Windows and MacOS testers needed)
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.mikeprice99 wrote: ↑Sun Jul 26, 2020 8:54 pmAs long as you're happy with what I've given, then I'm happy. Let's not add any complications.
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
Re: Custom cursors and high dpi (Windows and MacOS testers needed)
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.
Re: Custom cursors and high dpi
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.vanuan wrote: ↑Tue Jul 21, 2020 7:48 pm
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.
::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
==================
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
-
- Posts: 100
- Joined: Sat Jun 27, 2020 9:06 am
- Location: Dorset, England
Re: Custom cursors and high dpi (Windows and MacOS testers needed)
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)
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
Re: Custom cursors and high dpi
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
Re: Custom cursors and high dpi (Windows and MacOS testers needed)
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.
To support the documentation effort, and code development, your donation is appreciated: liberapay.com/FreeCAD.
Re: Custom cursors and high dpi
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.
To support the documentation effort, and code development, your donation is appreciated: liberapay.com/FreeCAD.
-
- Posts: 100
- Joined: Sat Jun 27, 2020 9:06 am
- Location: Dorset, England
Re: Custom cursors and high dpi (Windows and MacOS testers needed)
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.mikeprice99 wrote: ↑Mon Jul 27, 2020 1:14 pm ...(I also want to optimise all the button icon svgs)...
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.
To support the documentation effort, and code development, your donation is appreciated: liberapay.com/FreeCAD.