From 927217c7f06017db23b232f055dd5343e39d871f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Petr=20Mr=C3=A1zek?= Date: Thu, 15 May 2014 22:32:54 +0200 Subject: [PATCH] Status pills. This doesn't build yet. --- gui/MainWindow.cpp | 77 +----- gui/MainWindow.h | 9 - gui/widgets/ServerStatus.cpp | 125 +++++++++ gui/widgets/ServerStatus.h | 32 +++ resources/multimc/16x16/status-bad.png | Bin 0 -> 643 bytes resources/multimc/16x16/status-good.png | Bin 0 -> 714 bytes resources/multimc/22x22/status-bad.png | Bin 0 -> 968 bytes resources/multimc/22x22/status-good.png | Bin 0 -> 994 bytes resources/multimc/24x24/status-bad.png | Bin 0 -> 1102 bytes resources/multimc/24x24/status-good.png | Bin 0 -> 1066 bytes resources/multimc/32x32/status-bad.png | Bin 0 -> 1422 bytes resources/multimc/32x32/status-good.png | Bin 0 -> 1400 bytes resources/multimc/48x48/status-bad.png | Bin 0 -> 2389 bytes resources/multimc/48x48/status-good.png | Bin 0 -> 2248 bytes resources/multimc/64x64/status-bad.png | Bin 0 -> 2827 bytes resources/multimc/64x64/status-good.png | Bin 0 -> 2954 bytes resources/multimc/multimc.qrc | 16 ++ resources/multimc/scalable/status-bad.svg | 142 ++++++++++ resources/multimc/scalable/status-good.svg | 201 ++++++++++++++ resources/sources/status-bad.svg | 262 ------------------ resources/sources/status-good.svg | 293 --------------------- resources/sources/status-terrible.svg | 262 ------------------ 22 files changed, 518 insertions(+), 901 deletions(-) create mode 100644 gui/widgets/ServerStatus.cpp create mode 100644 gui/widgets/ServerStatus.h create mode 100644 resources/multimc/16x16/status-bad.png create mode 100644 resources/multimc/16x16/status-good.png create mode 100644 resources/multimc/22x22/status-bad.png create mode 100644 resources/multimc/22x22/status-good.png create mode 100644 resources/multimc/24x24/status-bad.png create mode 100644 resources/multimc/24x24/status-good.png create mode 100644 resources/multimc/32x32/status-bad.png create mode 100644 resources/multimc/32x32/status-good.png create mode 100644 resources/multimc/48x48/status-bad.png create mode 100644 resources/multimc/48x48/status-good.png create mode 100644 resources/multimc/64x64/status-bad.png create mode 100644 resources/multimc/64x64/status-good.png create mode 100644 resources/multimc/scalable/status-bad.svg create mode 100644 resources/multimc/scalable/status-good.svg delete mode 100644 resources/sources/status-bad.svg delete mode 100644 resources/sources/status-good.svg delete mode 100644 resources/sources/status-terrible.svg diff --git a/gui/MainWindow.cpp b/gui/MainWindow.cpp index 58491a7e..725bf175 100644 --- a/gui/MainWindow.cpp +++ b/gui/MainWindow.cpp @@ -47,6 +47,7 @@ #include "gui/Platform.h" #include "gui/widgets/LabeledToolButton.h" +#include "widgets/ServerStatus.h" #include "gui/dialogs/SettingsDialog.h" #include "gui/dialogs/NewInstanceDialog.h" @@ -216,29 +217,9 @@ MainWindow::MainWindow(QWidget *parent) : QMainWindow(parent), ui(new Ui::MainWi connect(MMC->instances().get(), SIGNAL(dataIsInvalid()), SLOT(selectionBad())); m_statusLeft = new QLabel(tr("No instance selected"), this); - m_statusRight = new QLabel(tr("No status available"), this); - m_statusRefresh = new QToolButton(this); - m_statusRefresh->setCheckable(true); - m_statusRefresh->setToolButtonStyle(Qt::ToolButtonIconOnly); - m_statusRefresh->setIcon(QIcon::fromTheme("refresh")); - + m_statusRight = new ServerStatus(this); statusBar()->addPermanentWidget(m_statusLeft, 1); statusBar()->addPermanentWidget(m_statusRight, 0); - statusBar()->addPermanentWidget(m_statusRefresh, 0); - - // Start status checker - { - connect(MMC->statusChecker().get(), &StatusChecker::statusLoaded, this, - &MainWindow::updateStatusUI); - connect(MMC->statusChecker().get(), &StatusChecker::statusLoadingFailed, this, - &MainWindow::updateStatusFailedUI); - - connect(m_statusRefresh, &QAbstractButton::clicked, this, &MainWindow::reloadStatus); - connect(&statusTimer, &QTimer::timeout, this, &MainWindow::reloadStatus); - statusTimer.setSingleShot(true); - - reloadStatus(); - } // Add "manage accounts" button, right align QWidget *spacer = new QWidget(); @@ -620,60 +601,6 @@ void MainWindow::updateNewsLabel() } } -static QString convertStatus(const QString &status) -{ - QString ret = "?"; - - if (status == "green") - ret = "↑"; - else if (status == "yellow") - ret = "-"; - else if (status == "red") - ret = "↓"; - - return "" + ret + ""; -} - -void MainWindow::reloadStatus() -{ - m_statusRefresh->setChecked(true); - MMC->statusChecker()->reloadStatus(); - // updateStatusUI(); -} - -static QString makeStatusString(const QMap statuses) -{ - QString status = ""; - status += "Web: " + convertStatus(statuses["minecraft.net"]); - status += " Account: " + convertStatus(statuses["account.mojang.com"]); - status += " Skins: " + convertStatus(statuses["skins.minecraft.net"]); - status += " Auth: " + convertStatus(statuses["authserver.mojang.com"]); - status += " Session: " + convertStatus(statuses["sessionserver.mojang.com"]); - - return status; -} - -void MainWindow::updateStatusUI() -{ - auto statusChecker = MMC->statusChecker(); - auto statuses = statusChecker->getStatusEntries(); - - QString status = makeStatusString(statuses); - m_statusRefresh->setChecked(false); - - m_statusRight->setText(status); - - statusTimer.start(60 * 1000); -} - -void MainWindow::updateStatusFailedUI() -{ - m_statusRight->setText(makeStatusString(QMap())); - m_statusRefresh->setChecked(false); - - statusTimer.start(60 * 1000); -} - void MainWindow::updateAvailable(QString repo, QString versionName, int versionId) { UpdateDialog dlg; diff --git a/gui/MainWindow.h b/gui/MainWindow.h index d610a87d..ad160da7 100644 --- a/gui/MainWindow.h +++ b/gui/MainWindow.h @@ -171,12 +171,6 @@ slots: void updateNewsLabel(); - void updateStatusUI(); - - void updateStatusFailedUI(); - - void reloadStatus(); - /*! * Runs the DownloadUpdateTask and installs updates. */ @@ -207,11 +201,8 @@ private: QLabel *m_statusLeft; QLabel *m_statusRight; - QToolButton *m_statusRefresh; QMenu *accountMenu; QToolButton *accountMenuButton; QAction *manageAccountsAction; - - QTimer statusTimer; }; diff --git a/gui/widgets/ServerStatus.cpp b/gui/widgets/ServerStatus.cpp new file mode 100644 index 00000000..1b1bb6f7 --- /dev/null +++ b/gui/widgets/ServerStatus.cpp @@ -0,0 +1,125 @@ +#include "ServerStatus.h" +#include "logic/status/StatusChecker.h" + +#include "MultiMC.h" + +#include +#include +#include +#include +#include + +ServerStatus::ServerStatus(QWidget *parent, Qt::WindowFlags f) + :QWidget(parent, f) +{ + clear(); + goodIcon = QPixmap(":/icons/multimc/48x48/status-good.png"); + goodIcon.setDevicePixelRatio(2.0); + badIcon = QPixmap(":/icons/multimc/48x48/status-bad.png"); + badIcon.setDevicePixelRatio(2.0); + addStatus(tr("No status available"), false); + m_statusRefresh = new QToolButton(this); + m_statusRefresh->setCheckable(true); + m_statusRefresh->setToolButtonStyle(Qt::ToolButtonIconOnly); + m_statusRefresh->setIcon(QIcon::fromTheme("refresh")); + // Start status checker + { + connect(MMC->statusChecker().get(), &StatusChecker::statusLoaded, this, + &ServerStatus::updateStatusUI); + connect(MMC->statusChecker().get(), &StatusChecker::statusLoadingFailed, this, + &ServerStatus::updateStatusFailedUI); + + connect(m_statusRefresh, &QAbstractButton::clicked, this, &ServerStatus::reloadStatus); + connect(&statusTimer, &QTimer::timeout, this, &ServerStatus::reloadStatus); + statusTimer.setSingleShot(true); + + reloadStatus(); + } + +} + +ServerStatus::addLine() +{ + auto line = new QFrame(this); + line->setFrameShape(QFrame::VLine); + line->setFrameShadow(QFrame::Sunken); + layout->addWidget(line); +} + +ServerStatus::addStatus(QString name, bool online) +{ + auto label = new QLabel(this); + label->setText(name); + if(online) + label->setPixmap(goodIcon); + else + label->setPixmap(badIcon); + layout->addWidget(label); +} + +ServerStatus::clear() +{ + if(layout) + delete layout; + layout = new QHBoxLayout(this); +} + +void ServerStatus::StatusChanged(QMap statusEntries) +{ + clear(); + int howmany = statusEntries.size(); + int index = 0; + auto iter = statusEntries.begin(); + while (iter != statusEntries.end()) + { + addStatus(); + index++; + } +} + +static QString convertStatus(const QString &status) +{ + QString ret = "?"; + + if (status == "green") + ret = "↑"; + else if (status == "yellow") + ret = "-"; + else if (status == "red") + ret = "↓"; + + return "" + ret + ""; +} + +void ServerStatus::reloadStatus() +{ + m_statusRefresh->setChecked(true); + MMC->statusChecker()->reloadStatus(); + // updateStatusUI(); +} + +static QString makeStatusString(const QMap statuses) +{ + QString status = ""; + status += "Web: " + convertStatus(statuses["minecraft.net"]); + status += " Account: " + convertStatus(statuses["account.mojang.com"]); + status += " Skins: " + convertStatus(statuses["skins.minecraft.net"]); + status += " Auth: " + convertStatus(statuses["authserver.mojang.com"]); + status += " Session: " + convertStatus(statuses["sessionserver.mojang.com"]); + + return status; +} + +void ServerStatus::updateStatusUI() +{ + m_statusRefresh->setChecked(false); + MMC->statusChecker()->getStatusEntries(); + statusTimer.start(60 * 1000); +} + +void ServerStatus::updateStatusFailedUI() +{ + m_statusRefresh->setChecked(false); + StatusChanged(); + statusTimer.start(60 * 1000); +} diff --git a/gui/widgets/ServerStatus.h b/gui/widgets/ServerStatus.h new file mode 100644 index 00000000..a116d3d4 --- /dev/null +++ b/gui/widgets/ServerStatus.h @@ -0,0 +1,32 @@ +#pragma once +#include +#include + +class QToolButton; +class QHBoxLayout; + +class ServerStatus: public QWidget +{ + Q_OBJECT +public: + explicit ServerStatus(QWidget *parent = nullptr, Qt::WindowFlags f = 0); + virtual ~ServerStatus() {}; +public slots: + void updateStatusUI(); + + void updateStatusFailedUI(); + + void reloadStatus(); + void StatusChanged(); + +private: /* methods */ + clear(); + addLine(); + addStatus(QString name, bool online); +private: /* data */ + QHBoxLayout * layout = nullptr; + QToolButton *m_statusRefresh = nullptr; + QPixmap goodIcon; + QPixmap badIcon; + QTimer statusTimer; +}; diff --git a/resources/multimc/16x16/status-bad.png b/resources/multimc/16x16/status-bad.png new file mode 100644 index 0000000000000000000000000000000000000000..5b3f20518930b93e40ac9245a581ef6935bff8ef GIT binary patch literal 643 zcmV-}0(||6P)Vi1P_()#(&B^6fjom<+C7N4J;B@EeX^YC<+diS{xc(9E$q#r;+RMzJwU-pa;I~ z+|@iU2YXsbSbS1<3^P30QI*5<$TAtt|jGY2bX$r@%H`T~NIzs)~rn1t^a}?hJ7FFMjO; zF^PywL2(FXPeSrIQPu#TfgRutG}$rsr|b_M5(Wl#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HJyNJX@Bos&Oi^z-JLy*i@DQJk$kU^ubI7R@4Hf8sD4- zfK1&k(=bz1$a5wH-v(h#wI-DZxTfH{5PTJezf>Mmr93bC&7oe5*$5Lrg18Gi+5=$O zfIm&B8UQ7lGA5JN?oZQ}iEMui%gKN{f>LRObi4X_MCQSmL;H%7_kK+O26iBv2_%}y QssI2007*qoM6N<$f?}r2hyVZp literal 0 HcmV?d00001 diff --git a/resources/multimc/24x24/status-bad.png b/resources/multimc/24x24/status-bad.png new file mode 100644 index 0000000000000000000000000000000000000000..d1547a4744ae6b20201a74267c5ac1b71b364704 GIT binary patch literal 1102 zcmV-U1hM;xP)(^b8FWQhbW?9;ba!ELWdL_~cP?peYja~^ zaAhuUa%Y?FJQ@H11ItN7K~zYIwU%FKTXhu2KfjxM=XSNuR*W*H;vXDiNJ`V{47=J2 zKJD3;JV+hPE(%-07S{Gbq09uVEaH?lpcZ8c+d~oQQ&AkW+p=b^-4Lfv)G?>dtgF-& zm*34jKHQu1HcjSUJaD<;p5OU?&)?sP5)m57$4W&#=+Mw!g1Clu4Y*Kn;k1UrGR(dy za-|W5sz;Dh%4&fj7X~$0W#Bg8cAyLtgQo;&&>9Xb!W&~E`acP#lxn>J;~HYkz&(Hs zs2W2LSOm@k=X|31GISplnQKV!nNlxDAZvlO3215*ca8iCdpv$UYB}0(l8`MxKSF0iBPt z(ux*vxme`e_3PQ5NMM>K+Y<@SD8&ZHp>O|wOw+`5T@GclG#@!aLhGvi2H=z*?e~!` zcy%Lec{G$`1+;0+Og_&UrB;z7cI>Evk7P1jOQ-2sUar=zV*i8R1WS>p;jPWkw7I5B zjDTdihQu(8D)>Sj@QVBa{04U#Zcw=YOCnFfGr*RuHHvVzgmdnB-m03+wLZl7;0(uRIJQN&Q2ShJkWc1P{ zoX$=TWwX_8X%BVR)@|G9+q;+NCntF%l!4>GWzYunAtLO7*IxlS78;fxK@JB4*KgZ$ zA*8zi(r??+13u}4YY)0B+pTK*p~##Iz2AV&0YBFP zZ6v<{?*r$3@ZMZ#tF2j?FDlgvj4OzB0B!hdvtEk+1m=LR0fBj-J9o2{S&<&4tP%|2 z-|3bK+zV_9^uGgF@P|=A3mh(^b8FWQhbW?9;ba!ELWdL_~cP?peYja~^ zaAhuUa%Y?FJQ@H11E)zuK~zYIot8~#TvZgufA_w5Gx?Y#PDzGn1=Cgxk%0s<)9NZ+ zBp?G;sC!AXuxJso6B5ylX|y61nwU0V92AwJh(*lCjo?C(nL!ssLgX~#$sBjAz4ldBlXv1YRJ z!SX^$#$EzyRJj~z?8lQn3@)C9kOvVDe1SzLSOvg{!N>rMi)ZDMn0*D*k59I-VKW$7 zsaS>R8iYMi|Jy0RvIDmxFcSeIQ}}etM|ZB36i`{8jW)BiG!q`O)>NC3`6e??f>SRHWh(Y{gcD7if1UO z<22t3g6d$pahe++-k`H%Tja!xCpdEWNO^DzOjLs9D~+)^Hh`tz*wMgY7(Y2q&zTAm;B~igz6N-G!TB5SaqoEu$-? zN9NYU)5@h#+YizQxHtq?zrh9p|2Xik6NrcyL~)Nl@)T^1dqv kauv}ztj)@2rGH!g1GoR@@u}sCEdT%j07*qoM6N<$f_OCNhX4Qo literal 0 HcmV?d00001 diff --git a/resources/multimc/32x32/status-bad.png b/resources/multimc/32x32/status-bad.png new file mode 100644 index 0000000000000000000000000000000000000000..8c2c9d4f7852a6ec135b9134521dc221d68ccb24 GIT binary patch literal 1422 zcmV;91#$X`P)J8MWuo6pvDjVpCtp5^e-7^}A> z;I$CCu5j=M`|EVq(1lN-2Omdgik-y_{*8CjXDVo>#?fhxoQiR_Z2_-_us(3EPJaz| z;;vLcJN5zIz+W{ZQki4ti5TCzseq9X?hm}0r?&&WxT8(tR(lVB!25}asd*lGF~&cy zDBzbNtk3aAp59Ml13GS#ykWEW9saQ(;(=@=a*f655V~qf*n8LDo@L0}sh3tv7j~eS zkoDr+o)DU+*%S~sSff9Wjmh^#PG=9-~~F5^WjUxw}^kweBL2GLwvMcjuR6TF~%4tCMM#JaydSe;@?U!J6bT0 zrkHnHe7;G1g1DCtpQ6(b*?yFGrUm#n;(6khQYls{m6)}Lh^L89w~#liQmMo(rBXbf z`pWt~O#Bw{akl5b#CNgv9(*Pfu7GaLT)ymA)v5;v2K4kK2h`Kk!-|fZ6jME0-N#h6qc3dvb8l zrqNMfPm?cOQ80;L;071+5A(gqx-AxZdo~Ik*n)puyy)!s_>xF8*6otRJl;%}bGgP} z>Y8PM4H0Xw8-1gr_6-g;cfM#>lauxh4(b~nwR;tE_{74p&{5Z3hx>n7E*&IXTLI9> zgJE1MmzN}5!-~bC6GKBTmCJ@L?EzW4y0EO~=96j0%qrxoC1LhBip8SiLqo<^Xhc~7 z5%W}YbIBOxpUVK}EOfZ#$oCBnF3E|8h(7H~b&Cz=|zG~$b-L73v$=^-L zr{;LzRAwk$GM4WN;r^J88v-4Ct7n6*LuE4>_esl+XPEw{DB)6r;zuMLGGl6l*g(USl6FFMH)vH<7 zc85^tNCwDVDR1(k#fg?JNlBx7xr4(eZ})QAYTpi_^8>c!cuaCCg_u;FkW^n4WAlvk c+`{$ze}B8NDK>hd&j0`b07*qoM6N<$f;%L+(*OVf literal 0 HcmV?d00001 diff --git a/resources/multimc/32x32/status-good.png b/resources/multimc/32x32/status-good.png new file mode 100644 index 0000000000000000000000000000000000000000..1a805e68ba793bb6bed79fcef67bed49d0a76678 GIT binary patch literal 1400 zcmV-;1&8{HP)00(nb_7#j0Z2(&0vA8P0a6hRUyMSRdA7>tciqJ0qjpi8%YG--B| z-R$n%IX=v6vYW4NwmmT1yEAw0?|;udbM{;%BGh8)-2NcZg(Dc%gOLs#;y4n=2sos1 zB#q$~My8mb|3=PAp{98sBtU%;i&M0RG17}8O*r5~S6fHG_^tOli{UcM)`*P%o32ZM zy0I@rwlG9V`Y}Xs1nd$-3J@+qz(BwS0g4(58s==c8-O{hEGUN~{GoiIF4@(2$3gMF==sdTYg&Eci7HsetblnW5+$laChfK2U&~YVSnp>sTbv2Ab|e zL$NmSTDxb%j}gdda3qDRk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OvnrKh?=;{+a-UZOI2x{|;qGp85R%tg+@{oa3w~-L z+W#8CaltF{hmhd%F(i&mmkfID_;ti7EF*Z^fcX4hknR4t@W?T(JG|fX2y9j=vI$5S{67O zu4rfq(tODT0GgGmc7;S;W+2kV`xN3rKQKe!!@xg)KO?Ry6YpWm%~ z+DP6u%l$r`Xc*OSa1su6->SbF6v|dPQ)omw+YQKZmj5LFms3Emh8`ErJbSzT?BOSy zm8z(MjT+W#s8P}`sv&#Oa~b)Y&1D6H3eJwg%O~gH?>7GfUg01ULnu{l00000NkvXX Hu0mjf={`>Z literal 0 HcmV?d00001 diff --git a/resources/multimc/48x48/status-good.png b/resources/multimc/48x48/status-good.png new file mode 100644 index 0000000000000000000000000000000000000000..df7cb59b6166081381b1cf24a61bb879f432240d GIT binary patch literal 2248 zcmV;(2sihMP)M548^gHch~FPnS1+iXLe`(ZSO8U(r9N#Gjsp{bI;d3cZ5=kVnv);QOQttGg7wT zsCuLkN6LB};z$J!eMowd^kLJBk{>V}xu{mcZM+1+AfH)D05EA=v)P5vY<3JUjk0&uTnFO{vhzcH3 z2m6y{At25OlR({WlsbSzYy!YQ79tr4+EC#@KnATE3*PS)2ZK@=ao3PcLH9fTVpu%(u)nSeMO--+NP1|R@KLd_spnbHCuFApo= zQUp>WZ>o;^fjT@niAf2FGj+`f-p3$>As}Ew?U!KA(az^9DFgl6A~w45i;si3}P6-vLw{bDJjk$d;+)w+yK4(>^m-dzPJfIjq$cr&qfOwWd% zg&3jHecme!0C9ME6e;%S>XapAi1Sl{|0h_lS?qdt7cX_ZMB}YScn7%WBVhthj^$^> zV83Wz5X})lW?GR{A%S2P7Ns9M_`Q4g($>~SM@PrxBvxl&q2rOL!eVQlfTOnNlE(iD zd_zM6fk1#A+jkU_xQ}*h0jzOP1Rz8!fZ)~Tm5_djAdCU5AB13;BF{A7{gTaQId%FJ zot>TZJkkaU5S5PX65*Y-dw5F+ou%WeIu|F;-O>T?>cw5JE3K|9tl z;AgQ0mc(TxEA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+y^K<@*2z)AKB7CT6%m^qN(;OmgFC9s57a=ylz|8MXUs0EE3{)T z($bZ?$P=KCogR`0;@fcerBy)Sy@*XJTvKI~vkDS`sRMu6f%l49AKjMA3ql|@23#80 z%dGfT42$#e^H&;RO$|B13M2qi10LX&SaGQS1eXT(`iqQOBP8FBuSMi=V1>of6nw76 zWXVJ_y7iDZqHx@o4pTsNoj%?lSXW$fk(7LE#-9;gl_$Uf)(qL~N-a{a$Z@UmQ3zga zEVRA?Do6G4zAqLR4He%2KxGr?-+?)Rt>|b2tQ~|IHDo>f!(kaVT?OOI9aJlQj@8u< z9?oH8Q>o(Rm&x59Uy1M{B9VMgh#OcxXp@b#h{1-`avzytEcNvUpAvYksj$o*>@qoY zjXqYxGC2T!vi~KrblRMO7c#%>z@a9~axLOuK{t3uc&vXOr}R0cz=LXMIq*=;TH$ZR ze`*&=Q&=q;QTS34Zn#R8&HXn7e`zSJ0x1x%OCP`d-LYP++zvwn51~98*cXrjdKwF> zE~Zmnk6MG5lAy&mJWF5yLzP~yZn^vhacOMXiLlk)@Etc~Vfk=v#<3o9*@0s*+xigf z_OOe-IxUwE6y6*!Y?uH7)8wKNxIGn2KTU=Vi4APL8!7JY-nwAz)F;X>jxLtkx6Irh zw_9d%QzR6K2r1k$0!z{mt1}TPfwv;?X2kmTISEX4dXGL?-r$vz@ok#==FA0Tv-^Nm z!3W;21I)|9Co}Mg477}Mcnmo3VF*49!^dv0#qpo(QPka}PfWq4sldzk#n+OV+acOSZ zjItd_lrB`odC8k4bhEd5QMPeqV0t%B1}b`>t&x#|Ef_W;ETs&*!V49yi$ziFXVn41 zEnWUk+KI^IY@XiK*oNb-L&R>LwqE~uB!zGU)kB!NX|Mf{~dZlOAWdHyG07*qoM6N<$f~@vm A^Z)<= literal 0 HcmV?d00001 diff --git a/resources/multimc/multimc.qrc b/resources/multimc/multimc.qrc index d3068ff4..1df22c29 100644 --- a/resources/multimc/multimc.qrc +++ b/resources/multimc/multimc.qrc @@ -87,6 +87,22 @@ 48x48/news.png 64x64/news.png + + 16x16/status-bad.png + 24x24/status-bad.png + 22x22/status-bad.png + 32x32/status-bad.png + 48x48/status-bad.png + 64x64/status-bad.png + + + 16x16/status-good.png + 24x24/status-good.png + 22x22/status-good.png + 32x32/status-good.png + 48x48/status-good.png + 64x64/status-good.png + 16x16/refresh.png 22x22/refresh.png diff --git a/resources/multimc/scalable/status-bad.svg b/resources/multimc/scalable/status-bad.svg new file mode 100644 index 00000000..9f47307e --- /dev/null +++ b/resources/multimc/scalable/status-bad.svg @@ -0,0 +1,142 @@ + + + + + + + + + + + + + + + + + + + + image/svg+xml + + + + + + + + + + + + + diff --git a/resources/multimc/scalable/status-good.svg b/resources/multimc/scalable/status-good.svg new file mode 100644 index 00000000..0a35c80f --- /dev/null +++ b/resources/multimc/scalable/status-good.svg @@ -0,0 +1,201 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + image/svg+xml + + + + + + + + + + + + + diff --git a/resources/sources/status-bad.svg b/resources/sources/status-bad.svg deleted file mode 100644 index 54334e06..00000000 --- a/resources/sources/status-bad.svg +++ /dev/null @@ -1,262 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - image/svg+xml - - - - - - - - - - - - - - - - diff --git a/resources/sources/status-good.svg b/resources/sources/status-good.svg deleted file mode 100644 index 3b311806..00000000 --- a/resources/sources/status-good.svg +++ /dev/null @@ -1,293 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - image/svg+xml - - - - - - - - - - - - - - - - diff --git a/resources/sources/status-terrible.svg b/resources/sources/status-terrible.svg deleted file mode 100644 index b0de7bfd..00000000 --- a/resources/sources/status-terrible.svg +++ /dev/null @@ -1,262 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - image/svg+xml - - - - - - - - - - - - - - - -