Skip to content

Class Theme

ClassList > Theme

Provides all color, font scale, and layout constants used throughout the QField UI. Registered as a QML singleton under URI "Theme" 1.0. More...

  • #include <theme.h>

Inherits the following classes: QObject

Public Types

Type Name
enum BaseAppearance

Public Properties

Type Name
property QColor accuracyBad
property QColor accuracyExcellent
property QColor accuracyTolerated
property QColor bookmarkBlue
property QColor bookmarkDefault
property QColor bookmarkOrange
property QColor bookmarkRed
property QColor buttonBackgroundColor
property QColor buttonColor
property QColor cloudColor
property QColor controlBackgroundAlternateColor
property QColor controlBackgroundColor
property QColor controlBackgroundDisabledColor
property QColor controlBorderColor
property QColor darkGray
property QColor darkGraySemiOpaque
property QColor darkPositionColor
property QColor darkPositionColorSemiOpaque
property QColor darkRed
property bool darkTheme
property QVariantMap darkThemeColors
property QFont defaultFont
property QColor errorColor
property qreal fontScale
property QColor goodColor
property QColor gray
property QColor groupBoxBackgroundColor
property QColor groupBoxSurfaceColor
property QColor light
property QColor lightGray
property QVariantMap lightThemeColors
property QColor lightestGray
property QColor lightestGraySemiOpaque
property QColor mainBackgroundColor
property QColor mainBackgroundColorSemiOpaque
property QColor mainColor
property QColor mainColorSemiOpaque
property QColor mainOverlayColor
property QColor mainTextColor
property QColor mainTextDisabledColor
property int menuItemCheckLeftPadding
property int menuItemIconlessLeftPadding
property int menuItemLeftPadding
property QColor navigationBackgroundColor
property QColor navigationColor
property QColor navigationColorSemiOpaque
property int popupScreenEdgeHorizontalMargin
property int popupScreenEdgeVerticalMargin
property QColor positionBackgroundColor
property QColor positionColor
property QColor positionColorSemiOpaque
property QColor processingPreview
property QFont resultFont
property QColor scrollBarBackgroundColor
property QColor secondaryTextColor
property QFont secondaryTitleFont
property QColor sensorBackgroundColor
property QFont strongFont
property QFont strongTipFont
property QFont strongTitleFont
property QFont tinyFont
property QFont tipFont
property QFont titleFont
property QColor toolButtonBackgroundColor
property QColor toolButtonBackgroundSemiOpaqueColor
property QColor toolButtonColor
property QColor vertexColor
property QColor vertexColorSemiOpaque
property QColor vertexNewColor
property QColor vertexNewColorSemiOpaque
property QColor vertexSelectedColor
property QColor vertexSelectedColorSemiOpaque
property QColor warningColor

Public Signals

Type Name
signal void buttonBackgroundColorChanged
signal void buttonColorChanged
signal void controlBackgroundAlternateColorChanged
signal void controlBackgroundColorChanged
signal void controlBackgroundDisabledColorChanged
signal void controlBorderColorChanged
signal void darkThemeChanged
signal void errorColorChanged
signal void fontScaleChanged
signal void goodColorChanged
signal void groupBoxBackgroundColorChanged
signal void groupBoxSurfaceColorChanged
signal void mainBackgroundColorChanged
signal void mainBackgroundColorSemiOpaqueChanged
signal void mainColorChanged
signal void mainOverlayColorChanged
signal void mainTextColorChanged
signal void mainTextDisabledColorChanged
signal void screenPpiChanged
signal void scrollBarBackgroundColorChanged
signal void secondaryTextColorChanged
signal void themeDataLoaded
signal void toolButtonBackgroundColorChanged
signal void toolButtonBackgroundSemiOpaqueColorChanged
signal void toolButtonColorChanged
signal void warningColorChanged

Public Functions

Type Name
Theme (QObject * parent=nullptr)
QColor accuracyBad () const
QColor accuracyExcellent () const
QColor accuracyTolerated () const
Q_INVOKABLE void applyAppearance (const QVariantMap & extraColors=QVariantMap(), BaseAppearance baseAppearance=UseSettingsAppearance)
Q_INVOKABLE void applyColors (const QVariantMap & colors)
Q_INVOKABLE void applyFontScale ()
QColor bookmarkBlue () const
QColor bookmarkDefault () const
QColor bookmarkOrange () const
QColor bookmarkRed () const
QColor buttonBackgroundColor () const
QColor buttonColor () const
QColor cloudColor () const
Q_INVOKABLE QString colorToHtml (const QColor & color) const
QColor controlBackgroundAlternateColor () const
QColor controlBackgroundColor () const
QColor controlBackgroundDisabledColor () const
QColor controlBorderColor () const
QColor darkGray () const
QColor darkGraySemiOpaque () const
QColor darkPositionColor () const
QColor darkPositionColorSemiOpaque () const
QColor darkRed () const
bool darkTheme () const
QVariantMap darkThemeColors () const
QFont defaultFont () const
QColor errorColor () const
qreal fontScale () const
Q_INVOKABLE QString getThemeIcon (const QString & name) const
Q_INVOKABLE QString getThemeVectorIcon (const QString & name) const
QColor goodColor () const
QColor gray () const
QColor groupBoxBackgroundColor () const
QColor groupBoxSurfaceColor () const
QColor light () const
QColor lightGray () const
QVariantMap lightThemeColors () const
QColor lightestGray () const
QColor lightestGraySemiOpaque () const
QColor mainBackgroundColor () const
QColor mainBackgroundColorSemiOpaque () const
QColor mainColor () const
QColor mainColorSemiOpaque () const
QColor mainOverlayColor () const
QColor mainTextColor () const
QColor mainTextDisabledColor () const
int menuItemCheckLeftPadding () const
int menuItemIconlessLeftPadding () const
int menuItemLeftPadding () const
QColor navigationBackgroundColor () const
QColor navigationColor () const
QColor navigationColorSemiOpaque () const
int popupScreenEdgeHorizontalMargin () const
int popupScreenEdgeVerticalMargin () const
QColor positionBackgroundColor () const
QColor positionColor () const
QColor positionColorSemiOpaque () const
QColor processingPreview () const
QFont resultFont () const
QColor scrollBarBackgroundColor () const
QColor secondaryTextColor () const
QFont secondaryTitleFont () const
QColor sensorBackgroundColor () const
void setButtonBackgroundColor (const QColor & color)
void setButtonColor (const QColor & color)
void setControlBackgroundAlternateColor (const QColor & color)
void setControlBackgroundColor (const QColor & color)
void setControlBackgroundDisabledColor (const QColor & color)
void setControlBorderColor (const QColor & color)
void setDarkTheme (bool dark)
void setErrorColor (const QColor & color)
void setFontScale (qreal scale)
void setGoodColor (const QColor & color)
void setGroupBoxBackgroundColor (const QColor & color)
void setGroupBoxSurfaceColor (const QColor & color)
void setMainBackgroundColor (const QColor & color)
void setMainBackgroundColorSemiOpaque (const QColor & color)
void setMainColor (const QColor & color)
void setMainOverlayColor (const QColor & color)
void setMainTextColor (const QColor & color)
void setMainTextDisabledColor (const QColor & color)
Q_INVOKABLE void setScreenPpi (qreal ppi)
void setScrollBarBackgroundColor (const QColor & color)
void setSecondaryTextColor (const QColor & color)
Q_INVOKABLE void setSystemFontPointSize (qreal size)
void setToolButtonBackgroundColor (const QColor & color)
void setToolButtonBackgroundSemiOpaqueColor (const QColor & color)
void setToolButtonColor (const QColor & color)
void setWarningColor (const QColor & color)
QFont strongFont () const
QFont strongTipFont () const
QFont strongTitleFont () const
QFont tinyFont () const
QFont tipFont () const
QFont titleFont () const
Q_INVOKABLE QString toInlineStyles (const QVariantMap & styleProperties) const
QColor toolButtonBackgroundColor () const
QColor toolButtonBackgroundSemiOpaqueColor () const
QColor toolButtonColor () const
QColor vertexColor () const
QColor vertexColorSemiOpaque () const
QColor vertexNewColor () const
QColor vertexNewColorSemiOpaque () const
QColor vertexSelectedColor () const
QColor vertexSelectedColorSemiOpaque () const
QColor warningColor () const

Detailed Description

Note:

Default colors are loaded from :/theme/theme.json

Public Types Documentation

enum BaseAppearance

enum Theme::BaseAppearance {
    UseSettingsAppearance,
    SystemAppearance,
    DarkAppearance,
    LightAppearance
};

Public Properties Documentation

property accuracyBad [1/2]

QColor Theme::accuracyBad;

property accuracyExcellent [1/2]

QColor Theme::accuracyExcellent;

property accuracyTolerated [1/2]

QColor Theme::accuracyTolerated;

property bookmarkBlue [1/2]

QColor Theme::bookmarkBlue;

property bookmarkDefault [1/2]

QColor Theme::bookmarkDefault;

property bookmarkOrange [1/2]

QColor Theme::bookmarkOrange;

property bookmarkRed [1/2]

QColor Theme::bookmarkRed;

property buttonBackgroundColor [1/2]

QColor Theme::buttonBackgroundColor;

property buttonColor [1/2]

QColor Theme::buttonColor;

property cloudColor [1/2]

QColor Theme::cloudColor;

property controlBackgroundAlternateColor [1/2]

QColor Theme::controlBackgroundAlternateColor;

property controlBackgroundColor [1/2]

QColor Theme::controlBackgroundColor;

property controlBackgroundDisabledColor [1/2]

QColor Theme::controlBackgroundDisabledColor;

property controlBorderColor [1/2]

QColor Theme::controlBorderColor;

property darkGray [1/2]

QColor Theme::darkGray;

property darkGraySemiOpaque [1/2]

QColor Theme::darkGraySemiOpaque;

property darkPositionColor [1/2]

QColor Theme::darkPositionColor;

property darkPositionColorSemiOpaque [1/2]

QColor Theme::darkPositionColorSemiOpaque;

property darkRed [1/2]

QColor Theme::darkRed;

property darkTheme [1/2]

bool Theme::darkTheme;

property darkThemeColors [1/2]

QVariantMap Theme::darkThemeColors;

property defaultFont [1/2]

QFont Theme::defaultFont;

property errorColor [1/2]

QColor Theme::errorColor;

property fontScale [1/2]

qreal Theme::fontScale;

property goodColor [1/2]

QColor Theme::goodColor;

property gray [1/2]

QColor Theme::gray;

property groupBoxBackgroundColor [1/2]

QColor Theme::groupBoxBackgroundColor;

property groupBoxSurfaceColor [1/2]

QColor Theme::groupBoxSurfaceColor;

property light [1/2]

QColor Theme::light;

property lightGray [1/2]

QColor Theme::lightGray;

property lightThemeColors [1/2]

QVariantMap Theme::lightThemeColors;

property lightestGray [1/2]

QColor Theme::lightestGray;

property lightestGraySemiOpaque [1/2]

QColor Theme::lightestGraySemiOpaque;

property mainBackgroundColor [1/2]

QColor Theme::mainBackgroundColor;

property mainBackgroundColorSemiOpaque [1/2]

QColor Theme::mainBackgroundColorSemiOpaque;

property mainColor [1/2]

QColor Theme::mainColor;

property mainColorSemiOpaque [1/2]

QColor Theme::mainColorSemiOpaque;

property mainOverlayColor [1/2]

QColor Theme::mainOverlayColor;

property mainTextColor [1/2]

QColor Theme::mainTextColor;

property mainTextDisabledColor [1/2]

QColor Theme::mainTextDisabledColor;

property menuItemCheckLeftPadding [1/2]

int Theme::menuItemCheckLeftPadding;

property menuItemIconlessLeftPadding [1/2]

int Theme::menuItemIconlessLeftPadding;

property menuItemLeftPadding [1/2]

int Theme::menuItemLeftPadding;

property navigationBackgroundColor [1/2]

QColor Theme::navigationBackgroundColor;

property navigationColor [1/2]

QColor Theme::navigationColor;

property navigationColorSemiOpaque [1/2]

QColor Theme::navigationColorSemiOpaque;

property popupScreenEdgeHorizontalMargin [1/2]

int Theme::popupScreenEdgeHorizontalMargin;

property popupScreenEdgeVerticalMargin [1/2]

int Theme::popupScreenEdgeVerticalMargin;

property positionBackgroundColor [1/2]

QColor Theme::positionBackgroundColor;

property positionColor [1/2]

QColor Theme::positionColor;

property positionColorSemiOpaque [1/2]

QColor Theme::positionColorSemiOpaque;

property processingPreview [1/2]

QColor Theme::processingPreview;

property resultFont [1/2]

QFont Theme::resultFont;

property scrollBarBackgroundColor [1/2]

QColor Theme::scrollBarBackgroundColor;

property secondaryTextColor [1/2]

QColor Theme::secondaryTextColor;

property secondaryTitleFont [1/2]

QFont Theme::secondaryTitleFont;

property sensorBackgroundColor [1/2]

QColor Theme::sensorBackgroundColor;

property strongFont [1/2]

QFont Theme::strongFont;

property strongTipFont [1/2]

QFont Theme::strongTipFont;

property strongTitleFont [1/2]

QFont Theme::strongTitleFont;

property tinyFont [1/2]

QFont Theme::tinyFont;

property tipFont [1/2]

QFont Theme::tipFont;

property titleFont [1/2]

QFont Theme::titleFont;

property toolButtonBackgroundColor [1/2]

QColor Theme::toolButtonBackgroundColor;

property toolButtonBackgroundSemiOpaqueColor [1/2]

QColor Theme::toolButtonBackgroundSemiOpaqueColor;

property toolButtonColor [1/2]

QColor Theme::toolButtonColor;

property vertexColor [1/2]

QColor Theme::vertexColor;

property vertexColorSemiOpaque [1/2]

QColor Theme::vertexColorSemiOpaque;

property vertexNewColor [1/2]

QColor Theme::vertexNewColor;

property vertexNewColorSemiOpaque [1/2]

QColor Theme::vertexNewColorSemiOpaque;

property vertexSelectedColor [1/2]

QColor Theme::vertexSelectedColor;

property vertexSelectedColorSemiOpaque [1/2]

QColor Theme::vertexSelectedColorSemiOpaque;

property warningColor [1/2]

QColor Theme::warningColor;

Public Signals Documentation

signal buttonBackgroundColorChanged

void Theme::buttonBackgroundColorChanged;

signal buttonColorChanged

void Theme::buttonColorChanged;

signal controlBackgroundAlternateColorChanged

void Theme::controlBackgroundAlternateColorChanged;

signal controlBackgroundColorChanged

void Theme::controlBackgroundColorChanged;

signal controlBackgroundDisabledColorChanged

void Theme::controlBackgroundDisabledColorChanged;

signal controlBorderColorChanged

void Theme::controlBorderColorChanged;

signal darkThemeChanged

void Theme::darkThemeChanged;

signal errorColorChanged

void Theme::errorColorChanged;

signal fontScaleChanged

void Theme::fontScaleChanged;

signal goodColorChanged

void Theme::goodColorChanged;

signal groupBoxBackgroundColorChanged

void Theme::groupBoxBackgroundColorChanged;

signal groupBoxSurfaceColorChanged

void Theme::groupBoxSurfaceColorChanged;

signal mainBackgroundColorChanged

void Theme::mainBackgroundColorChanged;

signal mainBackgroundColorSemiOpaqueChanged

void Theme::mainBackgroundColorSemiOpaqueChanged;

signal mainColorChanged

void Theme::mainColorChanged;

signal mainOverlayColorChanged

void Theme::mainOverlayColorChanged;

signal mainTextColorChanged

void Theme::mainTextColorChanged;

signal mainTextDisabledColorChanged

void Theme::mainTextDisabledColorChanged;

signal screenPpiChanged

void Theme::screenPpiChanged;

signal scrollBarBackgroundColorChanged

void Theme::scrollBarBackgroundColorChanged;

signal secondaryTextColorChanged

void Theme::secondaryTextColorChanged;

signal themeDataLoaded

void Theme::themeDataLoaded;

signal toolButtonBackgroundColorChanged

void Theme::toolButtonBackgroundColorChanged;

signal toolButtonBackgroundSemiOpaqueColorChanged

void Theme::toolButtonBackgroundSemiOpaqueColorChanged;

signal toolButtonColorChanged

void Theme::toolButtonColorChanged;

signal warningColorChanged

void Theme::warningColorChanged;

Public Functions Documentation

function Theme

explicit Theme::Theme (
    QObject * parent=nullptr
) 

function accuracyBad [2/2]

inline QColor Theme::accuracyBad () const

function accuracyExcellent [2/2]

inline QColor Theme::accuracyExcellent () const

function accuracyTolerated [2/2]

inline QColor Theme::accuracyTolerated () const

function applyAppearance

Q_INVOKABLE void Theme::applyAppearance (
    const QVariantMap & extraColors=QVariantMap(),
    BaseAppearance baseAppearance=UseSettingsAppearance
) 

Applies the dark/light/system appearance setting and the matching color palette. An optional extraColors map is applied on top for per-call overrides.

Note:

Material.theme and Application.styleHints.colorScheme are QML-only APIs; bind them in QML to Theme.darkTheme instead


function applyColors

Q_INVOKABLE void Theme::applyColors (
    const QVariantMap & colors
) 

Applies a map of { propertyName -> color } to this object. Only writable properties are touched; invalid colors and unknown keys are skipped.


function applyFontScale

Q_INVOKABLE void Theme::applyFontScale () 

Reads fontScale from QSettings and updates all font properties.


function bookmarkBlue [2/2]

inline QColor Theme::bookmarkBlue () const

function bookmarkDefault [2/2]

inline QColor Theme::bookmarkDefault () const

function bookmarkOrange [2/2]

inline QColor Theme::bookmarkOrange () const

function bookmarkRed [2/2]

inline QColor Theme::bookmarkRed () const

function buttonBackgroundColor [2/2]

inline QColor Theme::buttonBackgroundColor () const

function buttonColor [2/2]

inline QColor Theme::buttonColor () const

function cloudColor [2/2]

inline QColor Theme::cloudColor () const

function colorToHtml

Q_INVOKABLE QString Theme::colorToHtml (
    const QColor & color
) const

Converts color to a CSS rgba() string.


function controlBackgroundAlternateColor [2/2]

inline QColor Theme::controlBackgroundAlternateColor () const

function controlBackgroundColor [2/2]

inline QColor Theme::controlBackgroundColor () const

function controlBackgroundDisabledColor [2/2]

inline QColor Theme::controlBackgroundDisabledColor () const

function controlBorderColor [2/2]

inline QColor Theme::controlBorderColor () const

function darkGray [2/2]

inline QColor Theme::darkGray () const

function darkGraySemiOpaque [2/2]

inline QColor Theme::darkGraySemiOpaque () const

function darkPositionColor [2/2]

inline QColor Theme::darkPositionColor () const

function darkPositionColorSemiOpaque [2/2]

inline QColor Theme::darkPositionColorSemiOpaque () const

function darkRed [2/2]

inline QColor Theme::darkRed () const

function darkTheme [2/2]

inline bool Theme::darkTheme () const

function darkThemeColors [2/2]

inline QVariantMap Theme::darkThemeColors () const

function defaultFont [2/2]

inline QFont Theme::defaultFont () const

function errorColor [2/2]

inline QColor Theme::errorColor () const

function fontScale [2/2]

inline qreal Theme::fontScale () const

function getThemeIcon

Q_INVOKABLE QString Theme::getThemeIcon (
    const QString & name
) const

Returns the raster icon resource path for name, selecting the density bucket that best matches the current screen PPI.


function getThemeVectorIcon

Q_INVOKABLE QString Theme::getThemeVectorIcon (
    const QString & name
) const

Returns the SVG icon resource path for name.


function goodColor [2/2]

inline QColor Theme::goodColor () const

function gray [2/2]

inline QColor Theme::gray () const

function groupBoxBackgroundColor [2/2]

inline QColor Theme::groupBoxBackgroundColor () const

function groupBoxSurfaceColor [2/2]

inline QColor Theme::groupBoxSurfaceColor () const

function light [2/2]

inline QColor Theme::light () const

function lightGray [2/2]

inline QColor Theme::lightGray () const

function lightThemeColors [2/2]

inline QVariantMap Theme::lightThemeColors () const

function lightestGray [2/2]

inline QColor Theme::lightestGray () const

function lightestGraySemiOpaque [2/2]

inline QColor Theme::lightestGraySemiOpaque () const

function mainBackgroundColor [2/2]

inline QColor Theme::mainBackgroundColor () const

function mainBackgroundColorSemiOpaque [2/2]

inline QColor Theme::mainBackgroundColorSemiOpaque () const

function mainColor [2/2]

inline QColor Theme::mainColor () const

function mainColorSemiOpaque [2/2]

inline QColor Theme::mainColorSemiOpaque () const

function mainOverlayColor [2/2]

inline QColor Theme::mainOverlayColor () const

function mainTextColor [2/2]

inline QColor Theme::mainTextColor () const

function mainTextDisabledColor [2/2]

inline QColor Theme::mainTextDisabledColor () const

function menuItemCheckLeftPadding [2/2]

inline int Theme::menuItemCheckLeftPadding () const

function menuItemIconlessLeftPadding [2/2]

inline int Theme::menuItemIconlessLeftPadding () const

function menuItemLeftPadding [2/2]

inline int Theme::menuItemLeftPadding () const

function navigationBackgroundColor [2/2]

inline QColor Theme::navigationBackgroundColor () const

function navigationColor [2/2]

inline QColor Theme::navigationColor () const

function navigationColorSemiOpaque [2/2]

inline QColor Theme::navigationColorSemiOpaque () const

function popupScreenEdgeHorizontalMargin [2/2]

inline int Theme::popupScreenEdgeHorizontalMargin () const

function popupScreenEdgeVerticalMargin [2/2]

inline int Theme::popupScreenEdgeVerticalMargin () const

function positionBackgroundColor [2/2]

inline QColor Theme::positionBackgroundColor () const

function positionColor [2/2]

inline QColor Theme::positionColor () const

function positionColorSemiOpaque [2/2]

inline QColor Theme::positionColorSemiOpaque () const

function processingPreview [2/2]

inline QColor Theme::processingPreview () const

function resultFont [2/2]

inline QFont Theme::resultFont () const

function scrollBarBackgroundColor [2/2]

inline QColor Theme::scrollBarBackgroundColor () const

function secondaryTextColor [2/2]

inline QColor Theme::secondaryTextColor () const

function secondaryTitleFont [2/2]

inline QFont Theme::secondaryTitleFont () const

function sensorBackgroundColor [2/2]

inline QColor Theme::sensorBackgroundColor () const

function setButtonBackgroundColor

void Theme::setButtonBackgroundColor (
    const QColor & color
) 

function setButtonColor

void Theme::setButtonColor (
    const QColor & color
) 

function setControlBackgroundAlternateColor

void Theme::setControlBackgroundAlternateColor (
    const QColor & color
) 

function setControlBackgroundColor

void Theme::setControlBackgroundColor (
    const QColor & color
) 

function setControlBackgroundDisabledColor

void Theme::setControlBackgroundDisabledColor (
    const QColor & color
) 

function setControlBorderColor

void Theme::setControlBorderColor (
    const QColor & color
) 

function setDarkTheme

void Theme::setDarkTheme (
    bool dark
) 

function setErrorColor

void Theme::setErrorColor (
    const QColor & color
) 

function setFontScale

void Theme::setFontScale (
    qreal scale
) 

function setGoodColor

void Theme::setGoodColor (
    const QColor & color
) 

function setGroupBoxBackgroundColor

void Theme::setGroupBoxBackgroundColor (
    const QColor & color
) 

function setGroupBoxSurfaceColor

void Theme::setGroupBoxSurfaceColor (
    const QColor & color
) 

function setMainBackgroundColor

void Theme::setMainBackgroundColor (
    const QColor & color
) 

function setMainBackgroundColorSemiOpaque

void Theme::setMainBackgroundColorSemiOpaque (
    const QColor & color
) 

function setMainColor

void Theme::setMainColor (
    const QColor & color
) 

function setMainOverlayColor

void Theme::setMainOverlayColor (
    const QColor & color
) 

function setMainTextColor

void Theme::setMainTextColor (
    const QColor & color
) 

function setMainTextDisabledColor

void Theme::setMainTextDisabledColor (
    const QColor & color
) 

function setScreenPpi

Q_INVOKABLE void Theme::setScreenPpi (
    qreal ppi
) 

Sets the screen PPI used for icon density selection. Called by qgismobileapp.cpp after the QML engine is up.


function setScrollBarBackgroundColor

void Theme::setScrollBarBackgroundColor (
    const QColor & color
) 

function setSecondaryTextColor

void Theme::setSecondaryTextColor (
    const QColor & color
) 

function setSystemFontPointSize

Q_INVOKABLE void Theme::setSystemFontPointSize (
    qreal size
) 

Sets the system font point size used for all font properties. Called by qgismobileapp.cpp after the QML engine is up.


function setToolButtonBackgroundColor

void Theme::setToolButtonBackgroundColor (
    const QColor & color
) 

function setToolButtonBackgroundSemiOpaqueColor

void Theme::setToolButtonBackgroundSemiOpaqueColor (
    const QColor & color
) 

function setToolButtonColor

void Theme::setToolButtonColor (
    const QColor & color
) 

function setWarningColor

void Theme::setWarningColor (
    const QColor & color
) 

function strongFont [2/2]

inline QFont Theme::strongFont () const

function strongTipFont [2/2]

inline QFont Theme::strongTipFont () const

function strongTitleFont [2/2]

inline QFont Theme::strongTitleFont () const

function tinyFont [2/2]

inline QFont Theme::tinyFont () const

function tipFont [2/2]

inline QFont Theme::tipFont () const

function titleFont [2/2]

inline QFont Theme::titleFont () const

function toInlineStyles

Q_INVOKABLE QString Theme::toInlineStyles (
    const QVariantMap & styleProperties
) const

Converts a map of property/value pairs to an inline style string. QColor values are converted via colorToHtml().


function toolButtonBackgroundColor [2/2]

inline QColor Theme::toolButtonBackgroundColor () const

function toolButtonBackgroundSemiOpaqueColor [2/2]

inline QColor Theme::toolButtonBackgroundSemiOpaqueColor () const

function toolButtonColor [2/2]

inline QColor Theme::toolButtonColor () const

function vertexColor [2/2]

inline QColor Theme::vertexColor () const

function vertexColorSemiOpaque [2/2]

inline QColor Theme::vertexColorSemiOpaque () const

function vertexNewColor [2/2]

inline QColor Theme::vertexNewColor () const

function vertexNewColorSemiOpaque [2/2]

inline QColor Theme::vertexNewColorSemiOpaque () const

function vertexSelectedColor [2/2]

inline QColor Theme::vertexSelectedColor () const

function vertexSelectedColorSemiOpaque [2/2]

inline QColor Theme::vertexSelectedColorSemiOpaque () const

function warningColor [2/2]

inline QColor Theme::warningColor () const


The documentation for this class was generated from the following file src/core/theme.h