polyfoammesh.gui.branding

Branding assets for PolyFoamMesh.

All assets are generated programmatically (QPainter) so the bundle has zero external image dependencies. Resolution-independent and theme-aware.

Functions

apply_app_icon(app[, dark])

Set the application-wide icon.

get_ribbon_icon(name)

make_app_icon([size, dark])

Return a QIcon with the logo at the requested size (multi-resolution).

make_logo_pixmap([size, dark])

Single-resolution logo pixmap (for the splash and About dialog).

make_splash_pixmap([width, height, dark])

Render the splash screen pixmap — ANSYS-grade commercial style.

polyfoammesh.gui.branding.make_app_icon(size=256, dark=False)[source]

Return a QIcon with the logo at the requested size (multi-resolution).

Return type:

QIcon

Parameters:
polyfoammesh.gui.branding.make_logo_pixmap(size=96, dark=False)[source]

Single-resolution logo pixmap (for the splash and About dialog).

Return type:

QPixmap

Parameters:
polyfoammesh.gui.branding.make_splash_pixmap(width=520, height=300, dark=False)[source]

Render the splash screen pixmap — ANSYS-grade commercial style.

Return type:

QPixmap

Parameters:
polyfoammesh.gui.branding.get_ribbon_icon(name)[source]
Return type:

QIcon

Parameters:

name (str)

polyfoammesh.gui.branding.apply_app_icon(app, dark=False)[source]

Set the application-wide icon.

Return type:

None

Parameters: