Preferences

File ‣ Schematic drawing preferences… controls the appearance of the current schematic — line widths, colours and fonts.

The Preferences dialog

Fig. 33 The Preferences dialog, grouped by element type.

Per-schematic styling

Styling works on two levels:

  • The application’s global defaults are the template for every new schematic.

  • When you change a setting in Preferences, it applies to the current schematic and is saved into its <name>.ini sidecar file (see Projects). Re-opening that schematic restores exactly the look it was saved with — independent of the machine’s global defaults.

This is what lets a book or report keep a consistent house style across all its figures.

What you can change

The dialog is grouped by element type, including:

  • Symbol — stroke and text colour.

  • Wire — colour and width.

  • Net label, Component refdes, Component parameters — colour, font and size.

  • Text annotations, Hyperlinks — fonts and colours.

  • Grid — minor and major line colours.

  • Wire handles / connections — the colour and size of wire selection handles, and the connection colour used for the unconnected-pin markers (see Wiring).

  • Junctions — colour and radius.

  • Rendering — turn LaTeX typesetting of labels on or off. Leave it off in NGspice schematics: a simulator expression is code, not mathematics, and only the part of it that is also valid mathematics can be typeset. A value that cannot be typeset is shown as plain text — it is never rendered wrongly. If you want a typeset expression on an NGspice schematic, either accept the generated form, or hide the value and place the formula yourself with Place ‣ LaTeX…; such a snippet is for display only and is not netlisted.

  • Scaling defaults — default sizes for parameter tables, LaTeX fragments and images.

Every font family list offers the generic families sans-serif, serif and monospace. They render the same on every machine, in the editor and in the SVG and PDF export, because the viewer resolves a generic family to a font it has. A named font can be typed in the list, at the risk that another machine substitutes it.

Changes take effect immediately on the canvas.

Grid

Three grids: the minor lines (the grid step), the major lines (every eight minor cells) and the subgrid, a dot on every point of the fine grid, one fifth of the grid step, the grid that shapes snap to while Shift is held. Each has its colour; View subgrid switches the dots on, and they appear when the zoom keeps them apart.

Border

The Border group sets the look that a new border gets when it is placed (Place > Border): line colour, width and style (solid, dashed, dotted, dash-dot), background colour and opacity, and whether the line is drawn in the exported SVG/PDF. An existing border keeps its own values, edited in the Border dialog. A background at opacity 0 % is invisible; choosing a background colour in the Border dialog therefore sets the opacity to 100 % when it was 0 %.

The defaults are those of the figures in the book Structured Electronic Design: a solid blue line, the light blue background #ecf3ff at 100 % opacity, and no border line in the export, so an exported schematic is a figure on a tinted panel. The same palette sets black symbol text, red net labels and blue operating-point annotations. A schematic’s own values live in the [border] and other sections of its .ini sidecar; give every border the width of the document column (see the sch_scale setting under Projects).

Colour scheme

File ‣ Preferences… on the main window has a Colour scheme: system follows the desktop, light and dark force one. The window chrome follows through Qt. On a dark scheme the canvases draw on a dark background with every colour’s lightness inverted for the screen only: black wires show white, white fills dark, red stays red; LaTeX renders (labels, parameter table, model and analysis blocks, fragments) show their black as white. A change of the desktop scheme while SLiCAP runs is followed at once. The schematic style, and therefore every SVG and PDF export, keeps the document colours.