The iGUITokensModel class is general global instanse of all QML constans used in the App.
More...
#include <iguitokensmodel.h>
|
| QColor & | addTransporentImpl (QColor &input, float alpha) const |
| | addTransporent This method add alpha chennel to the color.
|
| virtual void | initStorage (const QWeakPointer< ModelStorage > &newStorage) |
| | initStorage This method is called by storage object after adding model to storage.
|
The iGUITokensModel class is general global instanse of all QML constans used in the App.
This abstract model provides the design tokens (color and font constants) of the application to QML. It is an abstract class: all pure virtual token functions must be implemented by a subclass.
After the model is added to the ModelStorage, the tokens are available in QML through the modelsStorage.getModel("GUITokens") call.
Example of a tokens implementation:
{
Q_OBJECT
public:
protected:
QFont
font_title_1()
const override {
return QFont(
"Arial", 12); }
};
The iGUITokensModel class is general global instanse of all QML constans used in the App.
QColor color_accent_primary
Definition at line 45 of file iguitokensmodel.h.
◆ iGUITokensModel()
| ViewSolutions::iGUITokensModel::iGUITokensModel |
( |
| ) |
|
|
explicit |
◆ addTransporent()
| QColor ViewSolutions::iGUITokensModel::addTransporent |
( |
QColor | input, |
|
|
float | alpha ) const |
◆ addTransporentImpl()
| QColor & ViewSolutions::iGUITokensModel::addTransporentImpl |
( |
QColor & | input, |
|
|
float | alpha ) const |
|
protected |
addTransporent This method add alpha chennel to the color.
- Parameters
-
| input | input link to color |
| alpha | alphachennol factor from 0 to 1. |
- Returns
- color with new alpha chennel.
Definition at line 22 of file iguitokensmodel.cpp.
◆ color_accent_error()
| virtual QColor ViewSolutions::iGUITokensModel::color_accent_error |
( |
| ) |
const |
|
pure virtual |
◆ color_accent_primary()
| virtual QColor ViewSolutions::iGUITokensModel::color_accent_primary |
( |
| ) |
const |
|
pure virtual |
◆ color_accent_secondary()
| virtual QColor ViewSolutions::iGUITokensModel::color_accent_secondary |
( |
| ) |
const |
|
pure virtual |
◆ color_accent_success()
| virtual QColor ViewSolutions::iGUITokensModel::color_accent_success |
( |
| ) |
const |
|
pure virtual |
◆ color_background()
| virtual QColor ViewSolutions::iGUITokensModel::color_background |
( |
| ) |
const |
|
pure virtual |
◆ color_border_disabled()
| virtual QColor ViewSolutions::iGUITokensModel::color_border_disabled |
( |
| ) |
const |
|
pure virtual |
◆ color_border_primary()
| virtual QColor ViewSolutions::iGUITokensModel::color_border_primary |
( |
| ) |
const |
|
pure virtual |
◆ color_border_secondary()
| virtual QColor ViewSolutions::iGUITokensModel::color_border_secondary |
( |
| ) |
const |
|
pure virtual |
◆ color_devider()
| virtual QColor ViewSolutions::iGUITokensModel::color_devider |
( |
| ) |
const |
|
pure virtual |
◆ color_text_disabled()
| virtual QColor ViewSolutions::iGUITokensModel::color_text_disabled |
( |
| ) |
const |
|
pure virtual |
◆ color_text_primary()
| virtual QColor ViewSolutions::iGUITokensModel::color_text_primary |
( |
| ) |
const |
|
pure virtual |
◆ color_text_secondary()
| virtual QColor ViewSolutions::iGUITokensModel::color_text_secondary |
( |
| ) |
const |
|
pure virtual |
◆ color_text_tertiary()
| virtual QColor ViewSolutions::iGUITokensModel::color_text_tertiary |
( |
| ) |
const |
|
pure virtual |
◆ font_body_1()
| virtual QFont ViewSolutions::iGUITokensModel::font_body_1 |
( |
| ) |
const |
|
pure virtual |
◆ font_body_2()
| virtual QFont ViewSolutions::iGUITokensModel::font_body_2 |
( |
| ) |
const |
|
pure virtual |
◆ font_body_large()
| virtual QFont ViewSolutions::iGUITokensModel::font_body_large |
( |
| ) |
const |
|
pure virtual |
◆ font_botton_1()
| virtual QFont ViewSolutions::iGUITokensModel::font_botton_1 |
( |
| ) |
const |
|
pure virtual |
◆ font_botton_2()
| virtual QFont ViewSolutions::iGUITokensModel::font_botton_2 |
( |
| ) |
const |
|
pure virtual |
◆ font_bubble()
| virtual QFont ViewSolutions::iGUITokensModel::font_bubble |
( |
| ) |
const |
|
pure virtual |
◆ font_caption_1()
| virtual QFont ViewSolutions::iGUITokensModel::font_caption_1 |
( |
| ) |
const |
|
pure virtual |
◆ font_caption_2()
| virtual QFont ViewSolutions::iGUITokensModel::font_caption_2 |
( |
| ) |
const |
|
pure virtual |
◆ font_caption_3()
| virtual QFont ViewSolutions::iGUITokensModel::font_caption_3 |
( |
| ) |
const |
|
pure virtual |
◆ font_subtitle_1()
| virtual QFont ViewSolutions::iGUITokensModel::font_subtitle_1 |
( |
| ) |
const |
|
pure virtual |
◆ font_subtitle_2()
| virtual QFont ViewSolutions::iGUITokensModel::font_subtitle_2 |
( |
| ) |
const |
|
pure virtual |
◆ font_subtitle_large()
| virtual QFont ViewSolutions::iGUITokensModel::font_subtitle_large |
( |
| ) |
const |
|
pure virtual |
◆ font_subtitle_uppercase()
| virtual QFont ViewSolutions::iGUITokensModel::font_subtitle_uppercase |
( |
| ) |
const |
|
pure virtual |
◆ font_subtitle_x_large()
| virtual QFont ViewSolutions::iGUITokensModel::font_subtitle_x_large |
( |
| ) |
const |
|
pure virtual |
◆ font_title_1()
| virtual QFont ViewSolutions::iGUITokensModel::font_title_1 |
( |
| ) |
const |
|
pure virtual |
◆ font_title_1_secondary()
| virtual QFont ViewSolutions::iGUITokensModel::font_title_1_secondary |
( |
| ) |
const |
|
pure virtual |
◆ font_title_2()
| virtual QFont ViewSolutions::iGUITokensModel::font_title_2 |
( |
| ) |
const |
|
pure virtual |
◆ font_title_3()
| virtual QFont ViewSolutions::iGUITokensModel::font_title_3 |
( |
| ) |
const |
|
pure virtual |
◆ font_title_3_secondary()
| virtual QFont ViewSolutions::iGUITokensModel::font_title_3_secondary |
( |
| ) |
const |
|
pure virtual |
◆ font_title_large()
| virtual QFont ViewSolutions::iGUITokensModel::font_title_large |
( |
| ) |
const |
|
pure virtual |
◆ font_title_strong()
| virtual QFont ViewSolutions::iGUITokensModel::font_title_strong |
( |
| ) |
const |
|
pure virtual |
◆ font_title_uppercase()
| virtual QFont ViewSolutions::iGUITokensModel::font_title_uppercase |
( |
| ) |
const |
|
pure virtual |
◆ font_title_x_large()
| virtual QFont ViewSolutions::iGUITokensModel::font_title_x_large |
( |
| ) |
const |
|
pure virtual |
◆ hover()
| virtual QColor ViewSolutions::iGUITokensModel::hover |
( |
| ) |
const |
|
pure virtual |
◆ modelId()
| QString ViewSolutions::iGUITokensModel::modelId |
( |
| ) |
const |
|
virtual |
◆ pressed_focused()
| virtual QColor ViewSolutions::iGUITokensModel::pressed_focused |
( |
| ) |
const |
|
pure virtual |
◆ color_accent_error
| QColor ViewSolutions::iGUITokensModel::color_accent_error |
|
read |
◆ color_accent_primary
| QColor ViewSolutions::iGUITokensModel::color_accent_primary |
|
read |
◆ color_accent_secondary
| QColor ViewSolutions::iGUITokensModel::color_accent_secondary |
|
read |
◆ color_accent_success
| QColor ViewSolutions::iGUITokensModel::color_accent_success |
|
read |
◆ color_background
| QColor ViewSolutions::iGUITokensModel::color_background |
|
read |
◆ color_border_disabled
| QColor ViewSolutions::iGUITokensModel::color_border_disabled |
|
read |
◆ color_border_primary
| QColor ViewSolutions::iGUITokensModel::color_border_primary |
|
read |
◆ color_border_secondary
| QColor ViewSolutions::iGUITokensModel::color_border_secondary |
|
read |
◆ color_devider
| QColor ViewSolutions::iGUITokensModel::color_devider |
|
read |
◆ color_text_disabled
| QColor ViewSolutions::iGUITokensModel::color_text_disabled |
|
read |
◆ color_text_primary
| QColor ViewSolutions::iGUITokensModel::color_text_primary |
|
read |
◆ color_text_secondary
| QColor ViewSolutions::iGUITokensModel::color_text_secondary |
|
read |
◆ color_text_tertiary
| QColor ViewSolutions::iGUITokensModel::color_text_tertiary |
|
read |
◆ font_body_1
| QFont ViewSolutions::iGUITokensModel::font_body_1 |
|
read |
◆ font_body_2
| QFont ViewSolutions::iGUITokensModel::font_body_2 |
|
read |
◆ font_body_large
| QFont ViewSolutions::iGUITokensModel::font_body_large |
|
read |
◆ font_botton_1
| QFont ViewSolutions::iGUITokensModel::font_botton_1 |
|
read |
◆ font_botton_2
| QFont ViewSolutions::iGUITokensModel::font_botton_2 |
|
read |
◆ font_bubble
| QFont ViewSolutions::iGUITokensModel::font_bubble |
|
read |
◆ font_caption_1
| QFont ViewSolutions::iGUITokensModel::font_caption_1 |
|
read |
◆ font_caption_2
| QFont ViewSolutions::iGUITokensModel::font_caption_2 |
|
read |
◆ font_caption_3
| QFont ViewSolutions::iGUITokensModel::font_caption_3 |
|
read |
◆ font_subtitle_1
| QFont ViewSolutions::iGUITokensModel::font_subtitle_1 |
|
read |
◆ font_subtitle_2
| QFont ViewSolutions::iGUITokensModel::font_subtitle_2 |
|
read |
◆ font_subtitle_large
| QFont ViewSolutions::iGUITokensModel::font_subtitle_large |
|
read |
◆ font_subtitle_uppercase
| QFont ViewSolutions::iGUITokensModel::font_subtitle_uppercase |
|
read |
◆ font_subtitle_x_large
| QFont ViewSolutions::iGUITokensModel::font_subtitle_x_large |
|
read |
◆ font_title_1
| QFont ViewSolutions::iGUITokensModel::font_title_1 |
|
read |
◆ font_title_1_secondary
| QFont ViewSolutions::iGUITokensModel::font_title_1_secondary |
|
read |
◆ font_title_2
| QFont ViewSolutions::iGUITokensModel::font_title_2 |
|
read |
◆ font_title_3
| QFont ViewSolutions::iGUITokensModel::font_title_3 |
|
read |
◆ font_title_3_secondary
| QFont ViewSolutions::iGUITokensModel::font_title_3_secondary |
|
read |
◆ font_title_large
| QFont ViewSolutions::iGUITokensModel::font_title_large |
|
read |
◆ font_title_strong
| QFont ViewSolutions::iGUITokensModel::font_title_strong |
|
read |
◆ font_title_uppercase
| QFont ViewSolutions::iGUITokensModel::font_title_uppercase |
|
read |
◆ font_title_x_large
| QFont ViewSolutions::iGUITokensModel::font_title_x_large |
|
read |
◆ hover
| QColor ViewSolutions::iGUITokensModel::hover |
|
read |
◆ pressed_focused
| QColor ViewSolutions::iGUITokensModel::pressed_focused |
|
read |
The documentation for this class was generated from the following files: