Skin support.
More...
#include <Skin.h>
|
| static void | drawListBackground (QPainter *p, QRect rect, QColor background, bool bHovered) |
| | Draws the background of a row in both the pattern list of the SongEditor and the instrument list in the PatternEditor using p.
|
| |
| static void | drawPlayhead (QPainter *p, int x, int y, bool bHovered=false) |
| |
| static void | drawStackedIndicator (QPainter *p, int x, int y, Skin::Stacked stacked) |
| |
| static QString | getGlobalStyleSheet () |
| | Top-level stylesheet for Hydrogen.
|
| |
| static QString | getImagePath () |
| |
| static int | getPlayheadShaftOffset () |
| |
| static QString | getSvgImagePath () |
| |
| static QColor | makeTextColorInactive (QColor color) |
| | If a widget is marked inactive the value of its text color are reduced by this factor.
|
| |
| static QColor | makeWidgetColorInactive (QColor color) |
| | If a widget is marked inactive the value of its background color are reduced by this factor.
|
| |
| static void | setPalette (QApplication *pQApp) |
| | Function used to update the global palette of the QApplication.
|
| |
| static void | setPlayheadPen (QPainter *p, bool bHovered=false) |
| |
Skin support.
Definition at line 33 of file Skin.h.
◆ Stacked
| Enumerator |
|---|
| None | |
| Off | |
| OffNext | |
| On | |
| OnNext | |
Definition at line 84 of file Skin.h.
◆ drawListBackground()
| void drawListBackground |
( |
QPainter * | p, |
|
|
QRect | rect, |
|
|
QColor | background, |
|
|
bool | bHovered ) |
|
static |
Draws the background of a row in both the pattern list of the SongEditor and the instrument list in the PatternEditor using p.
- Parameters
-
| p | Painter used in the calling QPaintEvent routine. |
| rect | Boundary that encloses element (one row). |
| background | Color used. |
| bHovered | Whether the element is currently hovered by mouse. |
Definition at line 144 of file Skin.cpp.
◆ drawPlayhead()
| void drawPlayhead |
( |
QPainter * | p, |
|
|
int | x, |
|
|
int | y, |
|
|
bool | bHovered = false ) |
|
static |
◆ drawStackedIndicator()
| void drawStackedIndicator |
( |
QPainter * | p, |
|
|
int | x, |
|
|
int | y, |
|
|
Skin::Stacked | stacked ) |
|
static |
◆ getGlobalStyleSheet()
| QString getGlobalStyleSheet |
( |
| ) |
|
|
static |
Top-level stylesheet for Hydrogen.
This one affects all widgets within Hydrogen (including
popups, file browser etc) and will get the most recent color
values from the #H2Core::Preferences.
\return String version of the stylesheet.
Definition at line 28 of file Skin.cpp.
◆ getImagePath()
| static QString getImagePath |
( |
| ) |
|
|
inlinestatic |
◆ getPlayheadShaftOffset()
| static int getPlayheadShaftOffset |
( |
| ) |
|
|
inlinestatic |
◆ getSvgImagePath()
| static QString getSvgImagePath |
( |
| ) |
|
|
inlinestatic |
◆ makeTextColorInactive()
| QColor makeTextColorInactive |
( |
QColor | color | ) |
|
|
static |
If a widget is marked inactive the value of its text color are reduced by this factor.
Definition at line 176 of file Skin.cpp.
◆ makeWidgetColorInactive()
| QColor makeWidgetColorInactive |
( |
QColor | color | ) |
|
|
static |
If a widget is marked inactive the value of its background color are reduced by this factor.
Definition at line 167 of file Skin.cpp.
◆ setPalette()
| void setPalette |
( |
QApplication * | pQApp | ) |
|
|
static |
Function used to update the global palette of the QApplication.
It will get the most recent color values from the H2Core::Preferences.
Definition at line 106 of file Skin.cpp.
◆ setPlayheadPen()
| void setPlayheadPen |
( |
QPainter * | p, |
|
|
bool | bHovered = false ) |
|
static |
◆ nPlayheadHeight
| constexpr int nPlayheadHeight = 8 |
|
staticconstexpr |
◆ nPlayheadWidth
| constexpr int nPlayheadWidth = 11 |
|
staticconstexpr |