Print this Page

Masks

QDevSuiteĀ uses image masks allowing the user to create images that have dynamic colors. Images such as the depersonalize button of the QMainMenu or an expand button of the QExplorerBar use an image mask. An image mask has a background color and a foreground color that depend on the QColorScheme.

In the Properties window you see that the Depersonalize-MenuMask is set to a red and black image, but the icon in the example is blue. QDevSuite uses Masks in those situations. When you change the color or theme, then the mask takes over the new color. So you don’t need to create an image for every theme.

Example

Here you see a QMenu with the default personalize icon, and a custom icon.

 

Permanent link to this article: http://www.qiosdevsuite.com/features/masks/