From 935a52dee35897ea9ed9b1f108ec19d0b285b1c3 Mon Sep 17 00:00:00 2001 From: defnax Date: Wed, 7 Jan 2009 01:56:09 +0000 Subject: [PATCH] * set for the Avatar Button a Background image * set for Avatar Pictures to use IgnoreAspectRatio git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@918 b45a01b8-16f6-495d-af2f-9b41ad6348cc --- retroshare-gui/src/gui/MessengerWindow.cpp | 2 +- retroshare-gui/src/gui/MessengerWindow.ui | 128 ++++++++++++++------- 2 files changed, 86 insertions(+), 44 deletions(-) diff --git a/retroshare-gui/src/gui/MessengerWindow.cpp b/retroshare-gui/src/gui/MessengerWindow.cpp index 0705cdc55..6736e551f 100644 --- a/retroshare-gui/src/gui/MessengerWindow.cpp +++ b/retroshare-gui/src/gui/MessengerWindow.cpp @@ -539,7 +539,7 @@ void MessengerWindow::getPicture() "Pictures (*.png *.xpm *.jpg)"); if(!fileName.isEmpty()) { - picture = QPixmap(fileName).scaled(72,72, Qt::KeepAspectRatio); + picture = QPixmap(fileName).scaled(53,53, Qt::IgnoreAspectRatio); ui.avatarButton->setIcon(picture); } } diff --git a/retroshare-gui/src/gui/MessengerWindow.ui b/retroshare-gui/src/gui/MessengerWindow.ui index 51b85b86b..e04a9b26d 100644 --- a/retroshare-gui/src/gui/MessengerWindow.ui +++ b/retroshare-gui/src/gui/MessengerWindow.ui @@ -13,23 +13,26 @@ RetroShare Messenger - - :/images/rstray3.png:/images/rstray3.png + :/images/rstray3.png - - - 0 - 23 - 282 - 511 - - - - + + 0 - + + 0 + + + 0 + + + 0 + + + 0 + + 0 @@ -40,16 +43,37 @@ QFrame::Raised - - + + + 0 + + + 0 + + + 0 + + 0 - - + + 4 - + + 4 + + + 4 + + + 4 + + + 6 + + 6 @@ -60,9 +84,11 @@ p, li { white-space: pre-wrap; } </style></head><body style=" font-family:'Sans Serif'; font-size:9pt; font-weight:400; font-style:normal; text-decoration:none;"> <p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">Click to change your avatar</p></body></html> + + border-image: url(:/images/mystatus_bg.png); + - - :/images/retrosharelogo1.png:/images/retrosharelogo1.png + :/images/retrosharelogo1.png @@ -76,11 +102,23 @@ p, li { white-space: pre-wrap; } - - + + 4 - + + 4 + + + 4 + + + 4 + + + 6 + + 6 @@ -109,8 +147,7 @@ p, li { white-space: pre-wrap; } Online - - :/images/donline.png:/images/donline.png + :/images/donline.png @@ -118,8 +155,7 @@ p, li { white-space: pre-wrap; } Busy - - :/images/dbusy.png:/images/dbusy.png + :/images/dbusy.png @@ -127,8 +163,7 @@ p, li { white-space: pre-wrap; } Be right Back - - :/images/dbrb.png:/images/dbrb.png + :/images/dbrb.png @@ -136,8 +171,7 @@ p, li { white-space: pre-wrap; } Away - - :/images/daway.png:/images/daway.png + :/images/daway.png @@ -145,8 +179,7 @@ p, li { white-space: pre-wrap; } In a Call - - :/images/dphone.png:/images/dphone.png + :/images/dphone.png @@ -154,8 +187,7 @@ p, li { white-space: pre-wrap; } Out of lunch - - :/images/dlunch.png:/images/dlunch.png + :/images/dlunch.png @@ -163,8 +195,7 @@ p, li { white-space: pre-wrap; } Apear Offline - - :/images/dhidden.png:/images/dhidden.png + :/images/dhidden.png @@ -190,11 +221,23 @@ p, li { white-space: pre-wrap; } - - + + 9 - + + 9 + + + 9 + + + 9 + + + 6 + + 6 @@ -228,8 +271,7 @@ p, li { white-space: pre-wrap; } - - :/images/dadd.png:/images/dadd.png + :/images/dadd.png @@ -265,7 +307,7 @@ p, li { white-space: pre-wrap; } 0 0 282 - 23 + 30