Merge pull request #1711 from defnax/updated-tray-menu-icons

Updated tray menu icons
This commit is contained in:
csoler 2019-11-23 09:54:35 +01:00 committed by GitHub
commit 25ae64a906
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
15 changed files with 140 additions and 19 deletions

2
.gitignore vendored
View File

@ -11,4 +11,4 @@ Makefile*
Thumbs.db
*.pro.user
.kdev4
*.kdev4
*.kdev4

View File

@ -71,14 +71,14 @@
#define IMAGE_CREATE ""
#define IMAGE_PUBLIC ":/icons/png/chats.png"
#define IMAGE_PRIVATE ":/icons/png/chats-private.png"
#define IMAGE_SUBSCRIBE ":/images/edit_add24.png"
#define IMAGE_UNSUBSCRIBE ":/images/cancel.png"
#define IMAGE_SUBSCRIBE ":/icons/png/enter.png"
#define IMAGE_UNSUBSCRIBE ":/icons/png/leave2.png"
#define IMAGE_PEER_ENTERING ":images/user/add_user24.png"
#define IMAGE_PEER_LEAVING ":images/user/remove_user24.png"
#define IMAGE_TYPING ":images/typing.png"
#define IMAGE_TYPING ":images/typing.png"
#define IMAGE_MESSAGE ":images/chat.png"
#define IMAGE_AUTOSUBSCRIBE ":images/accepted16.png"
#define IMAGE_COPYRSLINK ":/images/copyrslink.png"
#define IMAGE_COPYRSLINK ":/icons/png/copy.png"
ChatLobbyWidget::ChatLobbyWidget(QWidget *parent, Qt::WindowFlags flags)
: RsAutoUpdatePage(5000, parent, flags)

View File

@ -121,8 +121,11 @@
#include <unistd.h>
#define IMAGE_QUIT ":/icons/png/exit.png"
#define IMAGE_PREFERENCES ":/icons/png/options.png"
#define IMAGE_PREFERENCES ":/icons/png/options2.png"
#define IMAGE_ABOUT ":/icons/png/info.png"
#define IMAGE_STATS ":/icons/png/netgraph2.png"
#define IMAGE_CLOSE ":/icons/png/exit2.png"
#define IMAGE_ADDFRIEND ":/icons/png/invite.png"
#define IMAGE_RETROSHARE ":/icons/logo_128.png"
#define IMAGE_NOONLINE ":/icons/logo_0_connected_128.png"
@ -130,9 +133,8 @@
#define IMAGE_TWOONLINE ":/icons/logo_2_connected_128.png"
#define IMAGE_OVERLAY ":/icons/star_overlay_128.png"
#define IMAGE_BWGRAPH ":/images/ksysguard.png"
#define IMAGE_BWGRAPH ":/icons/png/bandwidth.png"
#define IMAGE_MESSENGER ":/images/rsmessenger48.png"
#define IMAGE_CLOSE ":/images/close_normal.png"
#define IMAGE_BLOCK ":/images/blockdevice.png"
#define IMAGE_COLOR ":/images/highlight.png"
#define IMAGE_GAMES ":/images/kgames.png"
@ -146,7 +148,6 @@
#define IMAGE_PLUGINS ":/images/extension_32.png"
#define IMAGE_BLOGS ":/images/kblogger.png"
#define IMAGE_DHT ":/images/dht16.png"
/*static*/ bool MainWindow::hiddenmode = false;
@ -609,7 +610,7 @@ void MainWindow::createTrayIcon()
trayMenu->addAction(QIcon(":/images/emblem-web.png"), tr("Show web interface"), this, SLOT(showWebinterface()));
#endif // ENABLE_WEBUI
trayMenu->addAction(QIcon(IMAGE_BWGRAPH), tr("Bandwidth Graph"), this, SLOT(showBandwidthGraph()));
trayMenu->addAction(QIcon(IMAGE_DHT), tr("Statistics"), this, SLOT(showStatisticsWindow()));
trayMenu->addAction(QIcon(IMAGE_STATS), tr("Statistics"), this, SLOT(showStatisticsWindow()));
#ifdef UNFINISHED

View File

