Can i Modify the Dark Theme?

Use this forum to ask questions about how to do things in QCAD.

Moderator: andrew

Forum rules

Always indicate your operating system and QCAD version.

Attach drawing files and screenshots.

Post one question per topic.

Post Reply
planksworkshop
Active Member
Posts: 28
Joined: Tue May 21, 2019 6:06 pm
Location: Canada

Can i Modify the Dark Theme?

Post by planksworkshop » Thu Nov 26, 2020 11:12 pm

Theme Colour change.jpg
Theme Colour change.jpg (67.27 KiB) Viewed 5836 times
Tried making my own Stylesheet but it seems many objects are hard coded, such as ruler font colour. So can i over ride the Dark theme Stylesheet as per my attatchment? As you can see Qcad is the only app that doesn't follow the native theming schema. I like my Desktop to be as proffessional lookin if not better than Apple OS Dark mode.
Theme Oddball.jpg
Theme Oddball.jpg (432.29 KiB) Viewed 5836 times

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

Re: Can i Modify the Dark Theme?

Post by CVH » Fri Nov 27, 2020 6:35 am

Hi,

From what I can see in the pictures and know about a UI under QCAD...

What you are pointing at:
White lines: borders of QWidgets/QDialog. Looks are mostly 'Inherent', some pallete changes, some have an individual stylesheet.
  • E.g. also set for:
    LibreOffice, 'Pages'
    FreeCAD, 'Combo View'
Background: backgrounds of QWidgets, here in the dark theme
Background of buttons/pictures: backgrounds of QToolButton
Foreground of buttons: pictures, commonly SVG, QCAD includes 2 sets normal/inverse

My knowledge ends here. :(

About the ruler: Did you tried searching for it on the forum?
viewtopic.php?f=32&t=6044&p=22552&hilit=ruler#p22552

Hope that this helps you a bit :wink:

Regards
CVH

planksworkshop
Active Member
Posts: 28
Joined: Tue May 21, 2019 6:06 pm
Location: Canada

Re: Can i Modify the Dark Theme?

Post by planksworkshop » Fri Nov 27, 2020 9:34 pm

Thanks for your insight! Forums gave me some ideas. I've used the existing Dark stylesheet.css and added:

QWidget{
background: #292f34;
}
QScrollBar {
background-color: transparent;
}
QScrollBar::handle {
background-color: #3e4449;
}
QScrollBar::add-line, QScrollBar::sub-line {
height: 0;
width: 0;
}

Looks quite good now. Still can't get rid of those pesky QWidget white borders :roll: . I did discover that the QCAD Community version respects my Desktop Environment Global KDE Theme :D (no white borders, proper scrollbars, correct colours, etc.) with no stylesheet.css where QCAD Professional doesn't at all. There in lies the theming issues. Got to get back to work. Thanks again.
Colour_changed.png
Colour_changed.png (144.76 KiB) Viewed 5793 times

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

Re: Can i Modify the Dark Theme?

Post by petevick » Sat Nov 28, 2020 8:34 am

planksworkshop wrote:
Fri Nov 27, 2020 9:34 pm
.....I did discover that the QCAD Community version respects my Desktop Environment Global KDE Theme :D (no white borders, proper scrollbars, correct colours, etc.) with no stylesheet.css where QCAD Professional doesn't at all.
I wonder why that is, seems a bit odd
Pete Vickerstaff
Linux Mint 21.2 Cinnamon, Qcad Pro 3.29.6

planksworkshop
Active Member
Posts: 28
Joined: Tue May 21, 2019 6:06 pm
Location: Canada

Re: Can i Modify the Dark Theme?

Post by planksworkshop » Sat Nov 28, 2020 6:36 pm

Yes odd as QCAD Professional is the only QT app that doesn't respect Global Desktop theming in KDE. These 2 Forum Posts might have some insights. viewtopic.php?f=33&t=7601&hilit=Dark+theme and viewtopic.php?f=31&t=7108&p=27367&hilit ... +DE#p27367 Im using Manjaro KDE and my Global theming works across the board with GTK3, GTK2, Qt4, QT5 and WX Toolkits. Snaps are hit and miss so i dont use them. Flatpaks are Meh and Appimages always work. When i have some free time I'll poke around and try to get QCAD Professional to theme nicely.

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

Re: Can i Modify the Dark Theme?

Post by andrew » Mon Nov 30, 2020 8:09 am

planksworkshop wrote:
Fri Nov 27, 2020 9:34 pm
I did discover that the QCAD Community version respects my Desktop Environment Global KDE Theme
Is that the QCAD Community Edition downloaded from our site (i.e. QCAD Professional Trial with trial add-ons removed) or a 3rd party compiled version or version included with the distribution?

planksworkshop
Active Member
Posts: 28
Joined: Tue May 21, 2019 6:06 pm
Location: Canada

Re: Can i Modify the Dark Theme?

Post by planksworkshop » Tue Dec 01, 2020 1:56 am

The QCAD Community is the latest build from the AUR Arch repo accessed from Manjaro KDE edition.

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

Re: Can i Modify the Dark Theme?

Post by andrew » Tue Dec 01, 2020 7:52 am

That would explain it. They compile it against their theme / libraries required to blend in. Our packages work on pretty much any Linux distribution, with the disadvantage that it will not blend in.

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

Re: Can i Modify the Dark Theme?

Post by petevick » Thu Dec 03, 2020 5:34 pm

andrew wrote:
Tue Dec 01, 2020 7:52 am
.........Our packages work on pretty much any Linux distribution, with the disadvantage that it will not blend in.
could the option to 'blend in' with the system theme be integrated in a future update Andrew, or is that simply not possible, for whatever reason.
Pete Vickerstaff
Linux Mint 21.2 Cinnamon, Qcad Pro 3.29.6

Post Reply

Return to “QCAD 'How Do I' Questions”