QcadUserTheme

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

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

QcadUserTheme

Post by petevick » Wed Mar 31, 2021 11:03 am

ADDED LINUX 32 bit VERSION - viewtopic.php?f=30&p=32856#p32856
qcad_theme_small_icon.png
qcad_theme_small_icon.png (31.61 KiB) Viewed 1155 times
QcadUserTheme will enable you to create new Qcad stylesheets without having any css/qss coding skills. The stylesheet included in the MyTheme folder in the zip files is based on my Heather theme, this should give you a base to work off. You cannot use any of my original themes as they are in a slightly different format.

There are two versions of QcadUserTheme, one for Linux users and one for Windows users. There are separate zip files for each OS.

Please read the Readme.txt file included in each zip, and uploaded here separately. It gives instructions on the very simple manual installation and how to use QcadUserTheme. There is also a pdf included in the zip files showing the locations of the various colours within Qcad.

It would also be great if you shared any stylesheets you create, others might want to use them. If you do upload any stylesheets, keep the stylesheet in it's containing folder.

Please give any constructive feedback, this is my first program using Pascal, and it's been over 40 years since I last did any programming in anger, so things could be a bit 'fuzzy'.

These are screenshots of QcadUserTheme in Linux and then Windows.
linux.png
linux.png (75.29 KiB) Viewed 1155 times
windows.png
windows.png (51.88 KiB) Viewed 1155 times
Enjoy.

Pete Vickerstaff
Attachments
Readme.txt
(3.94 KiB) Downloaded 27 times
Last edited by petevick on Sat Apr 10, 2021 9:30 am, edited 4 times in total.
Pete Vickerstaff
Linux Mint 20.1 Cinnamon, Qcad Pro 3.26.1

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

Re: QcadUserTheme

Post by petevick » Wed Mar 31, 2021 12:55 pm

Windows users need to make sure that wherever they place the QcadUserTheme folder it does not need Admin rights.
Pete Vickerstaff
Linux Mint 20.1 Cinnamon, Qcad Pro 3.26.1

User avatar
Husky
Moderator/Drawing Help/Testing
Posts: 3615
Joined: Wed May 11, 2011 9:25 am
Location: USA

Re: QcadUserTheme

Post by Husky » Wed Mar 31, 2021 6:02 pm

That is a great idea! Thanks for the program.
petevick wrote:
Wed Mar 31, 2021 12:55 pm
Windows users need to make sure that wherever they place the QcadUserTheme folder it does not need Admin rights.
Tried in Win 10/64 to load a .ccs but it keeps telling me it isn't a valid .ccs. What is a valid .ccs ...

Husky-2021.03.31-01.png
Husky-2021.03.31-01.png (23.77 KiB) Viewed 1126 times

... I tested it with your Midnight css.
Work smart, not hard: QCad Pro

If a thread is considered as "solved" please change the title of the first post to "[solved] Title...". Thanks!

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

Re: QcadUserTheme

Post by petevick » Wed Mar 31, 2021 6:09 pm

Husky wrote:
Wed Mar 31, 2021 6:02 pm
That is a great idea! Thanks for the program.

Tried in Win 10/64 to load a .ccs but it keeps telling me it isn't a valid .ccs. What is a valid .ccs ...

... I tested it with your Midnight css.
Hi Husky, as stated in the Readme.txt file......
!! IMPORTANT NOTES !!
It is not possible to open ANY of my previous stylesheets, you will just get a message
to say the file is invalid.
So you MUST use the css file that is in the MyTheme folder in the zip file.
Pete Vickerstaff
Linux Mint 20.1 Cinnamon, Qcad Pro 3.26.1

User avatar
Husky
Moderator/Drawing Help/Testing
Posts: 3615
Joined: Wed May 11, 2011 9:25 am
Location: USA

Re: QcadUserTheme

Post by Husky » Wed Mar 31, 2021 6:25 pm

Ught ... I was precipitative. Sorry for that! :oops:
Work smart, not hard: QCad Pro

