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); auto manageSessionsButton = new WelcomePageButton(this);
manageSessionsButton->setText(ProjectWelcomePage::tr("Manage")); manageSessionsButton->setText(ProjectWelcomePage::tr("Manage"));
const Icon icon({{":/utils/images/settings.png", Theme::Welcome_ForegroundSecondaryColor}}, Icon::Tint); manageSessionsButton->setIcon(pixmap("settings", Theme::Welcome_ForegroundSecondaryColor));
manageSessionsButton->setIcon(icon.pixmap());
manageSessionsButton->setOnClicked([] { ProjectExplorerPlugin::showSessionManager(); }); manageSessionsButton->setOnClicked([] { ProjectExplorerPlugin::showSessionManager(); });
auto newButton = new WelcomePageButton(this); 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/border.png</file>
<file>images/download.png</file> <file>images/download.png</file>
<file>images/download@2x.png</file> <file>images/download@2x.png</file>
<file>images/settings.png</file>
<file>images/settings@2x.png</file>
</qresource> </qresource>
</RCC> </RCC>

View File

@@ -3258,86 +3258,89 @@
xlink:href="#backgroundRect" xlink:href="#backgroundRect"
y="0" y="0"
x="0" /> x="0" />
<circle <g
style="fill:none;stroke:#000000;stroke-width:1.75" id="gear_small">
id="path4133" <circle
cx="1732" style="fill:none;stroke:#000000;stroke-width:1.75"
cy="576" id="path4133"
r="3.5" /> cx="1732"
<path cy="576"
style="fill:#000000" r="3.5" />
d="m 1733.25,579.5 -0.5,2.5 h -1.5 l -0.5,-2.5 z" <path
id="path4135" style="fill:#000000"
inkscape:connector-curvature="0" d="m 1733.25,579.5 -0.5,2.5 h -1.5 l -0.5,-2.5 z"
inkscape:transform-center-y="5.25" id="path4135"
sodipodi:nodetypes="ccccc" /> inkscape:connector-curvature="0"
<use inkscape:transform-center-y="5.25"
x="0" sodipodi:nodetypes="ccccc" />
y="0" <use
xlink:href="#path4135" x="0"
inkscape:transform-center-y="3.5355339" y="0"
id="use4137" xlink:href="#path4135"
transform="rotate(45,1732,576)" inkscape:transform-center-y="3.5355339"
width="100%" id="use4137"
height="100%" transform="rotate(45,1732,576)"
inkscape:transform-center-x="3.5355339" /> width="100%"
<use height="100%"
x="0" inkscape:transform-center-x="3.5355339" />
y="0" <use
xlink:href="#path4135" x="0"
id="use4139" y="0"
transform="rotate(90,1732,576)" xlink:href="#path4135"
width="100%" id="use4139"
height="100%" transform="rotate(90,1732,576)"
inkscape:transform-center-x="5.25" /> width="100%"
<use height="100%"
x="0" inkscape:transform-center-x="5.25" />
y="0" <use
xlink:href="#path4135" x="0"
inkscape:transform-center-y="-3.5355339" y="0"
id="use4141" xlink:href="#path4135"
transform="rotate(135,1732,576)" inkscape:transform-center-y="-3.5355339"
width="100%" id="use4141"
height="100%" transform="rotate(135,1732,576)"
inkscape:transform-center-x="3.5355339" /> width="100%"
<use height="100%"
x="0" inkscape:transform-center-x="3.5355339" />
y="0" <use
xlink:href="#path4135" x="0"
inkscape:transform-center-y="-5.25" y="0"
id="use4143" xlink:href="#path4135"
transform="rotate(-180,1732,576)" inkscape:transform-center-y="-5.25"
width="100%" id="use4143"
height="100%" /> transform="rotate(180,1732,576)"
<use width="100%"
x="0" height="100%" />
y="0" <use
xlink:href="#path4135" x="0"
inkscape:transform-center-y="-3.5355339" y="0"
id="use4145" xlink:href="#path4135"
transform="rotate(-135,1732,576)" inkscape:transform-center-y="-3.5355339"
width="100%" id="use4145"
height="100%" transform="rotate(-135,1732,576)"
inkscape:transform-center-x="-3.5355339" /> width="100%"
<use height="100%"
x="0" inkscape:transform-center-x="-3.5355339" />
y="0" <use
xlink:href="#path4135" x="0"
id="use4147" y="0"
transform="rotate(-90,1732,576)" xlink:href="#path4135"
width="100%" id="use4147"
height="100%" transform="rotate(-90,1732,576)"
inkscape:transform-center-x="-5.25" /> width="100%"
<use height="100%"
x="0" inkscape:transform-center-x="-5.25" />
y="0" <use
xlink:href="#path4135" x="0"
inkscape:transform-center-y="3.5355339" y="0"
id="use4149" xlink:href="#path4135"
transform="rotate(-45,1732,576)" inkscape:transform-center-y="3.5355339"
width="100%" id="use4149"
height="100%" transform="rotate(-45,1732,576)"
inkscape:transform-center-x="-3.5355339" /> width="100%"
height="100%"
inkscape:transform-center-x="-3.5355339" />
</g>
</g> </g>
<g <g
style="display:inline" style="display:inline"
@@ -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" 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" /> sodipodi:nodetypes="ccccccc" />
</g> </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 <g
id="src/libs/utils/images/member" id="src/libs/utils/images/member"
transform="translate(-28,0)"> transform="translate(-28,0)">

Before

Width:  |  Height:  |  Size: 373 KiB

After

Width:  |  Height:  |  Size: 374 KiB