Qcad Theme Apps

Discussion forum for C++ and script developers who are using the QCAD development platform or who are looking to contribute to QCAD (translations, documentation, etc).

Moderator: andrew

Forum rules

Always indicate your operating system and QCAD version.

Attach drawing files, scripts and screenshots.

Post one question per topic.

User avatar
petevick
Premier Member
Posts: 392
Joined: Tue May 19, 2020 9:34 am
Location: North Norfolk coast UK

Re: Qcad Theme Apps

Post by petevick » Sun Jan 07, 2024 7:56 am

If this wasn't to your taste - https://www.qcad.org/rsforum/viewtopic. ... =15#p43294 - here's another take on the colour Royal Blue.....

Screenshot from 2024-01-07 06-43-57.png
Screenshot from 2024-01-07 06-43-57.png (143.93 KiB) Viewed 1669 times
Royal Blue.zip
(25.69 KiB) Downloaded 220 times
Pete Vickerstaff
Linux Mint 21.2 Cinnamon, Qcad Pro 3.29.6

bob93
Junior Member
Posts: 16
Joined: Sat Jan 28, 2023 11:35 pm

Re: Qcad Theme Apps

Post by bob93 » Fri Mar 01, 2024 8:29 am

EDIT: The last thing I did before it stopped saving was to make almost all pairs of button top/bottom gradient colors equal (because I wanted to create a theme that's mostly flat/solid fill except for some things) and then set Push and Toolbar buttons to solid fill

Alright, so I've been trying some colors with Qcad theme designer. I don't know what happened but I arrived at a point where every time I try to save my theme I get this error:

" backg" is an invalid integer.

Press OK to ignore and risk data corruption.
Press Abort to kill the program


qcadthemedesignererror.PNG
qcadthemedesignererror.PNG (12.82 KiB) Viewed 1020 times
I was able to save it normally, I don't know what happened. I'm attaching the stylesheet file
Attachments
stylesheet.zip
(2.89 KiB) Downloaded 53 times

User avatar
petevick
Premier Member
Posts: 392
Joined: Tue May 19, 2020 9:34 am
Location: North Norfolk coast UK

Re: Qcad Theme Apps

Post by petevick » Fri Mar 01, 2024 8:59 am

bob93 wrote:
Fri Mar 01, 2024 8:29 am
EDIT: The last thing I did before it stopped saving was to make almost all pairs of button top/bottom gradient colors equal (because I wanted to create a theme that's mostly flat/solid fill except for some things) and then set Push and Toolbar buttons to solid fill

Alright, so I've been trying some colors with Qcad theme designer. I don't know what happened but I arrived at a point where every time I try to save my theme I get this error:

" backg" is an invalid integer.

Press OK to ignore and risk data corruption.
Press Abort to kill the program



qcadthemedesignererror.PNG

I was able to save it normally, I don't know what happened. I'm attaching the stylesheet file
Thanks for this. I'm currently updating QTD, I'll add this to the 'list' and see if I can find what caused the error. Hopefully with the information you've provided I can sort it out.
Pete Vickerstaff
Linux Mint 21.2 Cinnamon, Qcad Pro 3.29.6

User avatar
petevick
Premier Member
Posts: 392
Joined: Tue May 19, 2020 9:34 am
Location: North Norfolk coast UK

Re: Qcad Theme Apps

Post by petevick » Fri Mar 01, 2024 3:58 pm

bob93 wrote:
Fri Mar 01, 2024 8:29 am
EDIT: The last thing I did before it stopped saving was to make almost all pairs of button top/bottom gradient colors equal (because I wanted to create a theme that's mostly flat/solid fill except for some things) and then set Push and Toolbar buttons to solid fill

Alright, so I've been trying some colors with Qcad theme designer. I don't know what happened but I arrived at a point where every time I try to save my theme I get this error:

" backg" is an invalid integer.

Press OK to ignore and risk data corruption.
Press Abort to kill the program



qcadthemedesignererror.PNG

I was able to save it normally, I don't know what happened. I'm attaching the stylesheet file
The only thing I can see that has a possibility of creating the error is to do with Tab Bars - Hovered gradient top in the Misc tab, and even then I'm struggling to see how it could happen. Is it possible that you'd just changed the colour for Hovered gradient top prior to the error occurring ?
There's certainly nothing wrong with the stylesheet you attached.
Pete Vickerstaff
Linux Mint 21.2 Cinnamon, Qcad Pro 3.29.6

bob93
Junior Member
Posts: 16
Joined: Sat Jan 28, 2023 11:35 pm

Re: Qcad Theme Apps

Post by bob93 » Fri Mar 01, 2024 10:28 pm

Here's how I was able to reproduce the problem on Windows, Qcad Theme Designer v5.2.1:
Load default style
Save it in a folder on the desktop
Go to Push Buttons tab and set all Gradient tops and Gradient bottoms to the same color (for example red, see attached image 1)
Go to Toolbar Buttons tab and do the same (see attached image 2)
Save the theme. It saves normally
Go back Push buttons tab and select Solid Fill
Go to Toolbar Buttons tab and select Solid Fill as well
Save theme. Error appears.

Nothing to do with the Misc. tab apparently.
Only way to save theme after error appears is to select Gradient Fill instead of Solid Fill
1.PNG
1.PNG (116.29 KiB) Viewed 958 times
2.PNG
2.PNG (114.82 KiB) Viewed 958 times

User avatar
petevick
Premier Member
Posts: 392
Joined: Tue May 19, 2020 9:34 am
Location: North Norfolk coast UK

Re: Qcad Theme Apps

Post by petevick » Fri Mar 01, 2024 10:33 pm

Thanks bob93, that's just what I need to track the problem down :wink:
Pete Vickerstaff
Linux Mint 21.2 Cinnamon, Qcad Pro 3.29.6

User avatar
petevick
Premier Member
Posts: 392
Joined: Tue May 19, 2020 9:34 am
Location: North Norfolk coast UK

Re: Qcad Theme Apps

Post by petevick » Sat Mar 02, 2024 7:52 am

bob93 wrote:
Fri Mar 01, 2024 10:28 pm
Here's how I was able to reproduce the problem on Windows, Qcad Theme Designer v5.2.1:
Load default style
Save it in a folder on the desktop
Go to Push Buttons tab and set all Gradient tops and Gradient bottoms to the same color (for example red, see attached image 1)
Go to Toolbar Buttons tab and do the same (see attached image 2)
Save the theme. It saves normally
Go back Push buttons tab and select Solid Fill
Go to Toolbar Buttons tab and select Solid Fill as well
Save theme. Error appears.

Nothing to do with the Misc. tab apparently.
Only way to save theme after error appears is to select Gradient Fill instead of Solid Fill
I can now replicate the error so hopefully I should be able to fix it. Thanks again for the extra information bob93.
Pete Vickerstaff
Linux Mint 21.2 Cinnamon, Qcad Pro 3.29.6

User avatar
petevick
Premier Member
Posts: 392
Joined: Tue May 19, 2020 9:34 am
Location: North Norfolk coast UK

Re: Qcad Theme Apps

Post by petevick » Sat Mar 02, 2024 11:04 am

bob93 wrote:
Fri Mar 01, 2024 10:28 pm
Here's how I was able to reproduce the problem on Windows, Qcad Theme Designer v5.2.1:
Load default style
Save it in a folder on the desktop
Go to Push Buttons tab and set all Gradient tops and Gradient bottoms to the same color (for example red, see attached image 1)
Go to Toolbar Buttons tab and do the same (see attached image 2)
Save the theme. It saves normally
Go back Push buttons tab and select Solid Fill
Go to Toolbar Buttons tab and select Solid Fill as well
Save theme. Error appears.

Nothing to do with the Misc. tab apparently.
Only way to save theme after error appears is to select Gradient Fill instead of Solid Fill
Hi bob93, I've found and fixed what was causing the error, it'll be included in the next version. Using actual colours like red, blue, green caused the error, all to do with how colours are handled by the Lazarus code.
I'll be uploading it probably sometime this month.
Pete Vickerstaff
Linux Mint 21.2 Cinnamon, Qcad Pro 3.29.6

bob93
Junior Member
Posts: 16
Joined: Sat Jan 28, 2023 11:35 pm

Re: Qcad Theme Apps

Post by bob93 » Sat Mar 02, 2024 1:35 pm

petevick wrote:
Sat Mar 02, 2024 11:04 am
Hi bob93, I've found and fixed what was causing the error, it'll be included in the next version. Using actual colours like red, blue, green caused the error, all to do with how colours are handled by the Lazarus code.
I'll be uploading it probably sometime this month.
Nice, that was quick!
I'm not sure what you mean by actual colors though. The first time I saw the error (when I sent the stylesheet file) I was using greys instead of red. Both greys from the palette and custom greys I had defined. Hopefully your fix takes care of all of this. Fingers crossed

Now, while I was dealing with this I seem to have come across another issue.
qcadthemedesignererror2.PNG
qcadthemedesignererror2.PNG (35.11 KiB) Viewed 877 times
I only captured part of the window which was huge. If I resize this window to a smaller size then it looks like this (folders don't show):
qcadthemedesignererror2b.PNG
qcadthemedesignererror2b.PNG (23.39 KiB) Viewed 877 times

User avatar
petevick
Premier Member
Posts: 392
Joined: Tue May 19, 2020 9:34 am
Location: North Norfolk coast UK

Re: Qcad Theme Apps

Post by petevick » Sat Mar 02, 2024 4:08 pm

bob93 wrote:
Sat Mar 02, 2024 1:35 pm

Now, while I was dealing with this I seem to have come across another issue.

qcadthemedesignererror2.PNG

I only captured part of the window which was huge. If I resize this window to a smaller size then it looks like this (folders don't show):

qcadthemedesignererror2b.PNG
I've pretty much redesigned the browser and the way all the components are positioned, so that should cure what I'm seeing there. I've never come across that !! Here's a pre upload taster......
open browser.png
open browser.png (35.14 KiB) Viewed 848 times
Pete Vickerstaff
Linux Mint 21.2 Cinnamon, Qcad Pro 3.29.6

333onlyhalfevil
Junior Member
Posts: 24
Joined: Fri Apr 28, 2023 12:39 pm

Re: Qcad Theme Apps

Post by 333onlyhalfevil » Sun Mar 03, 2024 8:23 pm

Is there a script/plugin version of this? It would be cool if the edit dropdown menu had a themes button that opened it within qcad.

User avatar
petevick
Premier Member
Posts: 392
Joined: Tue May 19, 2020 9:34 am
Location: North Norfolk coast UK

Re: Qcad Theme Apps

Post by petevick » Sun Mar 03, 2024 9:28 pm

333onlyhalfevil wrote:
Sun Mar 03, 2024 8:23 pm
Is there a script/plugin version of this? It would be cool if the edit dropdown menu had a themes button that opened it within qcad.
no script version I'm afraid. In the next version you will be able to open Qcad with the current Qcad Theme Designer theme, and after closing Qcad choose to either keep the original Qcad theme or replace it with the Qcad Theme Designer theme.
Pete Vickerstaff
Linux Mint 21.2 Cinnamon, Qcad Pro 3.29.6

CVH
Premier Member
Posts: 3480
Joined: Wed Sep 27, 2017 4:17 pm

Re: Qcad Theme Apps

Post by CVH » Mon Mar 04, 2024 6:45 am

333onlyhalfevil wrote:
Sun Mar 03, 2024 8:23 pm
Is there a script/plugin version of this? It would be cool if the edit dropdown menu had a themes button that opened it within qcad.
One can start external processes from within QCAD.
Catch22: QCAD must be restarted to apply a new Theme. :roll:

Regards,
CVH

Post Reply

Return to “QCAD Programming, Script Programming and Contributing”