GH-1238 add reddit button
This commit is contained in:
parent
ccb5fc6f4a
commit
00994a425e
@ -56,6 +56,7 @@ public:
|
|||||||
QAction *actionDeleteInstance;
|
QAction *actionDeleteInstance;
|
||||||
QAction *actionConfig_Folder;
|
QAction *actionConfig_Folder;
|
||||||
QAction *actionCAT;
|
QAction *actionCAT;
|
||||||
|
QAction *actionREDDIT;
|
||||||
QAction *actionCopyInstance;
|
QAction *actionCopyInstance;
|
||||||
QAction *actionManageAccounts;
|
QAction *actionManageAccounts;
|
||||||
QAction *actionLaunchInstanceOffline;
|
QAction *actionLaunchInstanceOffline;
|
||||||
@ -134,6 +135,9 @@ public:
|
|||||||
actionCAT->setObjectName(QStringLiteral("actionCAT"));
|
actionCAT->setObjectName(QStringLiteral("actionCAT"));
|
||||||
actionCAT->setCheckable(true);
|
actionCAT->setCheckable(true);
|
||||||
actionCAT->setIcon(MMC->getThemedIcon("cat"));
|
actionCAT->setIcon(MMC->getThemedIcon("cat"));
|
||||||
|
actionREDDIT = new QAction(MainWindow);
|
||||||
|
actionREDDIT->setObjectName(QStringLiteral("actionREDDIT"));
|
||||||
|
actionREDDIT->setIcon(MMC->getThemedIcon("reddit-alien"));
|
||||||
actionCopyInstance = new QAction(MainWindow);
|
actionCopyInstance = new QAction(MainWindow);
|
||||||
actionCopyInstance->setObjectName(QStringLiteral("actionCopyInstance"));
|
actionCopyInstance->setObjectName(QStringLiteral("actionCopyInstance"));
|
||||||
actionCopyInstance->setIcon(MMC->getThemedIcon("copy"));
|
actionCopyInstance->setIcon(MMC->getThemedIcon("copy"));
|
||||||
@ -197,6 +201,7 @@ public:
|
|||||||
mainToolBar->addAction(actionAbout);
|
mainToolBar->addAction(actionAbout);
|
||||||
mainToolBar->addSeparator();
|
mainToolBar->addSeparator();
|
||||||
mainToolBar->addAction(actionPatreon);
|
mainToolBar->addAction(actionPatreon);
|
||||||
|
mainToolBar->addAction(actionREDDIT);
|
||||||
mainToolBar->addAction(actionCAT);
|
mainToolBar->addAction(actionCAT);
|
||||||
instanceToolBar->addAction(actionChangeInstIcon);
|
instanceToolBar->addAction(actionChangeInstIcon);
|
||||||
instanceToolBar->addAction(actionLaunchInstance);
|
instanceToolBar->addAction(actionLaunchInstance);
|
||||||
@ -283,6 +288,8 @@ public:
|
|||||||
actionConfig_Folder->setToolTip(QApplication::translate("MainWindow", "Open the instance's config folder", 0));
|
actionConfig_Folder->setToolTip(QApplication::translate("MainWindow", "Open the instance's config folder", 0));
|
||||||
actionCAT->setText(QApplication::translate("MainWindow", "Meow", 0));
|
actionCAT->setText(QApplication::translate("MainWindow", "Meow", 0));
|
||||||
actionCAT->setToolTip(QApplication::translate("MainWindow", "<html><head/><body><p align=\"center\">It's a fluffy kitty :3</p></body></html>", 0));
|
actionCAT->setToolTip(QApplication::translate("MainWindow", "<html><head/><body><p align=\"center\">It's a fluffy kitty :3</p></body></html>", 0));
|
||||||
|
actionREDDIT->setText(QApplication::translate("MainWindow", "Reddit", 0));
|
||||||
|
actionREDDIT->setToolTip(QApplication::translate("MainWindow", "Open MultiMC subreddit", 0));
|
||||||
actionCopyInstance->setText(QApplication::translate("MainWindow", "Copy Instance", 0));
|
actionCopyInstance->setText(QApplication::translate("MainWindow", "Copy Instance", 0));
|
||||||
actionCopyInstance->setToolTip(QApplication::translate("MainWindow", "Copy the selected instance.", 0));
|
actionCopyInstance->setToolTip(QApplication::translate("MainWindow", "Copy the selected instance.", 0));
|
||||||
actionCopyInstance->setStatusTip(QApplication::translate("MainWindow", "Add a new instance.", 0));
|
actionCopyInstance->setStatusTip(QApplication::translate("MainWindow", "Add a new instance.", 0));
|
||||||
@ -1234,6 +1241,12 @@ void MainWindow::on_actionAddInstance_triggered()
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void MainWindow::on_actionREDDIT_triggered()
|
||||||
|
{
|
||||||
|
openWebPage(QUrl("https://www.reddit.com/r/MultiMC/"));
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
void MainWindow::on_actionCopyInstance_triggered()
|
void MainWindow::on_actionCopyInstance_triggered()
|
||||||
{
|
{
|
||||||
if (!m_selectedInstance)
|
if (!m_selectedInstance)
|
||||||
|
@ -65,6 +65,8 @@ slots:
|
|||||||
|
|
||||||
void on_actionAddInstance_triggered();
|
void on_actionAddInstance_triggered();
|
||||||
|
|
||||||
|
void on_actionREDDIT_triggered();
|
||||||
|
|
||||||
void on_actionCopyInstance_triggered();
|
void on_actionCopyInstance_triggered();
|
||||||
|
|
||||||
void on_actionChangeInstGroup_triggered();
|
void on_actionChangeInstGroup_triggered();
|
||||||
|
@ -8,6 +8,9 @@
|
|||||||
<!-- OK console icon. Our own -->
|
<!-- OK console icon. Our own -->
|
||||||
<file>scalable/console.svg</file>
|
<file>scalable/console.svg</file>
|
||||||
|
|
||||||
|
<!-- REDDIT logo icon, needs reddit license! -->
|
||||||
|
<file>scalable/reddit-alien.svg</file>
|
||||||
|
|
||||||
<!-- ERROR console icon. Our own -->
|
<!-- ERROR console icon. Our own -->
|
||||||
<file>scalable/console_error.svg</file>
|
<file>scalable/console_error.svg</file>
|
||||||
|
|
||||||
|
189
application/resources/multimc/scalable/reddit-alien.svg
Normal file
189
application/resources/multimc/scalable/reddit-alien.svg
Normal file
@ -0,0 +1,189 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
||||||
|
<!-- Generator: Adobe Illustrator 13.0.1, SVG Export Plug-In . SVG Version: 6.00 Build 14948) -->
|
||||||
|
|
||||||
|
<svg
|
||||||
|
xmlns:dc="http://purl.org/dc/elements/1.1/"
|
||||||
|
xmlns:cc="http://creativecommons.org/ns#"
|
||||||
|
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
|
||||||
|
xmlns:svg="http://www.w3.org/2000/svg"
|
||||||
|
xmlns="http://www.w3.org/2000/svg"
|
||||||
|
xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
|
||||||
|
xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
|
||||||
|
version="1.1"
|
||||||
|
x="0px"
|
||||||
|
y="0px"
|
||||||
|
width="360"
|
||||||
|
height="360"
|
||||||
|
viewBox="0 0 360 360.00001"
|
||||||
|
enable-background="new 0 0 120 40"
|
||||||
|
xml:space="preserve"
|
||||||
|
id="svg21775"
|
||||||
|
inkscape:version="0.91 r13725"
|
||||||
|
sodipodi:docname="reddit-alien.svg"
|
||||||
|
inkscape:export-filename="/home/chromakode/Documents/code/reddit/reddit-about/reddit_about/public/static/about/assets/reddit-alien.png"
|
||||||
|
inkscape:export-xdpi="184.19029"
|
||||||
|
inkscape:export-ydpi="184.19029"><metadata
|
||||||
|
id="metadata21839"><rdf:RDF><cc:Work
|
||||||
|
rdf:about=""><dc:format>image/svg+xml</dc:format><dc:type
|
||||||
|
rdf:resource="http://purl.org/dc/dcmitype/StillImage" /><dc:title></dc:title></cc:Work></rdf:RDF></metadata><defs
|
||||||
|
id="defs21837" /><sodipodi:namedview
|
||||||
|
pagecolor="#ffffff"
|
||||||
|
bordercolor="#666666"
|
||||||
|
borderopacity="1"
|
||||||
|
objecttolerance="10"
|
||||||
|
gridtolerance="10"
|
||||||
|
guidetolerance="10"
|
||||||
|
inkscape:pageopacity="0"
|
||||||
|
inkscape:pageshadow="2"
|
||||||
|
inkscape:window-width="1680"
|
||||||
|
inkscape:window-height="1030"
|
||||||
|
id="namedview21835"
|
||||||
|
showgrid="false"
|
||||||
|
inkscape:zoom="0.70710678"
|
||||||
|
inkscape:cx="48.338935"
|
||||||
|
inkscape:cy="66.337626"
|
||||||
|
inkscape:window-x="1678"
|
||||||
|
inkscape:window-y="-3"
|
||||||
|
inkscape:window-maximized="1"
|
||||||
|
inkscape:current-layer="svg21775"
|
||||||
|
fit-margin-top="0"
|
||||||
|
fit-margin-left="0"
|
||||||
|
fit-margin-right="0"
|
||||||
|
fit-margin-bottom="0"
|
||||||
|
showguides="false" /><g
|
||||||
|
id="Layer_2"
|
||||||
|
transform="matrix(12.584949,0,0,12.584949,-584.34689,27.734702)"><circle
|
||||||
|
cx="49.683998"
|
||||||
|
cy="11.836"
|
||||||
|
r="2.7019999"
|
||||||
|
id="circle21800"
|
||||||
|
style="fill:#ffffff;stroke:#000000;stroke-width:1.10000002" /><circle
|
||||||
|
cx="71.786003"
|
||||||
|
cy="11.836"
|
||||||
|
r="2.7019999"
|
||||||
|
id="circle21802"
|
||||||
|
style="fill:#ffffff;stroke:#000000;stroke-width:1.10000002" /><path
|
||||||
|
d="m 68.226,2.352 c 0,0 0,0 -5.404,-1.272 l -1.986,6.278"
|
||||||
|
id="path21804"
|
||||||
|
inkscape:connector-curvature="0"
|
||||||
|
style="fill:none;stroke:#000000;stroke-width:1.10000002;stroke-linecap:round;stroke-linejoin:round" /><circle
|
||||||
|
cx="70.431"
|
||||||
|
cy="2.789"
|
||||||
|
r="2.1300001"
|
||||||
|
id="circle21808"
|
||||||
|
style="fill:#ffffff;stroke:#000000;stroke-width:1.10000002" /><ellipse
|
||||||
|
cx="60.675999"
|
||||||
|
cy="15.552"
|
||||||
|
rx="12.238"
|
||||||
|
ry="7.987"
|
||||||
|
id="ellipse21820"
|
||||||
|
style="fill:#ffffff;stroke:#000000;stroke-width:1.10000002" /><g
|
||||||
|
id="g21824"><path
|
||||||
|
style="fill:#ff4500;stroke:none"
|
||||||
|
d="m 135.90625,159.65625 c -13.67995,0 -25.15625,11.4763 -25.15625,25.15625 0,13.67995 11.4763,24.78125 25.15625,24.78125 13.67995,0 24.78125,-11.1013 24.78125,-24.78125 0,-13.67995 -11.1013,-25.15625 -24.78125,-25.15625 z"
|
||||||
|
transform="matrix(0.07946,0,0,0.07946,45.637601,-0.68559946)"
|
||||||
|
id="circle21826"
|
||||||
|
inkscape:connector-curvature="0" /><path
|
||||||
|
style="fill:#ff4500;stroke:none"
|
||||||
|
d="m 244.46875,159.65625 c -13.68691,0 -25.1875,11.46934 -25.1875,25.15625 0,13.68691 11.50059,24.78125 25.1875,24.78125 13.68692,0 24.78125,-11.09434 24.78125,-24.78125 0,-13.68691 -11.09433,-25.15625 -24.78125,-25.15625 z"
|
||||||
|
transform="matrix(0.07946,0,0,0.07946,45.637601,-0.68559946)"
|
||||||
|
id="circle21828"
|
||||||
|
inkscape:connector-curvature="0" /><path
|
||||||
|
d="m 56.507,19.229 c 1.066,1.066 2.786,1.271 4.212,1.271"
|
||||||
|
id="path21830"
|
||||||
|
inkscape:connector-curvature="0"
|
||||||
|
style="fill:none;stroke:#000000;stroke-width:1.10000002;stroke-linecap:round" /><path
|
||||||
|
d="M 64.963,19.229 C 63.896,20.295 62.177,20.5 60.75,20.5"
|
||||||
|
id="path21832"
|
||||||
|
inkscape:connector-curvature="0"
|
||||||
|
style="fill:none;stroke:#000000;stroke-width:1.10000002;stroke-linecap:round" /></g><circle
|
||||||
|
style="fill:#ffffff;stroke:#000000;stroke-width:1.10000002"
|
||||||
|
id="circle4162"
|
||||||
|
r="2.7019999"
|
||||||
|
cy="11.836"
|
||||||
|
cx="49.683998" /><circle
|
||||||
|
style="fill:#ffffff;stroke:#000000;stroke-width:1.10000002"
|
||||||
|
id="circle4164"
|
||||||
|
r="2.7019999"
|
||||||
|
cy="11.836"
|
||||||
|
cx="71.786003" /><path
|
||||||
|
style="fill:none;stroke:#000000;stroke-width:1.10000002;stroke-linecap:round;stroke-linejoin:round"
|
||||||
|
inkscape:connector-curvature="0"
|
||||||
|
id="path4166"
|
||||||
|
d="m 68.226,2.352 c 0,0 0,0 -5.404,-1.272 l -1.986,6.278" /><circle
|
||||||
|
style="fill:#ffffff;stroke:#000000;stroke-width:1.10000002"
|
||||||
|
id="circle4168"
|
||||||
|
r="2.1300001"
|
||||||
|
cy="2.789"
|
||||||
|
cx="70.431" /><ellipse
|
||||||
|
style="fill:#ffffff;stroke:#000000;stroke-width:1.10000002"
|
||||||
|
id="ellipse4170"
|
||||||
|
ry="7.987"
|
||||||
|
rx="12.238"
|
||||||
|
cy="15.552"
|
||||||
|
cx="60.675999" /><g
|
||||||
|
id="g4172"><path
|
||||||
|
inkscape:connector-curvature="0"
|
||||||
|
id="path4174"
|
||||||
|
transform="matrix(0.07946,0,0,0.07946,45.637601,-0.68559946)"
|
||||||
|
d="m 135.90625,159.65625 c -13.67995,0 -25.15625,11.4763 -25.15625,25.15625 0,13.67995 11.4763,24.78125 25.15625,24.78125 13.67995,0 24.78125,-11.1013 24.78125,-24.78125 0,-13.67995 -11.1013,-25.15625 -24.78125,-25.15625 z"
|
||||||
|
style="fill:#ff4500;stroke:none" /><path
|
||||||
|
inkscape:connector-curvature="0"
|
||||||
|
id="path4176"
|
||||||
|
transform="matrix(0.07946,0,0,0.07946,45.637601,-0.68559946)"
|
||||||
|
d="m 244.46875,159.65625 c -13.68691,0 -25.1875,11.46934 -25.1875,25.15625 0,13.68691 11.50059,24.78125 25.1875,24.78125 13.68692,0 24.78125,-11.09434 24.78125,-24.78125 0,-13.68691 -11.09433,-25.15625 -24.78125,-25.15625 z"
|
||||||
|
style="fill:#ff4500;stroke:none" /><path
|
||||||
|
style="fill:none;stroke:#000000;stroke-width:1.10000002;stroke-linecap:round"
|
||||||
|
inkscape:connector-curvature="0"
|
||||||
|
id="path4178"
|
||||||
|
d="m 56.507,19.229 c 1.066,1.066 2.786,1.271 4.212,1.271" /><path
|
||||||
|
style="fill:none;stroke:#000000;stroke-width:1.10000002;stroke-linecap:round"
|
||||||
|
inkscape:connector-curvature="0"
|
||||||
|
id="path4180"
|
||||||
|
d="M 64.963,19.229 C 63.896,20.295 62.177,20.5 60.75,20.5" /></g><circle
|
||||||
|
cx="49.683998"
|
||||||
|
cy="11.836"
|
||||||
|
r="2.7019999"
|
||||||
|
id="circle4182"
|
||||||
|
style="fill:#ffffff;stroke:#000000;stroke-width:1.10000002" /><circle
|
||||||
|
cx="71.786003"
|
||||||
|
cy="11.836"
|
||||||
|
r="2.7019999"
|
||||||
|
id="circle4184"
|
||||||
|
style="fill:#ffffff;stroke:#000000;stroke-width:1.10000002" /><path
|
||||||
|
d="m 68.226,2.352 c 0,0 0,0 -5.404,-1.272 l -1.986,6.278"
|
||||||
|
id="path4186"
|
||||||
|
inkscape:connector-curvature="0"
|
||||||
|
style="fill:none;stroke:#000000;stroke-width:1.10000002;stroke-linecap:round;stroke-linejoin:round" /><circle
|
||||||
|
cx="70.431"
|
||||||
|
cy="2.789"
|
||||||
|
r="2.1300001"
|
||||||
|
id="circle4188"
|
||||||
|
style="fill:#ffffff;stroke:#000000;stroke-width:1.10000002" /><ellipse
|
||||||
|
cx="60.675999"
|
||||||
|
cy="15.552"
|
||||||
|
rx="12.238"
|
||||||
|
ry="7.987"
|
||||||
|
id="ellipse4190"
|
||||||
|
style="fill:#ffffff;stroke:#000000;stroke-width:1.10000002" /><g
|
||||||
|
id="g4192"><path
|
||||||
|
style="fill:#ff4500;stroke:none"
|
||||||
|
d="m 135.90625,159.65625 c -13.67995,0 -25.15625,11.4763 -25.15625,25.15625 0,13.67995 11.4763,24.78125 25.15625,24.78125 13.67995,0 24.78125,-11.1013 24.78125,-24.78125 0,-13.67995 -11.1013,-25.15625 -24.78125,-25.15625 z"
|
||||||
|
transform="matrix(0.07946,0,0,0.07946,45.637601,-0.68559946)"
|
||||||
|
id="path4194"
|
||||||
|
inkscape:connector-curvature="0" /><path
|
||||||
|
style="fill:#ff4500;stroke:none"
|
||||||
|
d="m 244.46875,159.65625 c -13.68691,0 -25.1875,11.46934 -25.1875,25.15625 0,13.68691 11.50059,24.78125 25.1875,24.78125 13.68692,0 24.78125,-11.09434 24.78125,-24.78125 0,-13.68691 -11.09433,-25.15625 -24.78125,-25.15625 z"
|
||||||
|
transform="matrix(0.07946,0,0,0.07946,45.637601,-0.68559946)"
|
||||||
|
id="path4196"
|
||||||
|
inkscape:connector-curvature="0" /><path
|
||||||
|
d="m 56.507,19.229 c 1.066,1.066 2.786,1.271 4.212,1.271"
|
||||||
|
id="path4198"
|
||||||
|
inkscape:connector-curvature="0"
|
||||||
|
style="fill:none;stroke:#000000;stroke-width:1.10000002;stroke-linecap:round" /><path
|
||||||
|
d="M 64.963,19.229 C 63.896,20.295 62.177,20.5 60.75,20.5"
|
||||||
|
id="path4200"
|
||||||
|
inkscape:connector-curvature="0"
|
||||||
|
style="fill:none;stroke:#000000;stroke-width:1.10000002;stroke-linecap:round" /></g></g><g
|
||||||
|
id="Layer_3"
|
||||||
|
transform="translate(-56.49872,330.00079)" /></svg>
|
After Width: | Height: | Size: 8.6 KiB |
Loading…
Reference in New Issue
Block a user