add icons to the instance toolbar
Signed-off-by: leo78913 <leo3758@riseup.net>
@ -38,5 +38,6 @@
|
|||||||
<file>scalable/tag.svg</file>
|
<file>scalable/tag.svg</file>
|
||||||
<file>scalable/export.svg</file>
|
<file>scalable/export.svg</file>
|
||||||
<file>scalable/rename.svg</file>
|
<file>scalable/rename.svg</file>
|
||||||
|
<file>scalable/launch.svg</file>
|
||||||
</qresource>
|
</qresource>
|
||||||
</RCC>
|
</RCC>
|
||||||
|
33
launcher/resources/OSX/scalable/launch.svg
Normal file
@ -0,0 +1,33 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
||||||
|
<svg
|
||||||
|
version="1.1"
|
||||||
|
id="Calque_1"
|
||||||
|
x="0px"
|
||||||
|
y="0px"
|
||||||
|
viewBox="0 0 32.099998 32"
|
||||||
|
enable-background="new 0 0 32 32"
|
||||||
|
xml:space="preserve"
|
||||||
|
width="32.099998"
|
||||||
|
height="32"
|
||||||
|
xmlns="http://www.w3.org/2000/svg"
|
||||||
|
xmlns:svg="http://www.w3.org/2000/svg"><defs
|
||||||
|
id="defs45" />
|
||||||
|
|
||||||
|
<rect
|
||||||
|
fill-rule="evenodd"
|
||||||
|
clip-rule="evenodd"
|
||||||
|
fill="none"
|
||||||
|
width="32"
|
||||||
|
height="32"
|
||||||
|
id="rect1776"
|
||||||
|
x="0.1"
|
||||||
|
y="0" /><path
|
||||||
|
fill="#b6b5b6"
|
||||||
|
d="M 30,28.4 H 2 c -1.1,0 -2,-0.9 -2,-2 v -18 c 0,-1.1 0.9,-2 2,-2 h 28 c 1.1,0 2,0.9 2,2 v 18 c 0,1.1 -0.9,2 -2,2 z"
|
||||||
|
id="path1778" /><path
|
||||||
|
fill="#fbfbfb"
|
||||||
|
d="M 30,27.4 H 2 c -1.1,0 -2,-0.9 -2,-2 v -17 c 0,-1.1 0.9,-2 2,-2 h 28 c 1.1,0 2,0.9 2,2 v 17 c 0,1.1 -0.9,2 -2,2 z"
|
||||||
|
id="path1780" /><path
|
||||||
|
id="path11889"
|
||||||
|
style="color:#000000;fill:#585858;fill-opacity:1;stroke-width:0.999994;stroke-linecap:round;stroke-linejoin:round;paint-order:markers stroke fill"
|
||||||
|
d="m 11.520289,8.4637512 c -0.06474,-0.00183 -0.129661,-0.00125 -0.194234,0.00117 C 9.7763279,8.5230552 8.3049,9.7900155 8.3049,11.461507 v 10.877094 c -6e-7,2.228655 2.616628,3.738089 4.545774,2.622156 l 9.398109,-5.436205 c 1.928423,-1.115516 1.928423,-4.133479 0,-5.248993 L 12.850674,8.839348 C 12.428673,8.595238 11.973493,8.4765655 11.520289,8.4637512 Z m -0.184873,1.2309276 c 0.307885,1.456e-4 0.612521,0.080796 0.882242,0.2363567 a 0.89871379,0.89871379 0 0 0 0.0012,0 l 9.398109,5.4362075 c 1.143234,0.659415 1.143234,2.406201 0,3.065618 l -9.398109,5.436206 a 0.89871379,0.89871379 0 0 0 -0.0012,0 C 11.076744,24.528497 9.5659235,23.656375 9.56625,22.338599 V 11.461504 c 3.043e-4,-0.851902 0.622381,-1.5925143 1.461434,-1.7399133 0.102209,-0.018038 0.205103,-0.026958 0.307732,-0.026912 z" /></svg>
|
After Width: | Height: | Size: 1.8 KiB |
@ -46,5 +46,6 @@
|
|||||||
<file>scalable/tag.svg</file>
|
<file>scalable/tag.svg</file>
|
||||||
<file>scalable/export.svg</file>
|
<file>scalable/export.svg</file>
|
||||||
<file>scalable/rename.svg</file>
|
<file>scalable/rename.svg</file>
|
||||||
|
<file>scalable/launch.svg</file>
|
||||||
</qresource>
|
</qresource>
|
||||||
</RCC>
|
</RCC>
|
||||||
|
16
launcher/resources/flat/scalable/launch.svg
Normal file
@ -0,0 +1,16 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
||||||
|
<svg
|
||||||
|
fill="#757575"
|
||||||
|
height="48"
|
||||||
|
width="48"
|
||||||
|
version="1.1"
|
||||||
|
id="svg24108"
|
||||||
|
xmlns="http://www.w3.org/2000/svg"
|
||||||
|
xmlns:svg="http://www.w3.org/2000/svg">
|
||||||
|
<defs
|
||||||
|
id="defs24112" />
|
||||||
|
<path
|
||||||
|
d="M 11.674384,43.35533 V 4.3446706 L 42.325617,23.850001 Z"
|
||||||
|
id="path24106"
|
||||||
|
style="stroke-width:1" />
|
||||||
|
</svg>
|
After Width: | Height: | Size: 385 B |
@ -38,5 +38,6 @@
|
|||||||
<file>scalable/tag.svg</file>
|
<file>scalable/tag.svg</file>
|
||||||
<file>scalable/export.svg</file>
|
<file>scalable/export.svg</file>
|
||||||
<file>scalable/rename.svg</file>
|
<file>scalable/rename.svg</file>
|
||||||
|
<file>scalable/launch.svg</file>
|
||||||
</qresource>
|
</qresource>
|
||||||
</RCC>
|
</RCC>
|
||||||
|
17
launcher/resources/iOS/scalable/launch.svg
Normal file
@ -0,0 +1,17 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
||||||
|
<svg
|
||||||
|
version="1.1"
|
||||||
|
id="Calque_1"
|
||||||
|
x="0px"
|
||||||
|
y="0px"
|
||||||
|
viewBox="0 0 32 32"
|
||||||
|
enable-background="new 0 0 32 32"
|
||||||
|
xml:space="preserve"
|
||||||
|
xmlns="http://www.w3.org/2000/svg"
|
||||||
|
xmlns:svg="http://www.w3.org/2000/svg"><defs
|
||||||
|
id="defs45" />
|
||||||
|
|
||||||
|
<path
|
||||||
|
id="path11889"
|
||||||
|
style="color:#000000;fill:#3366cc;fill-opacity:1;stroke-width:0.999996;stroke-linecap:round;stroke-linejoin:round;paint-order:markers stroke fill"
|
||||||
|
d="M 9.3515625 1.5410156 C 9.2434917 1.5379599 9.1351284 1.5389257 9.0273438 1.5429688 C 6.4405102 1.6400023 3.9843749 3.7548369 3.984375 6.5449219 L 3.984375 24.701172 C 3.9843742 28.421285 8.3520988 30.94086 11.572266 29.078125 L 27.259766 20.003906 C 30.478726 18.141866 30.478727 13.104225 27.259766 11.242188 L 11.572266 2.1679688 C 10.867854 1.7604958 10.108058 1.5624055 9.3515625 1.5410156 z M 9.0429688 3.5957031 C 9.5568946 3.5959458 10.065401 3.7305695 10.515625 3.9902344 A 1.50015 1.50015 0 0 0 10.517578 3.9902344 L 26.205078 13.064453 C 28.113387 14.165162 28.113387 17.080931 26.205078 18.181641 L 10.517578 27.255859 A 1.50015 1.50015 0 0 0 10.515625 27.255859 C 8.6111878 28.356592 6.0892988 26.90083 6.0898438 24.701172 L 6.0898438 6.5449219 C 6.090352 5.1229119 7.128734 3.8866658 8.5292969 3.640625 C 8.6999053 3.6105103 8.87166 3.5956222 9.0429688 3.5957031 z " /></svg>
|
After Width: | Height: | Size: 1.3 KiB |
@ -38,5 +38,6 @@
|
|||||||
<file>scalable/tag.svg</file>
|
<file>scalable/tag.svg</file>
|
||||||
<file>scalable/export.svg</file>
|
<file>scalable/export.svg</file>
|
||||||
<file>scalable/rename.svg</file>
|
<file>scalable/rename.svg</file>
|
||||||
|
<file>scalable/launch.svg</file>
|
||||||
</qresource>
|
</qresource>
|
||||||
</RCC>
|
</RCC>
|
||||||
|
20
launcher/resources/pe_blue/scalable/launch.svg
Normal file
@ -0,0 +1,20 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
||||||
|
<svg
|
||||||
|
version="1.1"
|
||||||
|
id="Calque_1"
|
||||||
|
x="0px"
|
||||||
|
y="0px"
|
||||||
|
viewBox="0 0 32 32"
|
||||||
|
enable-background="new 0 0 32 32"
|
||||||
|
xml:space="preserve"
|
||||||
|
xmlns="http://www.w3.org/2000/svg"
|
||||||
|
xmlns:svg="http://www.w3.org/2000/svg"><defs
|
||||||
|
id="defs45" />
|
||||||
|
|
||||||
|
<path
|
||||||
|
style="color:#000000;fill:#3366cc;fill-opacity:1;stroke-width:8;stroke-linecap:round;stroke-linejoin:round;paint-order:markers stroke fill;stroke:#3366cc;stroke-opacity:1"
|
||||||
|
d="M 25.454197,16.881861 9.7664963,25.956555 A 1.4501236,1.4501236 0 0 1 7.5902672,24.701314 V 6.544692 A 1.4501239,1.4501239 0 0 1 9.7664965,5.2894509 L 25.454196,14.364142 a 1.4543042,1.4543042 0 0 1 1e-6,2.517719 z"
|
||||||
|
id="path11891" /><path
|
||||||
|
style="color:#000000;fill:#daeeff;fill-opacity:1;stroke-width:8;stroke-linecap:round;stroke-linejoin:round;paint-order:markers stroke fill"
|
||||||
|
d="M 25.454197,16.881861 9.7664962,25.956555 A 1.4501236,1.4501236 0 0 1 7.5902671,24.701314 V 6.544692 A 1.4501239,1.4501239 0 0 1 9.7664964,5.289451 l 15.6876996,9.074691 a 1.4543042,1.4543042 0 0 1 1e-6,2.517719 z"
|
||||||
|
id="path11897" /></svg>
|
After Width: | Height: | Size: 1.1 KiB |
@ -38,5 +38,6 @@
|
|||||||
<file>scalable/tag.svg</file>
|
<file>scalable/tag.svg</file>
|
||||||
<file>scalable/export.svg</file>
|
<file>scalable/export.svg</file>
|
||||||
<file>scalable/rename.svg</file>
|
<file>scalable/rename.svg</file>
|
||||||
|
<file>scalable/launch.svg</file>
|
||||||
</qresource>
|
</qresource>
|
||||||
</RCC>
|
</RCC>
|
||||||
|
23
launcher/resources/pe_colored/scalable/launch.svg
Normal file
@ -0,0 +1,23 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
||||||
|
<svg
|
||||||
|
version="1.1"
|
||||||
|
id="Calque_1"
|
||||||
|
x="0px"
|
||||||
|
y="0px"
|
||||||
|
viewBox="0 0 32 32"
|
||||||
|
enable-background="new 0 0 32 32"
|
||||||
|
xml:space="preserve"
|
||||||
|
xmlns="http://www.w3.org/2000/svg"
|
||||||
|
xmlns:svg="http://www.w3.org/2000/svg"><defs
|
||||||
|
id="defs45" />
|
||||||
|
|
||||||
|
<path
|
||||||
|
style="color:#000000;fill:#8c6239;fill-opacity:1;stroke-width:0.999996;stroke-linecap:round;stroke-linejoin:round;paint-order:markers stroke fill"
|
||||||
|
d="M 9.0277705,1.5430089 C 6.4409319,1.6400426 3.9852419,3.7549517 3.985242,6.5450423 V 24.700962 c -8e-7,3.720121 4.3665092,6.239738 7.586682,4.376999 l 15.687475,-9.074438 c 3.218968,-1.862044 3.218969,-6.899 0,-8.761041 L 11.571924,2.1680429 C 10.766881,1.7023586 9.8900501,1.5106643 9.0277705,1.5430089 Z m 2.1691325,8.7399131 9.231137,5.34008 -9.231137,5.34008 z"
|
||||||
|
id="path11889" /><path
|
||||||
|
id="path11895"
|
||||||
|
style="color:#000000;fill:#39b54a;fill-opacity:1;stroke-width:0.999996;stroke-linecap:round;stroke-linejoin:round;paint-order:markers stroke fill"
|
||||||
|
d="M 9.3517318,1.541286 C 9.2436609,1.5382303 9.1355552,1.5390036 9.0277705,1.5430466 6.4409344,1.6400802 3.9852418,3.7549923 3.9852419,6.54508 V 9.6526439 H 24.511009 L 11.571923,2.1680807 C 10.867511,1.7606073 10.108228,1.5626759 9.3517318,1.541286 Z" /><path
|
||||||
|
style="color:#000000;fill:#f2f2f2;stroke-width:8;stroke-linecap:round;stroke-linejoin:round;-inkscape-stroke:none;paint-order:markers stroke fill"
|
||||||
|
d="M 25.454197,16.881861 9.7664962,25.956555 A 1.4501236,1.4501236 0 0 1 7.5902671,24.701314 V 6.544692 A 1.4501239,1.4501239 0 0 1 9.7664964,5.289451 l 15.6876996,9.074691 a 1.4543042,1.4543042 0 0 1 1e-6,2.517719 z"
|
||||||
|
id="path11897" /></svg>
|
After Width: | Height: | Size: 1.7 KiB |
@ -38,5 +38,6 @@
|
|||||||
<file>scalable/tag.svg</file>
|
<file>scalable/tag.svg</file>
|
||||||
<file>scalable/export.svg</file>
|
<file>scalable/export.svg</file>
|
||||||
<file>scalable/rename.svg</file>
|
<file>scalable/rename.svg</file>
|
||||||
|
<file>scalable/launch.svg</file>
|
||||||
</qresource>
|
</qresource>
|
||||||
</RCC>
|
</RCC>
|
||||||
|
17
launcher/resources/pe_dark/scalable/launch.svg
Normal file
@ -0,0 +1,17 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
||||||
|
<svg
|
||||||
|
version="1.1"
|
||||||
|
id="Calque_1"
|
||||||
|
x="0px"
|
||||||
|
y="0px"
|
||||||
|
viewBox="0 0 32 32"
|
||||||
|
enable-background="new 0 0 32 32"
|
||||||
|
xml:space="preserve"
|
||||||
|
xmlns="http://www.w3.org/2000/svg"
|
||||||
|
xmlns:svg="http://www.w3.org/2000/svg"><defs
|
||||||
|
id="defs45" />
|
||||||
|
|
||||||
|
<path
|
||||||
|
id="path11889"
|
||||||
|
style="color:#000000;fill:#000000;fill-opacity:1;stroke-width:0.999996;stroke-linecap:round;stroke-linejoin:round;paint-order:markers stroke fill"
|
||||||
|
d="M 9.3515625,1.5410156 C 9.2434916,1.5379599 9.1351286,1.5389257 9.0273438,1.5429688 6.4405077,1.6400024 3.9843749,3.7548341 3.984375,6.5449219 V 24.701172 c -8e-7,3.720117 4.367721,6.23969 7.587891,4.376953 l 15.6875,-9.074219 c 3.218964,-1.862042 3.218965,-6.899679 0,-8.761718 L 11.572266,2.1679688 C 10.867854,1.7604954 10.108059,1.5624055 9.3515625,1.5410156 Z m -0.5625,3.5761719 a 1.4501239,1.4501239 0 0 1 0.9765625,0.171875 l 15.689453,9.0742185 a 1.4543042,1.4543042 0 0 1 0,2.519531 L 9.765625,25.957031 A 1.4501236,1.4501236 0 0 1 7.5898438,24.701172 V 6.5449219 A 1.4501239,1.4501239 0 0 1 8.7890625,5.1171875 Z" /></svg>
|
After Width: | Height: | Size: 1.1 KiB |
@ -38,5 +38,6 @@
|
|||||||
<file>scalable/tag.svg</file>
|
<file>scalable/tag.svg</file>
|
||||||
<file>scalable/export.svg</file>
|
<file>scalable/export.svg</file>
|
||||||
<file>scalable/rename.svg</file>
|
<file>scalable/rename.svg</file>
|
||||||
|
<file>scalable/launch.svg</file>
|
||||||
</qresource>
|
</qresource>
|
||||||
</RCC>
|
</RCC>
|
||||||
|
17
launcher/resources/pe_light/scalable/launch.svg
Normal file
@ -0,0 +1,17 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
||||||
|
<svg
|
||||||
|
version="1.1"
|
||||||
|
id="Calque_1"
|
||||||
|
x="0px"
|
||||||
|
y="0px"
|
||||||
|
viewBox="0 0 32 32"
|
||||||
|
enable-background="new 0 0 32 32"
|
||||||
|
xml:space="preserve"
|
||||||
|
xmlns="http://www.w3.org/2000/svg"
|
||||||
|
xmlns:svg="http://www.w3.org/2000/svg"><defs
|
||||||
|
id="defs45" />
|
||||||
|
|
||||||
|
<path
|
||||||
|
id="path11889"
|
||||||
|
style="color:#000000;fill:#f2f2f2;fill-opacity:1;stroke-width:0.999996;stroke-linecap:round;stroke-linejoin:round;paint-order:markers stroke fill"
|
||||||
|
d="M 9.3515625,1.5410156 C 9.2434916,1.5379599 9.1351286,1.5389257 9.0273438,1.5429688 6.4405077,1.6400024 3.9843749,3.7548341 3.984375,6.5449219 V 24.701172 c -8e-7,3.720117 4.367721,6.23969 7.587891,4.376953 l 15.6875,-9.074219 c 3.218964,-1.862042 3.218965,-6.899679 0,-8.761718 L 11.572266,2.1679688 C 10.867854,1.7604954 10.108059,1.5624055 9.3515625,1.5410156 Z m -0.5625,3.5761719 a 1.4501239,1.4501239 0 0 1 0.9765625,0.171875 l 15.689453,9.0742185 a 1.4543042,1.4543042 0 0 1 0,2.519531 L 9.765625,25.957031 A 1.4501236,1.4501236 0 0 1 7.5898438,24.701172 V 6.5449219 A 1.4501239,1.4501239 0 0 1 8.7890625,5.1171875 Z" /></svg>
|
After Width: | Height: | Size: 1.1 KiB |
@ -656,6 +656,7 @@ public:
|
|||||||
actionLaunchInstance->setObjectName(QStringLiteral("actionLaunchInstance"));
|
actionLaunchInstance->setObjectName(QStringLiteral("actionLaunchInstance"));
|
||||||
actionLaunchInstance.setTextId(QT_TRANSLATE_NOOP("MainWindow", "&Launch"));
|
actionLaunchInstance.setTextId(QT_TRANSLATE_NOOP("MainWindow", "&Launch"));
|
||||||
actionLaunchInstance.setTooltipId(QT_TRANSLATE_NOOP("MainWindow", "Launch the selected instance."));
|
actionLaunchInstance.setTooltipId(QT_TRANSLATE_NOOP("MainWindow", "Launch the selected instance."));
|
||||||
|
actionLaunchInstance->setIcon(APPLICATION->getThemedIcon("launch"));
|
||||||
all_actions.append(&actionLaunchInstance);
|
all_actions.append(&actionLaunchInstance);
|
||||||
|
|
||||||
actionLaunchInstanceOffline = TranslatedAction(MainWindow);
|
actionLaunchInstanceOffline = TranslatedAction(MainWindow);
|
||||||
@ -741,7 +742,9 @@ public:
|
|||||||
// See https://github.com/PolyMC/PolyMC/issues/493
|
// See https://github.com/PolyMC/PolyMC/issues/493
|
||||||
connect(instanceToolBar, &QToolBar::orientationChanged, [=](Qt::Orientation){ instanceToolBar->setOrientation(Qt::Vertical); });
|
connect(instanceToolBar, &QToolBar::orientationChanged, [=](Qt::Orientation){ instanceToolBar->setOrientation(Qt::Vertical); });
|
||||||
instanceToolBar->setAllowedAreas(Qt::LeftToolBarArea | Qt::RightToolBarArea);
|
instanceToolBar->setAllowedAreas(Qt::LeftToolBarArea | Qt::RightToolBarArea);
|
||||||
instanceToolBar->setToolButtonStyle(Qt::ToolButtonTextOnly);
|
instanceToolBar->setToolButtonStyle(Qt::ToolButtonTextBesideIcon);
|
||||||
|
instanceToolBar->setIconSize(QSize(16, 16));
|
||||||
|
|
||||||
instanceToolBar->setFloatable(false);
|
instanceToolBar->setFloatable(false);
|
||||||
instanceToolBar->setWindowTitle(QT_TRANSLATE_NOOP("MainWindow", "Instance Toolbar"));
|
instanceToolBar->setWindowTitle(QT_TRANSLATE_NOOP("MainWindow", "Instance Toolbar"));
|
||||||
|
|
||||||
@ -761,8 +764,18 @@ public:
|
|||||||
instanceToolBar->addAction(actionViewSelectedInstFolder);
|
instanceToolBar->addAction(actionViewSelectedInstFolder);
|
||||||
|
|
||||||
instanceToolBar->addAction(actionExportInstance);
|
instanceToolBar->addAction(actionExportInstance);
|
||||||
instanceToolBar->addAction(actionDeleteInstance);
|
|
||||||
instanceToolBar->addAction(actionCopyInstance);
|
instanceToolBar->addAction(actionCopyInstance);
|
||||||
|
instanceToolBar->addAction(actionDeleteInstance);
|
||||||
|
|
||||||
|
QLayout * lay = instanceToolBar->layout();
|
||||||
|
for(int i = 0; i < lay->count(); i++)
|
||||||
|
{
|
||||||
|
QLayoutItem * item = lay->itemAt(i);
|
||||||
|
if (item->widget()->metaObject()->className() == QString("QToolButton"))
|
||||||
|
{
|
||||||
|
item->setAlignment(Qt::AlignLeft);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
all_toolbars.append(&instanceToolBar);
|
all_toolbars.append(&instanceToolBar);
|
||||||
MainWindow->addToolBar(Qt::RightToolBarArea, instanceToolBar);
|
MainWindow->addToolBar(Qt::RightToolBarArea, instanceToolBar);
|
||||||
|