Welcome: Add a dedicated session settings icon

The re-used toolbar settings icon from Utils appears a bit small in
comparison to the other icons on the welcome screen.

This change adds a dedicated, properly sized "Settings" icon which fits
better.

Change-Id: I8af239a93806eaa6f355d504be282691b2463f3a
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
This commit is contained in:
Alessandro Portale
2021-09-25 01:20:26 +02:00
parent 0369dc9977
commit 191bab9ecd
5 changed files with 113 additions and 82 deletions

View File

@@ -562,8 +562,7 @@ public:
auto manageSessionsButton = new WelcomePageButton(this);
manageSessionsButton->setText(ProjectWelcomePage::tr("Manage"));
const Icon icon({{":/utils/images/settings.png", Theme::Welcome_ForegroundSecondaryColor}}, Icon::Tint);
manageSessionsButton->setIcon(icon.pixmap());
manageSessionsButton->setIcon(pixmap("settings", Theme::Welcome_ForegroundSecondaryColor));
manageSessionsButton->setOnClicked([] { ProjectExplorerPlugin::showSessionManager(); });
auto newButton = new WelcomePageButton(this);

Binary file not shown.

After

Width:  |  Height:  |  Size: 216 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 418 B

View File

@@ -25,5 +25,7 @@
<file>images/border.png</file>
<file>images/download.png</file>
<file>images/download@2x.png</file>
<file>images/settings.png</file>
<file>images/settings@2x.png</file>
</qresource>
</RCC>

View File

@@ -3258,6 +3258,8 @@
xlink:href="#backgroundRect"
y="0"
x="0" />
<g
id="gear_small">
<circle
style="fill:none;stroke:#000000;stroke-width:1.75"
id="path4133"
@@ -3306,7 +3308,7 @@
xlink:href="#path4135"
inkscape:transform-center-y="-5.25"
id="use4143"
transform="rotate(-180,1732,576)"
transform="rotate(180,1732,576)"
width="100%"
height="100%" />
<use
@@ -3339,6 +3341,7 @@
height="100%"
inkscape:transform-center-x="-3.5355339" />
</g>
</g>
<g
style="display:inline"
transform="translate(144)"
@@ -6748,6 +6751,33 @@
d="m 128,599 h 16 m -14.5,-9.5 6.5,6.5 6.5,-6.5 M 136,584 v 12"
sodipodi:nodetypes="ccccccc" />
</g>
<g
id="src/plugins/welcome/images/settings">
<use
style="display:inline"
x="0"
y="0"
xlink:href="#backgroundRect"
id="use4519"
width="100%"
height="100%"
transform="translate(192,148)" />
<use
x="0"
y="0"
xlink:href="#gear_small"
id="use4295"
width="100%"
height="100%"
style="display:inline"
transform="matrix(1.3333313,0,0,1.3333318,-2125.3299,-175.99908)" />
<circle
style="fill:#ffffff"
id="path2610"
cx="184"
cy="592"
r="4" />
</g>
<g
id="src/libs/utils/images/member"
transform="translate(-28,0)">

Before

Width:  |  Height:  |  Size: 373 KiB

After

Width:  |  Height:  |  Size: 374 KiB