Application Preference Styles not in 3.12.3

If you are having problems with QCAD, post here. Please report bugs through our Bug Tracker instead.

Always attach your original DXF or DWG file and mentions your QCAD version and the platform you are on.

Moderator: andrew

Forum rules

Always indicate your operating system and QCAD version.

Attach drawing files and screenshots.

Post one question per topic.

Post Reply
jdi000
Newbie Member
Posts: 6
Joined: Tue May 22, 2012 9:20 pm
Location: US

Application Preference Styles not in 3.12.3

Post by jdi000 » Mon Dec 07, 2015 3:20 pm

Hello

QCAD 3.12.3 does not have the option for the Layout : Styles included in the application preferences. Is this removed on purpose?

Thanks
Jason

Windows 7, Windows 10
Attachments
preferences.PNG
preferences.PNG (170.1 KiB) Viewed 10173 times
Jason
Win 10, Win 7

User avatar
andrew
Site Admin
Posts: 9037
Joined: Fri Mar 30, 2007 6:07 am

Re: Application Preference Styles not in 3.12.3

Post by andrew » Mon Dec 07, 2015 3:28 pm

Yes, styles were removed from QCAD in version 3.12.x because they are incompatible with newer Qt versions (>=5).

User avatar
Clive
Moderator
Posts: 1329
Joined: Thu Aug 25, 2011 9:28 pm
Location: UK

Re: Application Preference Styles not in 3.12.3

Post by Clive » Thu Apr 14, 2016 9:45 am

Would it be - or is it too time consuming to look at this and offer some new styles, I'm particularly thinking about different colour schemes more than anything else?

Thanks

Clive

User avatar
andrew
Site Admin
Posts: 9037
Joined: Fri Mar 30, 2007 6:07 am

Re: Application Preference Styles not in 3.12.3

Post by andrew » Tue Apr 19, 2016 8:48 am

Unfortunately, color scheme / theme design is quite laborious, yes.

QCAD 3.14.1 comes with an experimental example theme in the 'themes' directory. This is a theme originally created for another Qt application (Qt Creator) which I've adjusted slightly. It's all CSS stylesheets and pretty straight forward, so anyone with design skills and CSS experience should be able to adjust it further or create a new theme without requiring any programming skills.

The theme can be set under Edit > Application Preferences > General > Theme. A restart is currently required, though I'm not sure why..
dark_theme.png
dark_theme.png (192.79 KiB) Viewed 9581 times

User avatar
Clive
Moderator
Posts: 1329
Joined: Thu Aug 25, 2011 9:28 pm
Location: UK

Re: Application Preference Styles not in 3.12.3

Post by Clive » Tue Apr 19, 2016 12:08 pm

This is really great Andrew, thanks for this I like it a lot. Although for some css would be straight forward to understand and make additional styles for QCAD like this ... I'm afraid it's still beyond me. I wonder if it would be possible when you have the time to maybe make another style like this but in a more green style?

Thanks again

Clive

User avatar
andrew
Site Admin
Posts: 9037
Joined: Fri Mar 30, 2007 6:07 am

Re: Application Preference Styles not in 3.12.3

Post by andrew » Tue Apr 19, 2016 12:33 pm

I'm not planning to add any more styles, but the CSS provided in themes/Dark/stylesheet.css can be modified really easily into a new, similar theme with different colors.

It would require nothing more than replacing the various gray colors with something else.

Color codes look like this: #3c3f41 which looks complicated but is really just a hexadecimal, unique code for a color.
These codes can for example be visualised or found using online color pickers or color wheels:

http://www.w3schools.com/colors/colors_picker.asp
http://color.adobe.com

User avatar
Clive
Moderator
Posts: 1329
Joined: Thu Aug 25, 2011 9:28 pm
Location: UK

Re: Application Preference Styles not in 3.12.3

Post by Clive » Tue Apr 19, 2016 12:37 pm

Thanks Andrew, okay I'll give it a go :)

User avatar
Clive
Moderator
Posts: 1329
Joined: Thu Aug 25, 2011 9:28 pm
Location: UK

Re: Application Preference Styles not in 3.12.3

Post by Clive » Tue Apr 19, 2016 12:45 pm

Okay I'm now looking in the .txt document and where do i start, it would be easier if the code had the colour 'Gray' beside it e_surprised

User avatar
andrew
Site Admin
Posts: 9037
Joined: Fri Mar 30, 2007 6:07 am

Re: Application Preference Styles not in 3.12.3

Post by andrew » Tue Apr 19, 2016 12:47 pm

Excellent! Let me know if you bump into any problems.

Some more resources for creating / finding matching colors:
http://colorschemedesigner.com/
http://www.colourlovers.com/palettes

But there are many more, so it's usually not necessary to figure out these codes with a calculator ;)

User avatar
andrew
Site Admin
Posts: 9037
Joined: Fri Mar 30, 2007 6:07 am

Re: Application Preference Styles not in 3.12.3

Post by andrew » Tue Apr 19, 2016 12:51 pm

Clive wrote:it would be easier if the code had the colour 'Gray' beside it e_surprised
All codes looking like #xxxxxx where x is 1-9 or a-f are color codes. A theme uses multiple colors. For the dark theme, the colors are all some shade of gray with very few exceptions (tabs for example).

One way to find out what one code does is to change it to red and then check what is affected by the change (red is #ff0000). Then pick the desired color and replace #ff0000 with the desired color code.

User avatar
Clive
Moderator
Posts: 1329
Joined: Thu Aug 25, 2011 9:28 pm
Location: UK

Re: Application Preference Styles not in 3.12.3

Post by Clive » Tue Apr 19, 2016 12:54 pm

Okay many thanks for the insight. I'll see how I get on.

nickwelhar
Registered Member
Posts: 1
Joined: Tue Apr 24, 2018 8:03 am

Re: Application Preference Styles not in 3.12.3

Post by nickwelhar » Tue Apr 24, 2018 8:05 am

check this...color picker tool

Post Reply

Return to “QCAD Troubleshooting and Problems”