User Tools

Site Tools


Palette

DAZScript wrapper for QPalette.

More...

Inherits :

Properties

Constructors

DAZ Script
Palette ( Palette active, Palette disabled, Palette inactive )

Detailed Description

This is the DAZScript counterpart to the QPalette type used in the DAZ Studio SDK.

Attention:

  • Inheritance will change to Object in a pending update.

Properties


Palette : active

The Palette for active windows (the window that has focus).


Color : alternateBase

Used as the alternate background color in views with alternating row colors.


Color : background

Obsolete. Use window instead.


Color : base

Used as background color for text entry widgets, for example; usually white or another light color.


Color : brightText

A text color that is very different from windowText, and contrasts well with e.g. dark. Typically used for text that needs to be drawn where text or windowText would give poor contrast, such as on a pressed DzPushButton. Note that text colors can be used for things other than just words; text colors are usually used for text, but it's quite common to use the text color roles for lines, icons, etc.


Color : button

General button background color.


Color : buttonText

A foreground color used with the button color.


Color : dark

Used for 3D bevel and shadow effects. Darker than button.


Palette : disabled

The Palette for disabled widgets.


Color : foreground

Obsolete. Use windowText instead.


Color : highlight

A color to indicate a selected item or the current item.


Color : highlightedText

A text color that contrasts with highlight.


Palette : inactive

The Palette for inactive windows (the other windows).


Color : light

Used for 3D bevel and shadow effects. Lighter than button color.


Color : link

A text color used for unvisited hyperlinks. By default, the link color is blue.


Color : linkVisited

A text color used for already visited hyperlinks. By default, the link visited color is magenta.


Color : mid

Used for 3D bevel and shadow effects. Between button and dark.


Color : midlight

Used for 3D bevel and shadow effects. Between button and light.


Color : shadow

Used for 3D bevel and shadow effects. A very dark color.


Color : text

The foreground color used with base.


Color : toolTipBase

Used as the background color for ToolTip and WhatsThis. Tool tips use the inactive Palette, because tool tips are not active windows.


Color : toolTipText

Used as the foreground color for ToolTip and WhatsThis. Tool tips use the inactive Palette, because tool tips are not active windows.


Color : window

General background color.


Color : windowText

General foreground color.

Constructors


Palette( Palette active, Palette disabled, Palette inactive )

Default Constructor.

Creates a palette with the given color groups.

Parameter(s):

  • active - The Palette for the active state.
  • disabled - The Palette for the disabled state.
  • inactive - The Palette for the inactive state.