CS-Lab Support Forum for CNC Community

Help to run this brand-new forum and stay with us.
Ask your questions, we are here to help! 

 

Forum Navigation
You need to log in to create posts and topics.

Subject: Dark Theme Stylesheet – How to change the background color of the main window?

Hi everyone,

I'm trying to customize the dark theme in SimCnc by modifying the style.css stylesheet. I can successfully style individual widgets using selectors like QWidget, but I'm having trouble changing the background color of the main application frame.

In the GUI editor, the top-level element has the ID VBoxLayout_1. I've tried:

  • [id="VBoxLayout_1"] { background-color: #2aa174; }
  • QMainWindow { background-color: #2aa174; }
  • QApplication { background-color: #2aa174; }

None of these selectors seem to work for the main window background.

My question: What is the correct Qt stylesheet selector to target the main application window/frame in SimCnc?

Is there a standard widget class that wraps the main window that I should be styling instead?

Any help would be appreciated!

Thanks

I had already tried that, but since the screens are controlled by this value to determine whether dark mode or light mode is active, simcnc probably won't allow this color to be changed.

PARTNERS:

 

USA

Germany

Slovenia / Bosnia

Spain

South Africa

UNI-CAM

The Netherlands

Portugal

Greece

  Distrib milionis logo

Hungary

Distrib logot

Bulgaria

Master

Kenya

Proteq Automation

Egypt

Germanelectronix

China

Jun Ma

Serbia

ALCO

Italy

LVL tech r

Denmark

Varntoft Dania

Finland