If a thread is considered as "solved" please change the title of the first post to "[solved] Title...". Thanks!

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

Re: QcadUserTheme

Post by petevick » Wed Mar 31, 2021 6:32 pm

:lol: no worries Husky, we men are not supposed to read the instructions :lol: :lol:
Pete Vickerstaff
Linux Mint 20.1 Cinnamon, Qcad Pro 3.26.1

User avatar
ryancousins
Senior Member
Posts: 123
Joined: Thu Mar 19, 2020 3:47 am
Location: Kalamazoo, Michigan USA

Re: QcadUserTheme

Post by ryancousins » Wed Mar 31, 2021 10:45 pm

This is pretty cool, petevick! I wish I could create programs like this. Maybe one day.

John Hyslop
Premier Member
Posts: 298
Joined: Mon Sep 30, 2019 6:21 am
Location: Melbourne - Australia

Re: QcadUserTheme

Post by John Hyslop » Fri Apr 02, 2021 8:08 am

Hi All
Well I decided to have a play with PeteVicks QcadUserTheme Creator.. Nice work Pete :)
For all you gals and guys that don't like colours I've made a Greyscale Theme using this Tool.
It did take a while to do believe it or not e_surprised
Previews below in Mint Linux 20.1 & Windows 10.
Cheers
John
.
GreyscaleTheme.zip
(33.13 KiB) Downloaded 28 times
Greyscale-Linux.png
Greyscale-Linux.png (270.02 KiB) Viewed 1031 times
Greyscale-Windows10.png
Greyscale-Windows10.png (137.26 KiB) Viewed 1031 times
IF IT IS TO BE IT IS UP TO ME [ Ten most powerful 2 letter words ]

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

Re: QcadUserTheme

Post by petevick » Fri Apr 02, 2021 8:18 am

John Hyslop wrote:
Fri Apr 02, 2021 8:08 am
Hi All
Well I decided to have a play with PeteVicks QcadUserTheme Creator.. Nice work Pete :)
For all you gals and guys that don't like colours I've made a Greyscale Theme using this Tool.
It did take a while to do believe it or not e_surprised
Previews below in Mint Linux 20.1 & Windows 10.
Cheers
John
Excellent John, I'm in the colour category, but I quite like that :D
Pete Vickerstaff
Linux Mint 20.1 Cinnamon, Qcad Pro 3.26.1

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

Re: QcadUserTheme

Post by petevick » Wed Apr 07, 2021 10:38 am

I've updated QcadUserTheme to v2.0 as follows...

Added / Improved
  • Right click on any colour button, Copy and Paste popup menu appears. Copy the color and paste to any other colour button. The current paste colour is displayed at the bottom of the app window.
  • Message dialogs improved, they will now generally popup relative to the cursor position.
Fixes
  • Base and Menu>menu colors>Menu item background - was not writing to the css file.
  • Miscellaneous>Tool Matrix - this should read Headers not Background.
Sadly no preview as yet, I'm working on it. :roll:

Please note that the Linux version will only run in 64bit Linux platforms, plans are afoot for a 32bit version. The Windows version is 32bit but will run in Windows 64bit.
Attachments
QcadUserTheme v2.0 - Linux64.zip
(1.21 MiB) Downloaded 24 times
QcadUserTheme v2.0 - Windows32.zip
(1.02 MiB) Downloaded 25 times
Pete Vickerstaff
Linux Mint 20.1 Cinnamon, Qcad Pro 3.26.1

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

Re: QcadUserTheme

Post by petevick » Sat Apr 10, 2021 9:27 am

This is the Linux 32 bit version of QcadUserTheme.
Attachments
QcadUserTheme Linux32.zip
(1.15 MiB) Downloaded 17 times
Pete Vickerstaff
Linux Mint 20.1 Cinnamon, Qcad Pro 3.26.1

Post Reply

Return to “QCAD Programming, Script Programming and Contributing”