diff --git a/retroshare-gui/src/gui/PhotoShare/PhotoDialog.cpp b/retroshare-gui/src/gui/PhotoShare/PhotoDialog.cpp index 6251dc38f..004c5d4cf 100644 --- a/retroshare-gui/src/gui/PhotoShare/PhotoDialog.cpp +++ b/retroshare-gui/src/gui/PhotoShare/PhotoDialog.cpp @@ -25,6 +25,11 @@ #include "retroshare/rsidentity.h" #include "gui/gxs/GxsCommentDialog.h" +#define IMAGE_FULLSCREEN ":/icons/fullscreen.png" +#define IMAGE_FULLSCREENEXIT ":/icons/fullscreen-exit.png" +#define IMAGE_SHOW ":/icons/png/down-arrow.png" +#define IMAGE_HIDE ":/icons/png/up-arrow.png" + PhotoDialog::PhotoDialog(RsPhoto *rs_photo, const RsPhotoPhoto &photo, QWidget *parent) : QDialog(parent, Qt::WindowSystemMenuHint | Qt::WindowTitleHint | Qt::WindowMinMaxButtonsHint | Qt::WindowCloseButtonHint), ui(new Ui::PhotoDialog), mRsPhoto(rs_photo), mPhotoQueue(new TokenQueue(mRsPhoto->getTokenService(), this)), @@ -76,8 +81,10 @@ void PhotoDialog::toggleDetails() { if (ui->frame_details->isVisible()) { ui->frame_details->setVisible(false); + ui->detailsButton->setIcon(QIcon(IMAGE_SHOW)); } else { ui->frame_details->setVisible(true); + ui->detailsButton->setIcon(QIcon(IMAGE_HIDE)); } } @@ -182,9 +189,11 @@ void PhotoDialog::setFullScreen() show(); raise(); #endif + ui->fullscreenButton->setIcon(QIcon(IMAGE_FULLSCREENEXIT)); } else { setWindowState( windowState() ^ Qt::WindowFullScreen ); show(); + ui->fullscreenButton->setIcon(QIcon(IMAGE_FULLSCREEN)); } } diff --git a/retroshare-gui/src/gui/PhotoShare/PhotoDialog.ui b/retroshare-gui/src/gui/PhotoShare/PhotoDialog.ui index b8ab9d67b..8a0adf7c9 100644 --- a/retroshare-gui/src/gui/PhotoShare/PhotoDialog.ui +++ b/retroshare-gui/src/gui/PhotoShare/PhotoDialog.ui @@ -7,7 +7,7 @@ 0 0 790 - 824 + 509 @@ -52,11 +52,24 @@ 0 0 - 558 - 551 + 540 + 318 + + + + Qt::Horizontal + + + + 40 + 20 + + + + @@ -74,8 +87,24 @@ TextLabel + + Qt::AlignCenter + + + + + Qt::Horizontal + + + + 40 + 20 + + + + @@ -92,8 +121,8 @@ ... - - :/images/window_fullscreen.png:/images/window_fullscreen.png + + :/icons/fullscreen.png:/icons/fullscreen.png true @@ -103,7 +132,11 @@ - Details \/ + Details + + + + :/icons/png/down-arrow.png:/icons/png/down-arrow.png @@ -136,6 +169,10 @@ <N> Comments >> + + + :/icons/png/comment.png:/icons/png/comment.png + @@ -255,6 +292,7 @@ + diff --git a/retroshare-gui/src/gui/PhotoShare/PhotoSlideShow.cpp b/retroshare-gui/src/gui/PhotoShare/PhotoSlideShow.cpp index 7e5fb6d00..3965bb79a 100644 --- a/retroshare-gui/src/gui/PhotoShare/PhotoSlideShow.cpp +++ b/retroshare-gui/src/gui/PhotoShare/PhotoSlideShow.cpp @@ -22,6 +22,9 @@ #include "gui/PhotoShare/PhotoDrop.h" #include "gui/gxs/GxsIdDetails.h" +#define IMAGE_FULLSCREEN ":/icons/fullscreen.png" +#define IMAGE_FULLSCREENEXIT ":/icons/fullscreen-exit.png" + #include /** Constructor */ @@ -300,10 +303,12 @@ void PhotoSlideShow::setFullScreen() show(); raise(); #endif + ui.fullscreenButton->setIcon(QIcon(IMAGE_FULLSCREENEXIT)); } else { setWindowState( windowState() ^ Qt::WindowFullScreen ); show(); + ui.fullscreenButton->setIcon(QIcon(IMAGE_FULLSCREEN)); } } diff --git a/retroshare-gui/src/gui/PhotoShare/PhotoSlideShow.ui b/retroshare-gui/src/gui/PhotoShare/PhotoSlideShow.ui index bc771eec0..50d031e4e 100644 --- a/retroshare-gui/src/gui/PhotoShare/PhotoSlideShow.ui +++ b/retroshare-gui/src/gui/PhotoShare/PhotoSlideShow.ui @@ -98,8 +98,8 @@ - - :/images/window_fullscreen.png:/images/window_fullscreen.png + + :/icons/fullscreen.png:/icons/fullscreen.png false @@ -157,6 +157,7 @@ + diff --git a/retroshare-gui/src/gui/icons.qrc b/retroshare-gui/src/gui/icons.qrc index 94a8129ef..53b572552 100644 --- a/retroshare-gui/src/gui/icons.qrc +++ b/retroshare-gui/src/gui/icons.qrc @@ -316,5 +316,7 @@ icons/textedit/smile.png icons/textedit/font-increase.png icons/textedit/code.png + icons/fullscreen.png + icons/fullscreen-exit.png diff --git a/retroshare-gui/src/gui/icons/fullscreen-exit.png b/retroshare-gui/src/gui/icons/fullscreen-exit.png new file mode 100644 index 000000000..eb0d29385 Binary files /dev/null and b/retroshare-gui/src/gui/icons/fullscreen-exit.png differ diff --git a/retroshare-gui/src/gui/icons/fullscreen.png b/retroshare-gui/src/gui/icons/fullscreen.png new file mode 100644 index 000000000..3b14cbe35 Binary files /dev/null and b/retroshare-gui/src/gui/icons/fullscreen.png differ