From 589792fe1c4bd4cd8bc43d51d637b9447375f29c Mon Sep 17 00:00:00 2001 From: Alessandro Portale Date: Thu, 30 Jun 2016 11:02:58 +0200 Subject: [PATCH] Welcome: Fix the handling of the new Theme::FlatToolBars flag Small addition which should have been part of 8588cf268f774dbbc242f0805669787c7bc310ac Change-Id: Iddc91e1ec98a944b2d44f615140025693cfc0fd0 Reviewed-by: Orgad Shaneh (cherry picked from commit 835ab0c44f4d58584d09e78555e285a5d451d34a) Reviewed-by: Eike Ziller --- share/qtcreator/welcomescreen/widgets/Button.qml | 2 +- share/qtcreator/welcomescreen/widgets/Delegate.qml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/share/qtcreator/welcomescreen/widgets/Button.qml b/share/qtcreator/welcomescreen/widgets/Button.qml index 75dca22d359..0f5e5c88a38 100644 --- a/share/qtcreator/welcomescreen/widgets/Button.qml +++ b/share/qtcreator/welcomescreen/widgets/Button.qml @@ -64,7 +64,7 @@ Button { border.color: (button.checked || button.pressed) ? creatorTheme.Welcome_ForegroundPrimaryColor : creatorTheme.Welcome_ForegroundSecondaryColor - radius: (creatorTheme.WidgetStyle === 'StyleFlat') ? 0 : 4 + radius: creatorTheme.FlatToolBars ? 0 : 4 } } diff --git a/share/qtcreator/welcomescreen/widgets/Delegate.qml b/share/qtcreator/welcomescreen/widgets/Delegate.qml index f3ce5b5b657..6005e203745 100644 --- a/share/qtcreator/welcomescreen/widgets/Delegate.qml +++ b/share/qtcreator/welcomescreen/widgets/Delegate.qml @@ -187,7 +187,7 @@ Rectangle { Rectangle { id: border color: "#00000000" - radius: creatorTheme.WidgetStyle === 'StyleFlat' ? 0 : 6 + radius: creatorTheme.FlatToolBars ? 0 : 6 anchors.rightMargin: 4 anchors.leftMargin: 4 anchors.bottomMargin: 4