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

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

QcadUserTheme

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

NEW VERSION !! v7.0 Lots of changes !! Linux and Windows versions - https://www.qcad.org/rsforum/viewtopic. ... 002#p37002

......
qcad_theme_small_icon.png
qcad_theme_small_icon.png (31.61 KiB) Viewed 14677 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 14677 times
windows.png
windows.png (51.88 KiB) Viewed 14677 times
Enjoy.

Pete Vickerstaff
Attachments
Readme.txt
(3.94 KiB) Downloaded 552 times
Last edited by petevick on Wed Mar 30, 2022 4:20 pm, edited 14 times in total.
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: 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 21.2 Cinnamon, Qcad Pro 3.29.6

User avatar
Husky
Moderator/Drawing Help/Testing
Posts: 4935
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 14648 times

... I tested it with your Midnight css.
Work smart, not hard: QCad Pro
Win10/64, QcadPro, QcadCam version: Current.
If a thread is considered as "solved" please change the title of the first post to "[solved] Title..."

User avatar
petevick
Premier Member
Posts: 392
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 21.2 Cinnamon, Qcad Pro 3.29.6

User avatar
Husky
Moderator/Drawing Help/Testing
Posts: 4935
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
Win10/64, QcadPro, QcadCam version: Current.
If a thread is considered as "solved" please change the title of the first post to "[solved] Title..."

User avatar
petevick
Premier Member
Posts: 392
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 21.2 Cinnamon, Qcad Pro 3.29.6

User avatar
ryancousins
Premier Member
Posts: 367
Joined: Thu Mar 19, 2020 3:47 am
Location: 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: 473
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 529 times
Greyscale-Linux.png
Greyscale-Linux.png (270.02 KiB) Viewed 14553 times
Greyscale-Windows10.png
Greyscale-Windows10.png (137.26 KiB) Viewed 14553 times
IF IT IS TO BE IT IS UP TO ME [ Ten most powerful 2 letter words ]

User avatar
petevick
Premier Member
Posts: 392
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 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: 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.

v2.0 Linux 64bit downloaded 29 times
v2.0 Windows 32bit downloaded 30 times
Last edited by petevick on Mon Apr 26, 2021 12:18 pm, edited 1 time in total.
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: QcadUserTheme

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

This is the Linux 32 bit version of QcadUserTheme.

v2.0 Linux bit downloaded 21 times
Last edited by petevick on Mon Apr 26, 2021 12:19 pm, edited 1 time in total.
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: QcadUserTheme

Post by petevick » Sat Apr 24, 2021 11:24 am

At long last, updated to version 3.0, and now with added preview !!! but only for Linux users at the moment.
The preview is live and updates as you alter any colour button. The tabs in the left and right sides of the app are always sync'd to each other.

The preview is only meant to be an approximation of the Qcad environment, there are some inaccuracies, but the main aim was to show the combination of colours, like how text looks on backgrounds.

You can extract the contents of the zip file anywhere, but you will have to edit the launcher file included to suit.
Don't forget to make sure the to set the property permission Execute is checked otherwise it won't run.

If you are already using QcadUserTheme, you can extract the executable from the zip into your current QcadUserTheme folder and overwrite the old file.

Attached are 32bit and 64bit Linux versions.

Screenshot.....
linux v3.png
linux v3.png (73.08 KiB) Viewed 13435 times

v3.0 Linux 64bit downloaded 2 times
v3.0 Linux 32bit downloaded 2 times
Last edited by petevick on Mon Apr 26, 2021 12:20 pm, edited 1 time in total.
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: QcadUserTheme

Post by petevick » Sat Apr 24, 2021 3:11 pm

Slight hitch with the Windows version, but all fixed now.

This is a 32bit Windows version that will also run in a Windows 64 bit environment, tested in Win2000 32bit, Win7 64bit and Win10 64bit.

Screenshot.......
windows v3.png
windows v3.png (56.02 KiB) Viewed 13410 times

v3.0 Windows 32bit downloaded 6 times
Last edited by petevick on Mon Apr 26, 2021 12:21 pm, edited 1 time in total.
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: QcadUserTheme

Post by petevick » Mon Apr 26, 2021 12:13 pm

Updated to version v3.5 Linux and Windows

Ironed out a few bugs, plus a few cosmetic changes and updates as follows

Updates
  • The position of the app window is saved on exit.
  • Check and radio button icons added to the Preview>Miscellaneous tab as a color guide only.
Changes
  • The Combo list details were on two preview tabs, they are now just on the Base / Menu / Combo tab.
  • All the push buttons, tool bar buttons and tool buttons are now static and show the state of the buttons separately. You can now see at a glance when the hover and pressed colors are changed
  • The description text in the Base / Menu / Combo tab is now hopefully clearer to read, and now includes the combo list.
Screenshots, Linux followed by Windows
linux v3.5.png
linux v3.5.png (90.51 KiB) Viewed 13287 times
windows v3.5.png
windows v3.5.png (65.68 KiB) Viewed 13287 times
QcadUserTheme v3.5 Win-32bit downloaded 4 times
QcadUserTheme v3.5 Linux-64bit.zip Downloaded 10 times
QcadUserTheme v3.5 Linux-32bit.zip Downloaded 6 times

New version, see here -->> viewtopic.php?f=30&p=33383#p33383
Last edited by petevick on Tue May 25, 2021 11:48 am, edited 3 times in total.
Pete Vickerstaff
Linux Mint 21.2 Cinnamon, Qcad Pro 3.29.6

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

Re: QcadUserTheme

Post by John Hyslop » Tue Apr 27, 2021 6:45 am

Ladies & Gentlemen
I present to you all the one and only "BANANA" Theme e_surprised
Here for a limited time only, get it before it disappears into the depths of cyberspace :lol:
Inspired by "a bunch of Bananas I found on the internet"... see below 8)
....
Well mainly this was a Theme to test out the Colour Picker , I selected parts of the image
below and applied it to this Theme...
WARNING!! SUN GLASSES MAY NEED TO BE WORN WHILE USING THIS THEME :!: :!:
Created with QcadUserTheme (c) 2021 Pete Vickerstaff. All rights reserved..
..
..
Banana.zip
(33.13 KiB) Downloaded 505 times
..
Banana.png
Banana.png (303.42 KiB) Viewed 13141 times
Banana_Screenshot.jpg
Banana_Screenshot.jpg (132.15 KiB) Viewed 13141 times
..
Cheers
John Hyslop :lol:
Last edited by John Hyslop on Tue Apr 27, 2021 6:51 am, edited 1 time in total.
IF IT IS TO BE IT IS UP TO ME [ Ten most powerful 2 letter words ]

Post Reply

Return to “QCAD Programming, Script Programming and Contributing”