Extending Qt Creator Manual | Theme

Extending Qt Creator Manual 4.6.0

# Theme Class

(Utils::Theme)

- List of all members, including inherited members

## Public Types

enum | Color { BackgroundColorAlternate, BackgroundColorDark, BackgroundColorHover, BackgroundColorNormal, ..., QmlDesigner_FormEditorForegroundColor }
enum | Flag { DrawTargetSelectorBottom, DrawSearchResultWidgetFrame, DrawIndicatorBranch, DrawToolBarHighlights, ..., WindowColorAsBase }
enum | Gradient { DetailsWidgetHeaderGradient }
enum | ImageFile { IconOverlayCSource, IconOverlayCppHeader, IconOverlayCppSource, IconOverlayPri, ..., StandardPixmapDirIcon }

## Public Functions

| Theme(const QString &id, QObject *parent = 0)
| ~Theme()
QColor | color(Color role) const
QString | defaultTextEditorColorScheme() const
QString | displayName() const
QString | filePath() const
bool | flag(Flag f) const
QGradientStops | gradient(Gradient role) const
QString | id() const
QString | imageFile(ImageFile imageFile, const QString &fallBack) const
QPalette | palette() const
QStringList | preferredStyles() const
void | readSettings(QSettings &settings)
void | setDisplayName(const QString &displayName)

## Static Public Members

QPalette | initialPalette()

## Protected Functions

| Theme(Theme *originTheme, QObject *parent = nullptr)

## Member Type Documentation

### enum Theme::Color

### enum Theme::Flag

### enum Theme::Gradient

### enum Theme::ImageFile

## Member Function Documentation

### Theme::Theme(const QString &id, QObject *parent = 0)

Default constructs an instance of Theme.

### `[protected]` Theme::Theme(Theme *originTheme, QObject *parent = nullptr)

Default constructs an instance of Theme.

### Theme::~Theme()

Destroys the instance of Theme.

### QColor Theme::color(Color role) const

### QString Theme::defaultTextEditorColorScheme() const

### QString Theme::displayName() const

See also setDisplayName().

### QString Theme::filePath() const

### bool Theme::flag(Flag f) const

### QGradientStops Theme::gradient(Gradient role) const

### QString Theme::id() const

### QString Theme::imageFile(ImageFile imageFile, const QString &fallBack) const

### `[static]` QPalette Theme::initialPalette()

### QPalette Theme::palette() const

### QStringList Theme::preferredStyles() const

### void Theme::readSettings(QSettings &settings)

### void Theme::setDisplayName(const QString &displayName)

See also displayName().