forked from qt-creator/qt-creator
Add QDSTheme to theming and use it in ManhattanStyle
Change-Id: If3f634cd96665150b27605eaf7a2a5d4ea7078b6 Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
This commit is contained in:
@@ -101,6 +101,14 @@ QColor StyleHelper::baseColor(bool lightColored)
|
||||
return (lightColored || windowColorAsBase) ? windowColor : m_baseColor;
|
||||
}
|
||||
|
||||
QColor StyleHelper::toolbarBaseColor(bool lightColored)
|
||||
{
|
||||
if (creatorTheme()->flag(Theme::QDSTheme))
|
||||
return creatorTheme()->color(Utils::Theme::DStoolbarBackground);
|
||||
else
|
||||
return StyleHelper::baseColor(lightColored);
|
||||
}
|
||||
|
||||
QColor StyleHelper::highlightColor(bool lightColored)
|
||||
{
|
||||
QColor result = baseColor(lightColored);
|
||||
@@ -626,6 +634,11 @@ QLinearGradient StyleHelper::statusBarGradient(const QRect &statusBarRect)
|
||||
return grad;
|
||||
}
|
||||
|
||||
bool StyleHelper::isQDSTheme()
|
||||
{
|
||||
return creatorTheme()->flag(Theme::QDSTheme);
|
||||
}
|
||||
|
||||
QIcon StyleHelper::getIconFromIconFont(const QString &fontName, const QList<IconFontHelper> ¶meters)
|
||||
{
|
||||
QFontDatabase a;
|
||||
|
||||
Reference in New Issue
Block a user