Qcad Theme Apps
Moderator: andrew
Forum rules
Always indicate your operating system and QCAD version.
Attach drawing files, scripts and screenshots.
Post one question per topic.
Always indicate your operating system and QCAD version.
Attach drawing files, scripts and screenshots.
Post one question per topic.
- petevick
- Premier Member
- Posts: 392
- Joined: Tue May 19, 2020 9:34 am
- Location: North Norfolk coast UK
Re: Qcad Theme Apps
If this wasn't to your taste - https://www.qcad.org/rsforum/viewtopic. ... =15#p43294 - here's another take on the colour Royal Blue.....
Pete Vickerstaff
Linux Mint 21.2 Cinnamon, Qcad Pro 3.29.6
Linux Mint 21.2 Cinnamon, Qcad Pro 3.29.6
Re: Qcad Theme Apps
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
I was able to save it normally, I don't know what happened. I'm attaching the stylesheet file
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
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
- petevick
- Premier Member
- Posts: 392
- Joined: Tue May 19, 2020 9:34 am
- Location: North Norfolk coast UK
Re: Qcad Theme Apps
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.bob93 wrote: ↑Fri Mar 01, 2024 8:29 amEDIT: 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
Pete Vickerstaff
Linux Mint 21.2 Cinnamon, Qcad Pro 3.29.6
Linux Mint 21.2 Cinnamon, Qcad Pro 3.29.6
- petevick
- Premier Member
- Posts: 392
- Joined: Tue May 19, 2020 9:34 am
- Location: North Norfolk coast UK
Re: Qcad Theme Apps
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 ?bob93 wrote: ↑Fri Mar 01, 2024 8:29 amEDIT: 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
There's certainly nothing wrong with the stylesheet you attached.
Pete Vickerstaff
Linux Mint 21.2 Cinnamon, Qcad Pro 3.29.6
Linux Mint 21.2 Cinnamon, Qcad Pro 3.29.6
Re: Qcad Theme Apps
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
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
- petevick
- Premier Member
- Posts: 392
- Joined: Tue May 19, 2020 9:34 am
- Location: North Norfolk coast UK
Re: Qcad Theme Apps
Thanks bob93, that's just what I need to track the problem down
Pete Vickerstaff
Linux Mint 21.2 Cinnamon, Qcad Pro 3.29.6
Linux Mint 21.2 Cinnamon, Qcad Pro 3.29.6
- petevick
- Premier Member
- Posts: 392
- Joined: Tue May 19, 2020 9:34 am
- Location: North Norfolk coast UK
Re: Qcad Theme Apps
I can now replicate the error so hopefully I should be able to fix it. Thanks again for the extra information bob93.bob93 wrote: ↑Fri Mar 01, 2024 10:28 pmHere'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
Pete Vickerstaff
Linux Mint 21.2 Cinnamon, Qcad Pro 3.29.6
Linux Mint 21.2 Cinnamon, Qcad Pro 3.29.6
- petevick
- Premier Member
- Posts: 392
- Joined: Tue May 19, 2020 9:34 am
- Location: North Norfolk coast UK
Re: Qcad Theme Apps
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.bob93 wrote: ↑Fri Mar 01, 2024 10:28 pmHere'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'll be uploading it probably sometime this month.
Pete Vickerstaff
Linux Mint 21.2 Cinnamon, Qcad Pro 3.29.6
Linux Mint 21.2 Cinnamon, Qcad Pro 3.29.6
Re: Qcad Theme Apps
Nice, that was quick!petevick wrote: ↑Sat Mar 02, 2024 11:04 amHi 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.
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.
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):
- petevick
- Premier Member
- Posts: 392
- Joined: Tue May 19, 2020 9:34 am
- Location: North Norfolk coast UK
Re: Qcad Theme Apps
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......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
Pete Vickerstaff
Linux Mint 21.2 Cinnamon, Qcad Pro 3.29.6
Linux Mint 21.2 Cinnamon, Qcad Pro 3.29.6
-
- Junior Member
- Posts: 24
- Joined: Fri Apr 28, 2023 12:39 pm
Re: Qcad Theme Apps
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.
- petevick
- Premier Member
- Posts: 392
- Joined: Tue May 19, 2020 9:34 am
- Location: North Norfolk coast UK
Re: Qcad Theme Apps
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.333onlyhalfevil wrote: ↑Sun Mar 03, 2024 8:23 pmIs 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.
Pete Vickerstaff
Linux Mint 21.2 Cinnamon, Qcad Pro 3.29.6
Linux Mint 21.2 Cinnamon, Qcad Pro 3.29.6
Re: Qcad Theme Apps
One can start external processes from within QCAD.333onlyhalfevil wrote: ↑Sun Mar 03, 2024 8:23 pmIs 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.
Catch22: QCAD must be restarted to apply a new Theme.
Regards,
CVH