Allow the normal/restore icon to be different than float/dock

Allow we use the same icon, the user might now want to, so allow
them to use a different icon
This commit is contained in:
Sergio Martins
2020-10-03 14:58:07 +01:00
parent f062ab7a64
commit d1b2d17f7d
3 changed files with 7 additions and 1 deletions

View File

@@ -142,6 +142,10 @@ QIcon DefaultWidgetFactory::iconForButtonType(TitleBarButtonType type, qreal dpr
case TitleBarButtonType::Maximize:
iconName = QStringLiteral("max");
break;
case TitleBarButtonType::Normal:
// We're using the same icon as dock/float
iconName = QStringLiteral("dock-float");
break;
case TitleBarButtonType::Float:
iconName = QStringLiteral("dock-float");
break;