@ -132,8 +132,8 @@ ChatLobbyDialog::ChatLobbyDialog(const ChatLobbyId& lid, QWidget *parent, Qt::Wi
// Add a button to invite friends.
//
inviteFriendsButton = new QToolButton ;
inviteFriendsButton->setMinimumSize(icon_size);
inviteFriendsButton->setMaximumSize(icon_size);
//inviteFriendsButton->setMinimumSize(icon_size);
//inviteFriendsButton->setMaximumSize(icon_size);
inviteFriendsButton->setText(QString()) ;
inviteFriendsButton->setAutoRaise(true) ;
inviteFriendsButton->setToolTip(tr("Invite friends to this lobby"));
@ -177,8 +177,8 @@ ChatLobbyDialog::ChatLobbyDialog(const ChatLobbyId& lid, QWidget *parent, Qt::Wi
connect(ownIdChooser,SIGNAL(currentIndexChanged(int)),this,SLOT(changeNickname())) ;
unsubscribeButton = new QToolButton;
unsubscribeButton->setMinimumSize(icon_size);
unsubscribeButton->setMaximumSize(icon_size);
//unsubscribeButton->setMinimumSize(icon_size);
//unsubscribeButton->setMaximumSize(icon_size);
unsubscribeButton->setText(QString()) ;
unsubscribeButton->setAutoRaise(true) ;
unsubscribeButton->setToolTip(tr("Leave this chat room (Unsubscribe)"));

View File

@ -807,17 +807,20 @@ border-image: url(:/images/closepressed.png)
<enum>QFrame::Plain</enum>
</property>
<layout class="QHBoxLayout" name="pluginTitleFrameHLayout">
<property name="spacing">
<number>3</number>
</property>
<property name="leftMargin">
<number>2</number>
</property>
<property name="topMargin">
<number>2</number>
<number>0</number>
</property>
<property name="rightMargin">
<number>2</number>
</property>
<property name="bottomMargin">
<number>2</number>
<number>0</number>
</property>
</layout>
</widget>

View File

@ -80,6 +80,7 @@
<file>icons/png/chat-lobbies.png</file>
<file>icons/png/circles.png</file>
<file>icons/png/empty-circle.png</file>
<file>icons/png/enter.png</file>
<file>icons/png/exit.png</file>
<file>icons/png/feedreader-notify.png</file>
<file>icons/png/feedreader.png</file>
@ -98,14 +99,16 @@
<file>icons/png/invite.png</file>
<file>icons/png/keyring.png</file>
<file>icons/png/leave.png</file>
<file>icons/png/leave2.png</file>
<file>icons/png/messages-notify.png</file>
<file>icons/png/messages.png</file>
<file>icons/png/microphone_mute.png</file>
<file>icons/png/microphone.png</file>
<file>icons/png/netgraph.png</file>
<file>icons/png/netgraph2.png</file>
<file>icons/png/network-notify.png</file>
<file>icons/png/network.png</file>
<file>icons/png/network2.png</file>
<file>icons/png/network2.png</file>
<file>icons/png/network-puplic.png</file>
<file>icons/png/newsfeed-notify.png</file>
<file>icons/png/newsfeed.png</file>
@ -271,12 +274,16 @@
<file>icons/png/correct.png</file>
<file>icons/png/comment.png</file>
<file>icons/png/chats.png</file>
<file>icons/png/chats-private.png</file>
<file>icons/png/chats-private.png</file>
<file>icons/png/fileshare.png</file>
<file>icons/png/forum.png</file>
<file>icons/png/message.png</file>
<file>icons/png/newsfeed2.png</file>
<file>icons/png/postedlinks.png</file>
<file>icons/png/people2.png</file>
<file>icons/png/bandwidth.png</file>
<file>icons/png/netgraph2.png</file>
<file>icons/png/options2.png</file>
<file>icons/png/exit2.png</file>
</qresource>
</RCC>

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.8 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.9 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.6 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.7 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.2 KiB

View File

@ -0,0 +1,51 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<!-- Created with Inkscape (http://www.inkscape.org/) -->
<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"
id="svg4155"
version="1.1"
inkscape:version="0.92.3 (2405546, 2018-03-11)"
xml:space="preserve"
width="128"
height="128"
viewBox="0 0 128 128"
sodipodi:docname="netgraph2.svg"><metadata
id="metadata4161"><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="defs4159" /><sodipodi:namedview
pagecolor="#ffffff"
bordercolor="#666666"
borderopacity="1"
objecttolerance="10"
gridtolerance="10"
guidetolerance="10"
inkscape:pageopacity="0"
inkscape:pageshadow="2"
inkscape:window-width="1152"
inkscape:window-height="801"
id="namedview4157"
showgrid="false"
inkscape:zoom="1.8097514"
inkscape:cx="63.846549"
inkscape:cy="58.330325"
inkscape:window-x="-8"
inkscape:window-y="-8"
inkscape:window-maximized="1"
inkscape:current-layer="g4163"
units="in" /><g
id="g4163"
inkscape:groupmode="layer"
inkscape:label="ink_ext_XXXXXX"
transform="matrix(1.25,0,0,-1.25,0,128)"><path
inkscape:connector-curvature="0"
style="fill:#039bd5;fill-opacity:1;stroke-width:1.91469252"
d="m 87.283675,52.339305 c -2.372068,0 -4.470776,-1.187702 -5.736989,-2.99843 l -5.158733,0.893867 c 0.0065,0.193773 0.01609,0.387455 0.01609,0.582848 0,2.289997 -0.454194,4.47511 -1.271842,6.47457 l 8.737195,5.271507 c 1.1757,-0.895385 2.641125,-1.428095 4.229609,-1.428095 3.858487,0 6.997575,3.139087 6.997575,6.997575 0,3.858262 -3.139088,6.997058 -6.997575,6.997058 -3.858262,0 -6.997056,-3.138796 -6.997056,-6.997058 0,-0.40997 0.0372,-0.810983 0.105442,-1.20177 l -8.69366,-5.245174 c -2.637827,3.21579 -6.418577,5.458977 -10.715697,6.103967 v 10.734103 c 3.206344,1.07263 5.525225,4.102248 5.525225,7.665087 3.3e-5,4.456963 -3.626019,8.083242 -8.08269,8.083242 -4.456477,0 -8.082238,-3.62602 -8.082238,-8.083242 0,-3.562839 2.318139,-6.592197 5.524709,-7.665087 V 67.79017 C 50.827458,66.911417 45.934189,63.062376 43.581823,57.83205 l -16.009198,4.917303 c 0.04821,0.395645 0.07571,0.79769 0.07571,1.20611 0,5.490449 -4.466442,9.957376 -9.956633,9.957376 -5.490676,0 -9.9573769,-4.466927 -9.9573769,-9.957376 0,-5.490191 4.4667009,-9.956859 9.9576379,-9.956859 3.253152,0 6.146183,1.568526 7.964322,3.988437 l 16.552158,-5.084068 c -0.08313,-0.684139 -0.131348,-1.379019 -0.131348,-2.085123 0,-4.603511 1.825545,-8.786308 4.786126,-11.871691 L 39.65233,31.271628 c -1.052413,0.469817 -2.216854,0.733246 -3.442141,0.733246 -4.674841,0 -8.477591,-3.803007 -8.477591,-8.477623 0,-4.674097 3.80275,-8.476845 8.477591,-8.476845 4.674095,0 8.477103,3.802748 8.477103,8.476845 0,1.589747 -0.440674,3.077945 -1.204845,4.350823 l 7.449502,7.928771 c 2.463619,-1.369022 5.295799,-2.151894 8.308787,-2.151894 2.878217,0 5.59148,0.715585 7.976874,1.973129 l 7.433106,-11.302363 c -1.810958,-1.804065 -2.933699,-4.298674 -2.933699,-7.050534 0,-5.490449 4.46693,-9.9573763 9.95738,-9.9573763 5.49045,0 9.957376,4.4666663 9.957376,9.9573763 0,5.490192 -4.466926,9.956861 -9.957376,9.956861 -0.894609,0 -1.761625,-0.120338 -2.58694,-0.342945 l -7.742821,11.77293 c 1.829879,1.821986 3.248527,4.054399 4.112468,6.543896 l 4.90223,-0.84935 c 0.480528,-3.393035 3.40274,-6.011415 6.926209,-6.011415 3.858522,0 6.997577,3.139085 6.997577,6.997573 -4.22e-4,3.857746 -3.139574,6.996572 -6.998095,6.996572 z M 47.190515,50.81785 c 0,6.6436 5.405014,12.048647 12.048388,12.048647 6.643858,0 12.048644,-5.405047 12.048644,-12.048647 0,-6.643375 -5.405046,-12.04813 -12.048644,-12.04813 -6.643374,0 -12.048388,5.404755 -12.048388,12.04813 z"
id="path3" /></g></svg>

After

Width:  |  Height:  |  Size: 4.1 KiB

View File

@ -0,0 +1,59 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<!-- Created with Inkscape (http://www.inkscape.org/) -->
<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"
id="svg4155"
version="1.1"
inkscape:version="0.92.3 (2405546, 2018-03-11)"
xml:space="preserve"
width="80"
height="80"
viewBox="0 0 80 80"
sodipodi:docname="options-blank.svg"><metadata
id="metadata4161"><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="defs4159" /><sodipodi:namedview
pagecolor="#ffffff"
bordercolor="#666666"
borderopacity="1"
objecttolerance="10"
gridtolerance="10"
guidetolerance="10"
inkscape:pageopacity="0"
inkscape:pageshadow="2"
inkscape:window-width="1152"
inkscape:window-height="801"
id="namedview4157"
showgrid="true"
inkscape:zoom="5.11875"
inkscape:cx="41.764889"
inkscape:cy="40.251477"
inkscape:window-x="-8"
inkscape:window-y="-8"
inkscape:window-maximized="1"
inkscape:current-layer="g4163"><inkscape:grid
type="xygrid"
id="grid4144" /></sodipodi:namedview><g
id="g4163"
inkscape:groupmode="layer"
inkscape:label="ink_ext_XXXXXX"
transform="matrix(1.25,0,0,-1.25,0,80)"><g
id="g3"
transform="matrix(1.03345,0,0,-1.03345,4.1240623,60.304676)"
style="fill:#039bd5;fill-opacity:1"><path
d="M 53.188,23.518 50.06,22.916 c -1.842,-0.354 -3.351,-1.607 -4.035,-3.354 -0.686,-1.745 -0.433,-3.69 0.677,-5.203 l 1.964,-2.679 c 0.292,-0.397 0.249,-0.949 -0.1,-1.298 L 44.324,6.14 C 43.985,5.801 43.453,5.75 43.056,6.019 l -2.638,1.786 c -0.91,0.616 -1.958,0.942 -3.033,0.942 -2.713,0 -4.98,-1.941 -5.393,-4.617 L 31.487,0.847 C 31.414,0.36 30.994,0 30.5,0 h -6 c -0.479,0 -0.892,0.341 -0.982,0.812 l -0.777,4.041 c -0.492,2.559 -2.746,4.416 -5.357,4.416 -1.075,0 -2.125,-0.325 -3.033,-0.941 L 10.944,6.02 C 10.547,5.752 10.015,5.802 9.676,6.141 l -4.243,4.242 c -0.349,0.349 -0.391,0.9 -0.1,1.299 l 1.964,2.679 c 1.109,1.512 1.362,3.457 0.677,5.203 -0.686,1.745 -2.194,2.999 -4.036,3.353 L 0.81,23.519 C 0.34,23.608 0,24.021 0,24.5 v 6 c 0,0.493 0.36,0.913 0.848,0.988 l 3.283,0.505 c 1.853,0.285 3.408,1.481 4.157,3.2 0.75,1.72 0.57,3.673 -0.482,5.226 L 6.02,43.057 c -0.269,0.396 -0.218,0.929 0.121,1.268 l 4.242,4.242 c 0.349,0.348 0.899,0.393 1.298,0.1 l 2.679,-1.964 c 0.944,-0.692 2.05,-1.059 3.197,-1.059 2.613,0 4.867,1.857 5.359,4.416 l 0.602,3.129 C 23.608,53.659 24.021,54 24.5,54 h 6 c 0.494,0 0.913,-0.36 0.988,-0.848 l 0.355,-2.309 c 0.466,-3.032 3.067,-4.618 5.396,-4.618 1.146,0 2.25,0.366 3.196,1.06 l 1.884,1.381 c 0.399,0.293 0.95,0.248 1.298,-0.1 l 4.242,-4.242 c 0.339,-0.339 0.39,-0.871 0.121,-1.268 l -1.786,-2.638 c -1.052,-1.553 -1.232,-3.506 -0.482,-5.226 0.75,-1.719 2.304,-2.915 4.157,-3.2 l 3.283,-0.505 C 53.64,31.413 54,30.993 54,30.5 v -6 c 0,-0.479 -0.34,-0.892 -0.812,-0.982 z M 36,27.5 C 36,32.187 32.187,36 27.5,36 22.813,36 19,32.187 19,27.5 19,22.813 22.813,19 27.5,19 c 4.687,0 8.5,3.813 8.5,8.5 z"
id="path5"
inkscape:connector-curvature="0"
style="fill:#039bd5;fill-opacity:1" /><path
d="M 27.5,22 C 24.467,22 22,24.468 22,27.5 22,30.532 24.467,33 27.5,33 30.533,33 33,30.532 33,27.5 33,24.468 30.533,22 27.5,22 Z"
id="path7"
inkscape:connector-curvature="0"
style="fill:#039bd5;fill-opacity:1" /></g></g></svg>

After

Width:  |  Height:  |  Size: 3.8 KiB

View File

@ -26,7 +26,7 @@
#include "mainpage.h"
#include "ui_MessagesDialog.h"
#define IMAGE_MESSAGES ":/icons/png/messages.png"
#define IMAGE_MESSAGES ":/icons/png/message.png"
class RSTreeWidgetItemCompareRole;
class MessageWidget;