1.7.5.15.4.18.  Key "STYLESHEETS" - Custom stylesheets for GUI elements

Comma Separated List of custom stylesheet files in $CADENAS_SETUP/styles.

Standard GUI Style

Under $CADENAS_SETUP/styles the file is default.css for the GUI style .

Customize the GUI Style

The GUI style is easy to customize.

Under $CADENAS_SETUP/partsol.cfg -> block [PARTdataManager] key > STYLESHEETS to the desired CSS file. The Styles are appended to the default style.

It's just the file name without the path specified, the application searches for the file in the directory "$CADENAS_SETUP/styles". There you will find also some examples.

[PARTdataManager]
STYLESHEETS=default.css,custom.css

Ebenso können Sie einen absoluten Pfad angeben.

Find relevant keys in the CSS file Find

To find relevant keys more easily, enable the following docking windows:

  • GUI element tree

  • GUI element properties

  • GUI stylesheet

  1. Under $CADENAS_USER , set a file named debug.cfg with the following Content to:

    [PDEBUG]
    showDebugMenu=1
    showWidgetTree=1
    showExportPath=1

    -> The dockings are now displayed.

  2. Click the icon.

    -> The mouse pointer turns into a red circle.

  3. Move the mouse pointer over a QWidget.

    -> It is highlighted with a red rectangle.

  4. Click on the desired QWidget.

    -> The element is highlighted in bold in the GUI Elements tree [GUI element tree].

    Now you can find the relevant key in the CSS file.

Try out the adjustments

You can make changes to the GUI stylesheet [GUI stylesheet] in the docking window.

An example:

  1. Set a yellow background.

    QWidget {
      background: #fffaaa;
    }

  2. Click Apply.

    -> The change is displayed immediately.

    [Note]Note

    The " Apply " action does not save changes!

    To apply the changes, use " Save As " and then copy the changes into the desired CSS file.