mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-02-27 02:11:27 -05:00
changed Avatar pixel size, and added for Privat Chat's Avatar background new images.
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@3405 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
parent
708ae2936e
commit
4d9eaac22d
@ -1015,7 +1015,7 @@ void MessengerWindow::getAvatar()
|
|||||||
QString fileName = QFileDialog::getOpenFileName(this, "Load File", QDir::homePath(), "Pictures (*.png *.xpm *.jpg)");
|
QString fileName = QFileDialog::getOpenFileName(this, "Load File", QDir::homePath(), "Pictures (*.png *.xpm *.jpg)");
|
||||||
if(!fileName.isEmpty())
|
if(!fileName.isEmpty())
|
||||||
{
|
{
|
||||||
picture = QPixmap(fileName).scaled(82,82, Qt::IgnoreAspectRatio,Qt::SmoothTransformation);
|
picture = QPixmap(fileName).scaled(96,96, Qt::IgnoreAspectRatio,Qt::SmoothTransformation);
|
||||||
|
|
||||||
std::cerr << "Sending avatar image down the pipe" << std::endl ;
|
std::cerr << "Sending avatar image down the pipe" << std::endl ;
|
||||||
|
|
||||||
|
@ -1567,7 +1567,7 @@ void PeersDialog::getAvatar()
|
|||||||
if(!fileName.isEmpty())
|
if(!fileName.isEmpty())
|
||||||
{
|
{
|
||||||
QPixmap picture;
|
QPixmap picture;
|
||||||
picture = QPixmap(fileName).scaled(82,82, Qt::IgnoreAspectRatio,Qt::SmoothTransformation);
|
picture = QPixmap(fileName).scaled(96,96, Qt::IgnoreAspectRatio,Qt::SmoothTransformation);
|
||||||
|
|
||||||
#ifdef PEERS_DEBUG
|
#ifdef PEERS_DEBUG
|
||||||
std::cerr << "Sending avatar image down the pipe" << std::endl ;
|
std::cerr << "Sending avatar image down the pipe" << std::endl ;
|
||||||
|
@ -910,7 +910,7 @@ void PopupChatDialog::getAvatar()
|
|||||||
|
|
||||||
if(!fileName.isEmpty())
|
if(!fileName.isEmpty())
|
||||||
{
|
{
|
||||||
picture = QPixmap(fileName).scaled(82,82, Qt::IgnoreAspectRatio,Qt::SmoothTransformation);
|
picture = QPixmap(fileName).scaled(96,96, Qt::IgnoreAspectRatio,Qt::SmoothTransformation);
|
||||||
|
|
||||||
std::cerr << "Sending avatar image down the pipe" << std::endl ;
|
std::cerr << "Sending avatar image down the pipe" << std::endl ;
|
||||||
|
|
||||||
@ -1170,34 +1170,34 @@ void PopupChatDialog::updateStatus(const QString &peer_id, int status)
|
|||||||
|
|
||||||
switch (status) {
|
switch (status) {
|
||||||
case RS_STATUS_OFFLINE:
|
case RS_STATUS_OFFLINE:
|
||||||
ui.avatarlabel->setStyleSheet("QLabel#avatarlabel{ border-image:url(:/images/mystatus_bg_offline.png); }");
|
ui.avatarlabel->setStyleSheet("QLabel#avatarlabel{ border-image:url(:/images/avatarstatus_bg_offline.png); }");
|
||||||
ui.avatarlabel->setEnabled(false);
|
ui.avatarlabel->setEnabled(false);
|
||||||
ui.infoframe->setVisible(true);
|
ui.infoframe->setVisible(true);
|
||||||
ui.infolabel->setText( QString::fromStdString(dialogName) + " " + tr("apears to be Offline.") +"\n" + tr("Messages you send will be lost and not delivered, rs-Mail this contact instead."));
|
ui.infolabel->setText( QString::fromStdString(dialogName) + " " + tr("apears to be Offline.") +"\n" + tr("Messages you send will be lost and not delivered, rs-Mail this contact instead."));
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case RS_STATUS_INACTIVE:
|
case RS_STATUS_INACTIVE:
|
||||||
ui.avatarlabel->setStyleSheet("QLabel#avatarlabel{ border-image:url(:/images/mystatus_bg_idle.png); }");
|
ui.avatarlabel->setStyleSheet("QLabel#avatarlabel{ border-image:url(:/images/avatarstatus_bg_away.png); }");
|
||||||
ui.avatarlabel->setEnabled(true);
|
ui.avatarlabel->setEnabled(true);
|
||||||
ui.infoframe->setVisible(true);
|
ui.infoframe->setVisible(true);
|
||||||
ui.infolabel->setText( QString::fromStdString(dialogName) + " " + tr("is Idle and may not reply"));
|
ui.infolabel->setText( QString::fromStdString(dialogName) + " " + tr("is Idle and may not reply"));
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case RS_STATUS_ONLINE:
|
case RS_STATUS_ONLINE:
|
||||||
ui.avatarlabel->setStyleSheet("QLabel#avatarlabel{ border-image:url(:/images/mystatus_bg_online.png); }");
|
ui.avatarlabel->setStyleSheet("QLabel#avatarlabel{ border-image:url(:/images/avatarstatus_bg_online.png); }");
|
||||||
ui.avatarlabel->setEnabled(true);
|
ui.avatarlabel->setEnabled(true);
|
||||||
ui.infoframe->setVisible(false);
|
ui.infoframe->setVisible(false);
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case RS_STATUS_AWAY:
|
case RS_STATUS_AWAY:
|
||||||
ui.avatarlabel->setStyleSheet("QLabel#avatarlabel{ border-image:url(:/images/mystatus_bg_idle.png); }");
|
ui.avatarlabel->setStyleSheet("QLabel#avatarlabel{ border-image:url(:/images/avatarstatus_bg_away.png); }");
|
||||||
ui.avatarlabel->setEnabled(true);
|
ui.avatarlabel->setEnabled(true);
|
||||||
ui.infolabel->setText( QString::fromStdString(dialogName) + " " + tr("is Away and may not reply"));
|
ui.infolabel->setText( QString::fromStdString(dialogName) + " " + tr("is Away and may not reply"));
|
||||||
ui.infoframe->setVisible(true);
|
ui.infoframe->setVisible(true);
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case RS_STATUS_BUSY:
|
case RS_STATUS_BUSY:
|
||||||
ui.avatarlabel->setStyleSheet("QLabel#avatarlabel{ border-image:url(:/images/mystatus_bg_busy.png); }");
|
ui.avatarlabel->setStyleSheet("QLabel#avatarlabel{ border-image:url(:/images/avatarstatus_bg_busy.png); }");
|
||||||
ui.avatarlabel->setEnabled(true);
|
ui.avatarlabel->setEnabled(true);
|
||||||
ui.infolabel->setText( QString::fromStdString(dialogName) + " " + tr("is Busy and may not reply"));
|
ui.infolabel->setText( QString::fromStdString(dialogName) + " " + tr("is Busy and may not reply"));
|
||||||
ui.infoframe->setVisible(true);
|
ui.infoframe->setVisible(true);
|
||||||
|
@ -9,7 +9,7 @@
|
|||||||
<rect>
|
<rect>
|
||||||
<x>0</x>
|
<x>0</x>
|
||||||
<y>0</y>
|
<y>0</y>
|
||||||
<width>558</width>
|
<width>504</width>
|
||||||
<height>430</height>
|
<height>430</height>
|
||||||
</rect>
|
</rect>
|
||||||
</property>
|
</property>
|
||||||
@ -102,7 +102,7 @@
|
|||||||
<widget class="QFrame" name="avatarframe">
|
<widget class="QFrame" name="avatarframe">
|
||||||
<property name="maximumSize">
|
<property name="maximumSize">
|
||||||
<size>
|
<size>
|
||||||
<width>120</width>
|
<width>132</width>
|
||||||
<height>16777215</height>
|
<height>16777215</height>
|
||||||
</size>
|
</size>
|
||||||
</property>
|
</property>
|
||||||
@ -140,8 +140,8 @@
|
|||||||
</size>
|
</size>
|
||||||
</property>
|
</property>
|
||||||
<property name="styleSheet">
|
<property name="styleSheet">
|
||||||
<string>QLabel{
|
<string notr="true">QLabel{
|
||||||
border-image: url(:/images/mystatus_bg.png);
|
border-image: url(:/images/avatarstatus_bg.png);
|
||||||
|
|
||||||
}</string>
|
}</string>
|
||||||
</property>
|
</property>
|
||||||
@ -181,8 +181,8 @@ border-image: url(:/images/mystatus_bg.png);
|
|||||||
</size>
|
</size>
|
||||||
</property>
|
</property>
|
||||||
<property name="styleSheet">
|
<property name="styleSheet">
|
||||||
<string>QLabel{
|
<string notr="true">QLabel{
|
||||||
border-image: url(:/images/mystatus_bg.png);
|
border-image: url(:/images/avatarstatus_bg.png);
|
||||||
|
|
||||||
}</string>
|
}</string>
|
||||||
</property>
|
</property>
|
||||||
@ -328,7 +328,7 @@ p, li { white-space: pre-wrap; }
|
|||||||
<bool>false</bool>
|
<bool>false</bool>
|
||||||
</property>
|
</property>
|
||||||
</widget>
|
</widget>
|
||||||
<widget class="QWidget" name="">
|
<widget class="QWidget" name="layoutWidget">
|
||||||
<layout class="QVBoxLayout" name="verticalLayout_2">
|
<layout class="QVBoxLayout" name="verticalLayout_2">
|
||||||
<property name="spacing">
|
<property name="spacing">
|
||||||
<number>1</number>
|
<number>1</number>
|
||||||
@ -375,7 +375,7 @@ background: white;}</string>
|
|||||||
<widget class="QFrame" name="Chatbuttonframe">
|
<widget class="QFrame" name="Chatbuttonframe">
|
||||||
<property name="minimumSize">
|
<property name="minimumSize">
|
||||||
<size>
|
<size>
|
||||||
<width>16</width>
|
<width>347</width>
|
||||||
<height>46</height>
|
<height>46</height>
|
||||||
</size>
|
</size>
|
||||||
</property>
|
</property>
|
||||||
@ -830,6 +830,9 @@ border: 1px solid #CCCCCC;
|
|||||||
<include location="../images.qrc"/>
|
<include location="../images.qrc"/>
|
||||||
<include location="../images.qrc"/>
|
<include location="../images.qrc"/>
|
||||||
<include location="../images.qrc"/>
|
<include location="../images.qrc"/>
|
||||||
|
<include location="../images.qrc"/>
|
||||||
|
<include location="../images.qrc"/>
|
||||||
|
<include location="../images.qrc"/>
|
||||||
</resources>
|
</resources>
|
||||||
<connections/>
|
<connections/>
|
||||||
</ui>
|
</ui>
|
||||||
|
@ -33,6 +33,11 @@
|
|||||||
<file>images/add_channel64.png</file>
|
<file>images/add_channel64.png</file>
|
||||||
<file>images/add_channel24.png</file>
|
<file>images/add_channel24.png</file>
|
||||||
<file>images/add_channel32.png</file>
|
<file>images/add_channel32.png</file>
|
||||||
|
<file>images/avatarstatus_bg.png</file>
|
||||||
|
<file>images/avatarstatus_bg_online.png</file>
|
||||||
|
<file>images/avatarstatus_bg_away.png</file>
|
||||||
|
<file>images/avatarstatus_bg_busy.png</file>
|
||||||
|
<file>images/avatarstatus_bg_offline.png</file>
|
||||||
<file>images/browse-looking.gif</file>
|
<file>images/browse-looking.gif</file>
|
||||||
<file>images/back.png</file>
|
<file>images/back.png</file>
|
||||||
<file>images/backgroundl.png</file>
|
<file>images/backgroundl.png</file>
|
||||||
|
BIN
retroshare-gui/src/gui/images/avatarstatus_bg.png
Normal file
BIN
retroshare-gui/src/gui/images/avatarstatus_bg.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 2.9 KiB |
BIN
retroshare-gui/src/gui/images/avatarstatus_bg_away.png
Normal file
BIN
retroshare-gui/src/gui/images/avatarstatus_bg_away.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 1.7 KiB |
BIN
retroshare-gui/src/gui/images/avatarstatus_bg_busy.png
Normal file
BIN
retroshare-gui/src/gui/images/avatarstatus_bg_busy.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 1.6 KiB |
BIN
retroshare-gui/src/gui/images/avatarstatus_bg_offline.png
Normal file
BIN
retroshare-gui/src/gui/images/avatarstatus_bg_offline.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 1.6 KiB |
BIN
retroshare-gui/src/gui/images/avatarstatus_bg_online.png
Normal file
BIN
retroshare-gui/src/gui/images/avatarstatus_bg_online.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 1.6 KiB |
Loading…
x
Reference in New Issue
Block a user