forked from qt-creator/qt-creator
Vcpkg: Use vcpkg logo icon for search vcpkg package dialog
Task-number: QTCREATORBUG-29333 Change-Id: I0dca734bdb7a328d97744c21d87de23d273a96b7 Reviewed-by: Cristian Adam <cristian.adam@qt.io>
This commit is contained in:
BIN
src/plugins/vcpkg/images/vcpkgicon.png
Normal file
BIN
src/plugins/vcpkg/images/vcpkgicon.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 204 B |
BIN
src/plugins/vcpkg/images/vcpkgicon@2x.png
Normal file
BIN
src/plugins/vcpkg/images/vcpkgicon@2x.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 401 B |
@@ -4,5 +4,7 @@
|
||||
<file>wizards/manifest/wizard.json</file>
|
||||
<file>images/cmakeicon.png</file>
|
||||
<file>images/cmakeicon@2x.png</file>
|
||||
<file>images/vcpkgicon.png</file>
|
||||
<file>images/vcpkgicon@2x.png</file>
|
||||
</qresource>
|
||||
</RCC>
|
||||
|
@@ -92,8 +92,9 @@ class VcpkgManifestEditorWidget : public TextEditor::TextEditorWidget
|
||||
public:
|
||||
VcpkgManifestEditorWidget()
|
||||
{
|
||||
m_searchPkgAction = toolBar()->addAction(Utils::Icons::ZOOM_TOOLBAR.icon(),
|
||||
Tr::tr("Add vcpkg package..."));
|
||||
const QIcon vcpkgIcon = Utils::Icon({{":/vcpkg/images/vcpkgicon.png",
|
||||
Utils::Theme::IconsBaseColor}}).icon();
|
||||
m_searchPkgAction = toolBar()->addAction(vcpkgIcon, Tr::tr("Add vcpkg package..."));
|
||||
connect(m_searchPkgAction, &QAction::triggered, this, [this] {
|
||||
const Search::VcpkgManifest package = Search::showVcpkgPackageSearchDialog();
|
||||
if (!package.name.isEmpty())
|
||||
|
@@ -3664,6 +3664,37 @@
|
||||
style="display:inline"
|
||||
transform="matrix(0.89482687,0,0,0.89482687,164.39232,51.559627)" />
|
||||
</g>
|
||||
<g
|
||||
id="src/plugins/vcpkg/images/vcpkgicon">
|
||||
<use
|
||||
style="display:inline"
|
||||
transform="translate(2016,132)"
|
||||
height="100%"
|
||||
width="100%"
|
||||
id="use1952-7-6-1"
|
||||
xlink:href="#backgroundRect"
|
||||
y="0"
|
||||
x="0" />
|
||||
<g
|
||||
id="g6088">
|
||||
<path
|
||||
style="fill:#4d4d4d"
|
||||
d="m 2003.1348,577.71875 c 1.2848,0.24885 2.6819,-1.48291 2.4355,-3.76367 -0.7916,-0.0764 -1.3258,0.0765 -1.7637,0.36133 -0.6852,0.44589 -1.1449,1.30413 -1.7226,2.23047 0.1588,0.64898 0.5375,1.07247 1.0508,1.17187 z"
|
||||
id="path2102"
|
||||
sodipodi:nodetypes="scscs" />
|
||||
<path
|
||||
style="fill:#000000"
|
||||
d="m 2006.0376,573.24147 c 1.8615,0.51984 1.6429,0.7072 2.8995,1.08292 1.2566,0.37573 2.3556,-0.12796 2.7719,-1.74627 0.3958,-1.53873 -1.3327,-2.57841 -3.4317,-2.56695 -2.0989,0.0114 -4.5685,1.07289 -5.6543,3.36578 -0.3182,0.67202 -0.5017,1.29842 -0.5781,1.85743 0.9246,-1.47431 2.1312,-2.51275 3.9927,-1.99291 z"
|
||||
id="path5378"
|
||||
sodipodi:nodetypes="zzssscz" />
|
||||
</g>
|
||||
<use
|
||||
x="0"
|
||||
y="0"
|
||||
xlink:href="#g6088"
|
||||
id="use6090"
|
||||
transform="rotate(180,2008,576)" />
|
||||
</g>
|
||||
</g>
|
||||
<g
|
||||
inkscape:groupmode="layer"
|
||||
|
Before Width: | Height: | Size: 363 KiB After Width: | Height: | Size: 364 KiB |
Reference in New Issue
Block a user