open_iA 2023.02
A tool for the visual analysis and processing of volumetric datasets, with a focus on industrial computed tomography.
Loading...
Searching...
No Matches
Functions
iAThemeHelper Namespace Reference

Helpers for determining whether currently a bright or dark theme is applied, and for retrieving icons fitting the current theme. More...

Functions

iAcharts_API bool brightMode ()
 whether we are currently in bright mode
 
iAcharts_API QIcon icon (QString const &name)
 Retrieve an icon for a given name from the embedded resources.
 
iAcharts_API void setBrightMode (bool enabled)
 set bright mode (enabled=true) or dark mode (enabled=false)
 

Detailed Description

Helpers for determining whether currently a bright or dark theme is applied, and for retrieving icons fitting the current theme.

Function Documentation

◆ brightMode()

bool iAThemeHelper::brightMode ( )

whether we are currently in bright mode

◆ icon()

QIcon iAThemeHelper::icon ( QString const &  name)

Retrieve an icon for a given name from the embedded resources.

The retrieved icon can be in the resources of any currently loaded program parts (core libs, modules)

◆ setBrightMode()

void iAThemeHelper::setBrightMode ( bool  enabled)

set bright mode (enabled=true) or dark mode (enabled=false)

Parameters
enabledwhether we are switching to bright mode (true) or dark mode (false)