COIL iconTheme

A forum for research and development of the user interface of FreeCAD

Moderator: agryson

User avatar
1D_Inc
Posts: 140
Joined: Tue Feb 05, 2019 10:06 pm
Contact:

Re: COIL iconTheme

Post by 1D_Inc » Fri May 03, 2019 10:59 pm

Well, I made RCC (we will relase them later), but I didn't got how to enable them.
I reinstalled FreeCAD from 0.17 to 0.18, but only legacy Iconthemes addon takes effect.

Here is an example rcc
https://www.dropbox.com/s/20qd1vj7nh4r4 ... 1.rcc?dl=0


RCC_err.png
RCC_err.png (247.91 KiB) Viewed 644 times

Sample QRC

Code: Select all

<!DOCTYPE RCC><RCC version="1.0">
    <qresource prefix="/icons/COIL_LB_V01">
        <file>/mnt/D1A_1Tb/FCOIL/COIL_LB/index.theme</file>
    </qresource>
    <qresource prefix="/icons/COIL_LB_V01/scalable">
        <file>/mnt/D1A_1Tb/FCOIL/COIL_LB/COIL_LB_V01_SVG/Arch_Axis_Tree.svg</file>
  			<file>/mnt/D1A_1Tb/FCOIL/COIL_LB/COIL_LB_V01_SVG/Arch_BuildingPart.svg</file>
  			<file>/mnt/D1A_1Tb/FCOIL/COIL_LB/COIL_LB_V01_SVG/Arch_Panel_Sheet.svg</file>
  			<file>/mnt/D1A_1Tb/FCOIL/COIL_LB/COIL_LB_V01_SVG/Arch_Rebar_Tree.svg</file>
  			<file>/mnt/D1A_1Tb/FCOIL/COIL_LB/COIL_LB_V01_SVG/Arch_SplitMesh.svg</file>
 ....
  			<file>/mnt/D1A_1Tb/FCOIL/COIL_LB/COIL_LB_V01_SVG/web-zoom-in.svg</file>
    </qresource>
</RCC>
Sample index.theme

Code: Select all

[Icon Theme]
Name=COIL LB V01
Comment=COIL LB V01 icon theme pack
Inherits=FreeCAD-default
Directories=scalable

[scalable]
Size=48
Type=Scalable
MinSize=1
MaxSize=256

triplus
Posts: 8605
Joined: Mon Dec 12, 2011 4:45 pm

Re: COIL iconTheme

Post by triplus » Fri May 03, 2019 11:37 pm

1D_Inc wrote:
Fri May 03, 2019 10:59 pm
Well, I made RCC
Great!
Sample QRC
Sample index.theme
I don't have more time today, as for taking a quick look, the paths don't look good to me. Best if you start from here:

https://github.com/formjune/1D_SVG_Tools/pull/1

Or here:

https://github.com/triplus/1D_SVG_Tools/tree/Structure

Structure branch is used for the PR. Click on the Clone or download button and select Download ZIP option. After extracting the archive everything should already be in place for compiling. Point the rcc tool to qrc file(s) and test the resulting .rcc files after.

P.S. Fingers crossed!

User avatar
1D_Inc
Posts: 140
Joined: Tue Feb 05, 2019 10:06 pm
Contact:

Re: COIL iconTheme

Post by 1D_Inc » Sat May 04, 2019 1:59 am

Aww, it was another branch with structure, qrc and icontheme files! It was painful, but I've got it.
Meanwhile, Iconslicer doesnot support structural slicing. Will know...

It seems, I still don't know how to launch them on windows.
There were no errors on compiling.
Also didn't got how to use them with linux Appimage.

Example of V02 rcc
https://www.dropbox.com/s/4ph5h8wa3x6cr ... 2.rcc?dl=0

No launch V02.png
No launch V02.png (72.39 KiB) Viewed 620 times

triplus
Posts: 8605
Joined: Mon Dec 12, 2011 4:45 pm

Re: COIL iconTheme

Post by triplus » Sat May 04, 2019 9:17 pm

Hi @1D_Inc

I will have more time for testing tomorrow or more likely the day after tomorrow.

User avatar
1D_Inc
Posts: 140
Joined: Tue Feb 05, 2019 10:06 pm
Contact:

Re: COIL iconTheme

Post by 1D_Inc » Sat May 04, 2019 10:39 pm

triplus wrote:
Sat May 04, 2019 9:17 pm
Hi @1D_Inc

I will have more time for testing tomorrow or more likely the day after tomorrow.
Okay. Thank you)

triplus
Posts: 8605
Joined: Mon Dec 12, 2011 4:45 pm

Re: COIL iconTheme

Post by triplus » Mon May 06, 2019 8:28 pm

1D_Inc wrote:
Sat May 04, 2019 10:39 pm
Okay. Thank you)
I made some tests today and here are the results.
It seems, I still don't know how to launch them on windows.
There were no errors on compiling.
Also didn't got how to use them with linux Appimage.

Example of V02 rcc
First congratulations as you were able to produce an icon pack in the .rcc format! Now on why you couldn't enable it on Windows and Linux. The problem is there are more versions of rcc format and on Arch Linux newer rcc tool is provided and it defaults to newer version of format. Older versions of Qt, like currently used in AppImage and likely in Windows binaries, don't have support for newer version of rcc format. But luckily newer versions of rcc tool can still compile/write in previous format version.

P.S. I updated instructions here and here.

User avatar
1D_Inc
Posts: 140
Joined: Tue Feb 05, 2019 10:06 pm
Contact:

Re: COIL iconTheme

Post by 1D_Inc » Tue May 07, 2019 3:31 am

triplus wrote:
Mon May 06, 2019 8:28 pm
P.S. I updated instructions here and here.
Thank you for clarification! I'll try to recompile them)

I've also spent this time to prepare release my Architectural Debris: Dust product. It took about half year.
I trained the modeling techniques and surface/shape/topology perception on it.

Can be interesting)

https://skfb.ly/6KpBW

ADD.jpg
ADD.jpg (373.7 KiB) Viewed 456 times

User avatar
1D_Inc
Posts: 140
Joined: Tue Feb 05, 2019 10:06 pm
Contact:

Re: COIL iconTheme

Post by 1D_Inc » Tue May 07, 2019 5:15 am

A very nice! RCC v03 is working)
Indeed, it was compiler version's issue)

Now I can check up almost entire interface in COIL theme.
Also, time to think about structural slicing.

We will place rcc files for test on github later, so Iet them be there for some time:
https://www.dropbox.com/s/wo0hsutk8glhx ... C.zip?dl=0

FC_RCC.png
FC_RCC.png (140.32 KiB) Viewed 432 times
FC_RCC_2.png
FC_RCC_2.png (93.56 KiB) Viewed 432 times


Yes, I noticed a visual color deprivation of blue themes, that's good, because it means that we have reached the limit we were aiming for.
I will figure out how to get around this.
I think about some red, despite its problems with the dark theme.

Also solid fills are used in every other software to fix shapes recognition deprivation, but I prefer to leave in an extreme case, maybe, for polishing, to avoid doubling the types of the SVG styles.
Color manipulations at the moment are cheaper for design workflow.

User avatar
1D_Inc
Posts: 140
Joined: Tue Feb 05, 2019 10:06 pm
Contact:

Re: COIL iconTheme

Post by 1D_Inc » Wed May 08, 2019 7:51 pm

Tried 2.5px wire thickness instead 2.0
Small 16px icons became readable, but 32px looks too fatty.
Maybe, there is a reason to set thickness to something in between 2.0 and 2.5
Will think.

25_thick.png
25_thick.png (280.49 KiB) Viewed 347 times

triplus
Posts: 8605
Joined: Mon Dec 12, 2011 4:45 pm

Re: COIL iconTheme

Post by triplus » Fri May 10, 2019 2:09 pm

1D_Inc wrote:
Tue May 07, 2019 3:31 am
I've also spent this time to prepare release my Architectural Debris: Dust product. It took about half year.
I trained the modeling techniques and surface/shape/topology perception on it.
Nice. Hopefully in the future with FCStd extension too! ;)
A very nice! RCC v03 is working)
Indeed, it was compiler version's issue)
Good to hear that and i guess we have reached a milestone. Still some work left to do but now FreeCAD has a proper icon themes support and some high quality complementary icon theme packs that interested people can already start to use.
Tried 2.5px wire thickness instead 2.0
Small 16px icons became readable, but 32px looks too fatty.
Maybe, there is a reason to set thickness to something in between 2.0 and 2.5
Will think.
Note that a possibility exist, to have a set of different SVG files in the same icon theme pack, used for different size (ranges).
We will place rcc files for test on github later, so Iet them be there for some time
That would be great.

Post Reply