diff --git a/libretroshare/src/retroshare/rsposted.h b/libretroshare/src/retroshare/rsposted.h index 55fc1639a..02edb47c8 100644 --- a/libretroshare/src/retroshare/rsposted.h +++ b/libretroshare/src/retroshare/rsposted.h @@ -25,10 +25,12 @@ #include #include #include +#include #include "retroshare/rstokenservice.h" #include "retroshare/rsgxsifacehelper.h" #include "retroshare/rsgxscommon.h" +#include "serialiser/rsserializable.h" /* The Main Interface Class - for information about your Posted */ class RsPosted; @@ -42,6 +44,7 @@ class RsPostedGroup RsGroupMetaData mMeta; std::string mDescription; + }; @@ -52,7 +55,7 @@ class RsPostedGroup #define RSPOSTED_PERIOD_YEAR 1 #define RSPOSTED_PERIOD_MONTH 2 #define RSPOSTED_PERIOD_WEEK 3 -#define RSPOSTED_PERIOD_DAY 4 +#define RSPOSTED_PERIOD_DAY 4 #define RSPOSTED_PERIOD_HOUR 5 #define RSPOSTED_VIEWMODE_LATEST 1 @@ -102,7 +105,6 @@ virtual bool updateGroup(uint32_t &token, RsPostedGroup &group) = 0; }; - class RsPostedPost { public: @@ -137,6 +139,24 @@ class RsPostedPost double mHotScore; double mTopScore; double mNewScore; + + RsGxsImage mImage; + + /// @see RsSerializable + /*virtual void serial_process( RsGenericSerializer::SerializeJob j, + RsGenericSerializer::SerializeContext& ctx ) + { + RS_SERIAL_PROCESS(mImage); + RS_SERIAL_PROCESS(mMeta); + RS_SERIAL_PROCESS(mLink); + RS_SERIAL_PROCESS(mHaveVoted); + RS_SERIAL_PROCESS(mUpVotes); + RS_SERIAL_PROCESS(mDownVotes); + RS_SERIAL_PROCESS(mComments); + RS_SERIAL_PROCESS(mHotScore); + RS_SERIAL_PROCESS(mTopScore); + RS_SERIAL_PROCESS(mNewScore); + }*/ }; diff --git a/libretroshare/src/rsitems/rsposteditems.cc b/libretroshare/src/rsitems/rsposteditems.cc index 67a5a9873..7f7adac4d 100644 --- a/libretroshare/src/rsitems/rsposteditems.cc +++ b/libretroshare/src/rsitems/rsposteditems.cc @@ -22,15 +22,29 @@ #include "rsitems/rsposteditems.h" #include "serialiser/rstypeserializer.h" + + void RsGxsPostedPostItem::serial_process(RsGenericSerializer::SerializeJob j,RsGenericSerializer::SerializeContext& ctx) { RsTypeSerializer::serial_process(j,ctx,TLV_TYPE_STR_LINK,mPost.mLink,"mPost.mLink") ; RsTypeSerializer::serial_process(j,ctx,TLV_TYPE_STR_MSG ,mPost.mNotes,"mPost.mNotes") ; + + // Do not serialize mImage member if it is empty (keeps compatibility of new posts without image toward older RS) + // and do not expect to deserialize mImage member if the data block has been consummed entirely (keeps compatibility + // of new RS with older posts. + + if(j == RsGenericSerializer::DESERIALIZE && ctx.mOffset == ctx.mSize) + return ; + + if((j == RsGenericSerializer::SIZE_ESTIMATE || j == RsGenericSerializer::SERIALIZE) && mImage.empty()) + return ; + + RsTypeSerializer::serial_process(j,ctx,mImage,"mImage") ; } void RsGxsPostedGroupItem::serial_process(RsGenericSerializer::SerializeJob j,RsGenericSerializer::SerializeContext& ctx) { - RsTypeSerializer::serial_process(j,ctx,TLV_TYPE_STR_DESCR ,mGroup.mDescription,"mGroup.mDescription") ; + RsTypeSerializer::serial_process(j,ctx,TLV_TYPE_STR_DESCR ,mGroup.mDescription,"mGroup.mDescription") ; } RsItem *RsGxsPostedSerialiser::create_item(uint16_t service_id,uint8_t item_subtype) const @@ -47,12 +61,54 @@ RsItem *RsGxsPostedSerialiser::create_item(uint16_t service_id,uint8_t item_subt } } +bool RsGxsPostedPostItem::fromPostedPost(RsPostedPost &post, bool moveImage) +{ + clear(); + + mPost = post; + meta = post.mMeta; + + if (moveImage) + { + mImage.binData.bin_data = post.mImage.mData; + mImage.binData.bin_len = post.mImage.mSize; + post.mImage.shallowClear(); + } + else + { + mImage.binData.setBinData(post.mImage.mData, post.mImage.mSize); + } + + return true; +} + +bool RsGxsPostedPostItem::toPostedPost(RsPostedPost &post, bool moveImage) +{ + post = mPost; + post.mMeta = meta; + + if (moveImage) + { + post.mImage.take((uint8_t *) mImage.binData.bin_data, mImage.binData.bin_len); + // mImage doesn't have a ShallowClear at the moment! + mImage.binData.TlvShallowClear(); + } + else + { + post.mImage.copy((uint8_t *) mImage.binData.bin_data, mImage.binData.bin_len); + } + + return true; +} + void RsGxsPostedPostItem::clear() { mPost.mLink.clear(); mPost.mNotes.clear(); + mImage.TlvClear(); } void RsGxsPostedGroupItem::clear() { mGroup.mDescription.clear(); } + diff --git a/libretroshare/src/rsitems/rsposteditems.h b/libretroshare/src/rsitems/rsposteditems.h index 62ab7a6af..ef88289b5 100644 --- a/libretroshare/src/rsitems/rsposteditems.h +++ b/libretroshare/src/rsitems/rsposteditems.h @@ -25,6 +25,7 @@ #include "rsitems/rsserviceids.h" #include "rsitems/rsgxscommentitems.h" #include "rsitems/rsgxsitems.h" +#include "serialiser/rstlvimage.h" #include "retroshare/rsposted.h" @@ -38,9 +39,12 @@ public: virtual ~RsGxsPostedGroupItem() {} void clear(); + virtual void serial_process(RsGenericSerializer::SerializeJob j,RsGenericSerializer::SerializeContext& ctx); - + RsPostedGroup mGroup; + + }; class RsGxsPostedPostItem : public RsGxsMsgItem @@ -51,8 +55,14 @@ public: void clear(); virtual void serial_process(RsGenericSerializer::SerializeJob j,RsGenericSerializer::SerializeContext& ctx); + + // Slightly unusual structure. + // use conversion functions to transform: + bool fromPostedPost(RsPostedPost &post, bool moveImage); + bool toPostedPost(RsPostedPost &post, bool moveImage); RsPostedPost mPost; + RsTlvImage mImage; }; class RsGxsPostedSerialiser : public RsGxsCommentSerialiser diff --git a/libretroshare/src/serialiser/rstlvimage.h b/libretroshare/src/serialiser/rstlvimage.h index b5602096f..562c29090 100644 --- a/libretroshare/src/serialiser/rstlvimage.h +++ b/libretroshare/src/serialiser/rstlvimage.h @@ -33,18 +33,19 @@ class RsTlvImage: public RsTlvItem { - public: - RsTlvImage(); - RsTlvImage(const RsTlvImage& ); - virtual ~RsTlvImage() { return; } -virtual uint32_t TlvSize() const; -virtual void TlvClear(); -virtual bool SetTlv(void *data, uint32_t size, uint32_t *offset) const; -virtual bool GetTlv(void *data, uint32_t size, uint32_t *offset); +public: + RsTlvImage(); + RsTlvImage(const RsTlvImage& ); + virtual ~RsTlvImage() { return; } + virtual uint32_t TlvSize() const; + virtual void TlvClear(); + virtual bool SetTlv(void *data, uint32_t size, uint32_t *offset) const; + virtual bool GetTlv(void *data, uint32_t size, uint32_t *offset); -virtual std::ostream &print(std::ostream &out, uint16_t indent) const; + bool empty() const { return binData.bin_len == 0 ; } + virtual std::ostream &print(std::ostream &out, uint16_t indent) const; - uint32_t image_type; // Mandatory: + uint32_t image_type; // Mandatory: RsTlvBinaryData binData; // Mandatory: serialised file info }; diff --git a/libretroshare/src/services/p3posted.cc b/libretroshare/src/services/p3posted.cc index 4e8ddacf2..d50c0624c 100644 --- a/libretroshare/src/services/p3posted.cc +++ b/libretroshare/src/services/p3posted.cc @@ -123,6 +123,7 @@ bool p3Posted::getPostData(const uint32_t &token, std::vector &msg { RsPostedPost msg = postItem->mPost; msg.mMeta = postItem->meta; + postItem->toPostedPost(msg, true); msg.calculateScores(now); msgs.push_back(msg); @@ -291,8 +292,10 @@ bool p3Posted::createPost(uint32_t &token, RsPostedPost &msg) std::cerr << std::endl; RsGxsPostedPostItem* msgItem = new RsGxsPostedPostItem(); - msgItem->mPost = msg; - msgItem->meta = msg.mMeta; + //msgItem->mPost = msg; + //msgItem->meta = msg.mMeta; + msgItem->fromPostedPost(msg, true); + RsGenExchange::publishMsg(token, msgItem); return true; diff --git a/retroshare-gui/src/gui/Posted/PostedCreatePostDialog.cpp b/retroshare-gui/src/gui/Posted/PostedCreatePostDialog.cpp index ba622ed17..cd21d3b6c 100644 --- a/retroshare-gui/src/gui/Posted/PostedCreatePostDialog.cpp +++ b/retroshare-gui/src/gui/Posted/PostedCreatePostDialog.cpp @@ -18,13 +18,16 @@ * * *******************************************************************************/ + #include #include #include "PostedCreatePostDialog.h" #include "ui_PostedCreatePostDialog.h" +#include "util/misc.h" #include "util/TokenQueue.h" #include "gui/settings/rsharesettings.h" +#include #include @@ -37,6 +40,7 @@ PostedCreatePostDialog::PostedCreatePostDialog(TokenQueue* tokenQ, RsPosted *pos Settings->loadWidgetInformation(this); connect(ui->submitButton, SIGNAL(clicked()), this, SLOT(createPost())); connect(ui->buttonBox, SIGNAL(rejected()), this, SLOT(close())); + connect(ui->pushButton, SIGNAL(clicked() ), this , SLOT(addPicture())); ui->headerFrame->setHeaderImage(QPixmap(":/images/posted_64.png")); ui->headerFrame->setHeaderText(tr("Submit a new Post")); @@ -78,6 +82,18 @@ void PostedCreatePostDialog::createPost() post.mMeta.mMsgName = std::string(ui->titleEdit->text().toUtf8()); post.mMeta.mAuthorId = authorId; + QByteArray ba; + QBuffer buffer(&ba); + + if(!picture.isNull()) + { + // send posted image + + buffer.open(QIODevice::WriteOnly); + picture.save(&buffer, "PNG"); // writes image into ba in PNG format + post.mImage.copy((uint8_t *) ba.data(), ba.size()); + } + if(ui->titleEdit->text().isEmpty()) { /* error message */ QMessageBox::warning(this, "RetroShare", tr("Please add a Title"), QMessageBox::Ok, QMessageBox::Ok); @@ -90,3 +106,16 @@ void PostedCreatePostDialog::createPost() accept(); } + +void PostedCreatePostDialog::addPicture() +{ + QPixmap img = misc::getOpenThumbnailedPicture(this, tr("Load thumbnail picture"), 800, 600); + + if (img.isNull()) + return; + + picture = img; + + // to show the selected + ui->imageLabel->setPixmap(picture); +} \ No newline at end of file diff --git a/retroshare-gui/src/gui/Posted/PostedCreatePostDialog.h b/retroshare-gui/src/gui/Posted/PostedCreatePostDialog.h index f4b6c96a3..587b3f957 100644 --- a/retroshare-gui/src/gui/Posted/PostedCreatePostDialog.h +++ b/retroshare-gui/src/gui/Posted/PostedCreatePostDialog.h @@ -41,9 +41,13 @@ public: */ explicit PostedCreatePostDialog(TokenQueue* tokenQ, RsPosted* posted, const RsGxsGroupId& grpId, QWidget *parent = 0); ~PostedCreatePostDialog(); + + QPixmap picture; private slots: void createPost(); + void addPicture(); + private: QString mLink; diff --git a/retroshare-gui/src/gui/Posted/PostedCreatePostDialog.ui b/retroshare-gui/src/gui/Posted/PostedCreatePostDialog.ui index d8128b199..d9d909887 100644 --- a/retroshare-gui/src/gui/Posted/PostedCreatePostDialog.ui +++ b/retroshare-gui/src/gui/Posted/PostedCreatePostDialog.ui @@ -7,7 +7,7 @@ 0 0 575 - 371 + 467 @@ -47,7 +47,7 @@ QFrame::Raised - + @@ -128,75 +128,108 @@ - - - - - - - - - Title - - - - - - - Link - - - - - - - - - - - - - Qt::Horizontal - - - QSizePolicy::MinimumExpanding - - - - 78 - 17 - - - - - - - - Signed by: - - - - - - - + + + 0 + + + + Picture + + + + + + Qt::Horizontal + + + + 447 + 20 + + + + + + + + Add Picture + + + + + + + Preview + + + + + + + 250 + 200 + + + + + 800 + 200 + + + + + + + true + + + + + + + Qt::Horizontal + + + + 40 + 20 + + + + + + + + Qt::Horizontal + + + + 40 + 20 + + + + + + + + + + + + Notes + + + + + + + + - - - - - - Notes - - - - - - - - - + Qt::Horizontal @@ -209,14 +242,20 @@ - + + + + 0 + 0 + + Submit - + @@ -232,12 +271,51 @@ + + + + + + Title + + + + + + + + + + Link + + + + + + + + + + + + + Post as + + + + + + + StyledLabel + QLabel +
gui/common/StyledLabel.h
+
HeaderFrame QFrame @@ -254,11 +332,6 @@ QComboBox
gui/gxs/GxsIdChooser.h
- - StyledLabel - QLabel -
gui/common/StyledLabel.h
-
diff --git a/retroshare-gui/src/gui/Posted/PostedItem.cpp b/retroshare-gui/src/gui/Posted/PostedItem.cpp index 4304561d7..4a38c2a5a 100644 --- a/retroshare-gui/src/gui/Posted/PostedItem.cpp +++ b/retroshare-gui/src/gui/Posted/PostedItem.cpp @@ -19,11 +19,14 @@ *******************************************************************************/ #include +#include #include #include "rshare.h" #include "PostedItem.h" #include "gui/feeds/FeedHolder.h" +#include "util/misc.h" + #include "ui_PostedItem.h" #include @@ -46,6 +49,9 @@ PostedItem::PostedItem(FeedHolder *feedHolder, uint32_t feedId, const RsPostedGr GxsFeedItem(feedHolder, feedId, post.mMeta.mGroupId, post.mMeta.mMsgId, isHome, rsPosted, autoUpdate) { setup(); + + mMessageId = post.mMeta.mMsgId; + setGroup(group, false); setPost(post); @@ -83,7 +89,9 @@ void PostedItem::setup() ui->fromLabel->clear(); ui->siteLabel->clear(); ui->newCommentLabel->hide(); + ui->frame_picture->hide(); ui->commLabel->hide(); + ui->frame_notes->hide(); /* general ones */ connect(ui->clearButton, SIGNAL(clicked()), this, SLOT(removeItem())); @@ -94,8 +102,17 @@ void PostedItem::setup() connect(ui->commentButton, SIGNAL( clicked()), this, SLOT(loadComments())); connect(ui->voteUpButton, SIGNAL(clicked()), this, SLOT(makeUpVote())); connect(ui->voteDownButton, SIGNAL(clicked()), this, SLOT( makeDownVote())); + connect(ui->expandButton, SIGNAL(clicked()), this, SLOT( toggle())); + connect(ui->notesButton, SIGNAL(clicked()), this, SLOT( toggleNotes())); connect(ui->readButton, SIGNAL(toggled(bool)), this, SLOT(readToggled(bool))); + + QAction *CopyLinkAction = new QAction(QIcon(""),tr("Copy RetroShare Link"), this); + connect(CopyLinkAction, SIGNAL(triggered()), this, SLOT(copyMessageLink())); + + QMenu *menu = new QMenu(); + menu->addAction(CopyLinkAction); + ui->shareButton->setMenu(menu); ui->clearButton->hide(); ui->readAndClearButton->hide(); @@ -206,7 +223,7 @@ void PostedItem::loadComment(const uint32_t &token) if (comNb == 1) { sComButText = sComButText.append("(1)"); } else if (comNb > 1) { - sComButText = tr("Comments").append("(%1)").arg(comNb); + sComButText = tr("Comments").append(" (%1)").arg(comNb); } ui->commentButton->setText(sComButText); } @@ -219,11 +236,29 @@ void PostedItem::fill() } mInFill = true; + + if(mPost.mImage.mData != NULL) + { + QPixmap pixmap; + pixmap.loadFromData(mPost.mImage.mData, mPost.mImage.mSize, "PNG"); + // Wiping data - as its been passed to thumbnail. + + QPixmap sqpixmap = pixmap.scaled(800, 600, Qt::KeepAspectRatio, Qt::SmoothTransformation); + ui->pictureLabel->setPixmap(sqpixmap); + + ui->thumbnailLabel->setPixmap(pixmap); + }else + { + ui->expandButton->setDisabled(true); + } QDateTime qtime; qtime.setTime_t(mPost.mMeta.mPublishTs); QString timestamp = qtime.toString("hh:mm dd-MMM-yyyy"); - ui->dateLabel->setText(timestamp); + QString timestamp2 = misc::timeRelativeToNow(mPost.mMeta.mPublishTs); + ui->dateLabel->setText(timestamp2); + ui->dateLabel->setToolTip(timestamp); + ui->fromLabel->setId(mPost.mMeta.mAuthorId); // Use QUrl to check/parse our URL @@ -256,9 +291,14 @@ void PostedItem::fill() QString siteurl = url.scheme() + "://" + url.host(); sitestr = QString(" %2 ").arg(siteurl).arg(siteurl); + + ui->titleLabel->setText(urlstr); + }else + { + ui->titleLabel->setText(messageName()); + } - ui->titleLabel->setText(urlstr); ui->siteLabel->setText(sitestr); //QString score = "Hot" + QString::number(post.mHotScore); @@ -272,7 +312,7 @@ void PostedItem::fill() // FIX THIS UP LATER. ui->notes->setText(QString::fromUtf8(mPost.mNotes.c_str())); if(ui->notes->text().isEmpty()) - ui->frame_notes->hide(); + ui->notesButton->hide(); // differences between Feed or Top of Comment. if (mFeedHolder) { @@ -451,3 +491,55 @@ void PostedItem::readAndClearItem() readToggled(false); removeItem(); } + +void PostedItem::toggle() +{ + expand(ui->frame_picture->isHidden()); +} + +void PostedItem::doExpand(bool open) +{ + if (open) + { + ui->frame_picture->show(); + ui->expandButton->setIcon(QIcon(QString(":/images/decrease.png"))); + ui->expandButton->setToolTip(tr("Hide")); + } + else + { + ui->frame_picture->hide(); + ui->expandButton->setIcon(QIcon(QString(":/images/expand.png"))); + ui->expandButton->setToolTip(tr("Expand")); + } + + emit sizeChanged(this); + +} + +void PostedItem::copyMessageLink() +{ + if (groupId().isNull() || mMessageId.isNull()) { + return; + } + + RetroShareLink link = RetroShareLink::createGxsMessageLink(RetroShareLink::TYPE_POSTED, groupId(), mMessageId, messageName()); + + if (link.valid()) { + QList urls; + urls.push_back(link); + RSLinkClipboard::copyLinks(urls); + } +} + +void PostedItem::toggleNotes() +{ + if (ui->notesButton->isChecked()) + { + ui->frame_notes->show(); + } + else + { + ui->frame_notes->hide(); + } + +} diff --git a/retroshare-gui/src/gui/Posted/PostedItem.h b/retroshare-gui/src/gui/Posted/PostedItem.h index 50a200679..333018dee 100644 --- a/retroshare-gui/src/gui/Posted/PostedItem.h +++ b/retroshare-gui/src/gui/Posted/PostedItem.h @@ -30,6 +30,7 @@ namespace Ui { class PostedItem; } +class FeedHolder; class RsPostedPost; class PostedItem : public GxsFeedItem @@ -50,7 +51,7 @@ public: protected: /* FeedItem */ - virtual void doExpand(bool /*open*/) {} + virtual void doExpand(bool open); private slots: void loadComments(); @@ -58,6 +59,9 @@ private slots: void makeDownVote(); void readToggled(bool checked); void readAndClearItem(); + void toggle(); + void copyMessageLink(); + void toggleNotes(); signals: void vote(const RsGxsGrpMsgIdPair& msgId, bool up); @@ -83,6 +87,7 @@ private: RsPostedGroup mGroup; RsPostedPost mPost; + RsGxsMessageId mMessageId; /** Qt Designer generated object */ Ui::PostedItem *ui; diff --git a/retroshare-gui/src/gui/Posted/PostedItem.ui b/retroshare-gui/src/gui/Posted/PostedItem.ui index bebf874c2..af284a7a0 100644 --- a/retroshare-gui/src/gui/Posted/PostedItem.ui +++ b/retroshare-gui/src/gui/Posted/PostedItem.ui @@ -6,15 +6,33 @@ 0 0 - 765 - 230 + 617 + 190
- - + + + + + + 6 + + + 0 + + + 6 + + + 0 + + + 0 + + @@ -23,7 +41,7 @@ - true + false QFrame::Box @@ -31,44 +49,178 @@ QFrame::Sunken - - - - - - 0 - 0 - + + + 0 + + + 0 + + + 0 + + + 0 + + + 6 + + + + + - - - 75 - true - + + QFrame::NoFrame - - This is a very very very very loooooooooooooooonnnnnnnnnnnnnnnnng title don't you think? Yes it is and should wrap around I hope - - - Qt::AlignLeading|Qt::AlignLeft|Qt::AlignTop - - - true - - - true + + QFrame::Plain + + + 0 + + + 3 + + + 3 + + + 3 + + + 3 + + + + + + 0 + 0 + + + + + 24 + 24 + + + + Vote up + + + + + + + :/images/up-arrow.png:/images/up-arrow.png + + + + 16 + 16 + + + + true + + + + + + + 0 + + + Qt::AlignCenter + + + + + + + + 0 + 0 + + + + + 0 + 0 + + + + Vote down + + + \/ + + + + :/images/down-arrow.png:/images/down-arrow.png + + + + 16 + 16 + + + + true + + + + + + + Qt::Vertical + + + QSizePolicy::Expanding + + + + 20 + 5 + + + + + - - + + - 0 + 6 - + + + + 100 + 75 + + + + + 100 + 75 + + + + + + + QFrame::NoFrame + - New Comment: + + + + :/images/thumb-default.png true @@ -76,265 +228,445 @@ - - - Comment Value - - - - - - - - - - - 0 - - - Qt::AlignCenter - - - - - - - - 24 - 24 - - - - Vote up - - - - - - - :/images/vote_up.png:/images/vote_up.png - - - - - - - - 24 - 24 - - - - Vote down - - - \/ - - - - :/images/vote_down.png:/images/vote_down.png - - - - - - - - 24 - 16777215 - - - - Qt::NoFocus - - - Toggle Message Read Status - - - - :/images/message-state-unread.png:/images/message-state-unread.png - - - true - - - false - - - false - - - - - - - New - - - - - - - Comments - - - - - - - - 0 - 0 - - - - You eyes only - - - true - - - - - - - - 0 - 0 - - - - - 75 - true - - - - By - - - - - - - - 0 - 0 - - - - Signed by - - - true - - - - - - - - 0 - 0 - - - - - 75 - true - - - - Site - - - - - - - - 0 - 0 - - - - Signed by - - - true - - - - - + - Qt::Horizontal + Qt::Vertical - 118 - 20 + 50 + 5 + + + + + + 6 + - - - - 24 - 16777215 - + + + + 0 + 0 + - - Qt::NoFocus + + + 75 + true + - - Set as read and remove item + + This is a very very very very loooooooooooooooonnnnnnnnnnnnnnnnng title don't you think? Yes it is and should wrap around I hope - - - :/images/cancel.png:/images/cancel.png + + Qt::AlignLeading|Qt::AlignLeft|Qt::AlignTop + + + true + + + true - - - - 24 - 16777215 - + + + 0 - - Qt::NoFocus + + + + New Comment: + + + true + + + + + + + Comment Value + + + + + + + + + + + 0 + + + QLayout::SetDefaultConstraint + + + + + 3 - - Remove Item + + 0 - - - :/images/close_normal.png:/images/close_normal.png + + 6 - + + + + + 0 + 0 + + + + + 75 + true + + + + Posted by + + + + + + + + 0 + 0 + + + + Signed by + + + true + + + + + + + + 0 + 0 + + + + You eyes only + + + true + + + + + + + + 0 + 0 + + + + + 75 + true + + + + Site + + + + + + + + 0 + 0 + + + + site + + + true + + + + + + + Qt::Horizontal + + + QSizePolicy::Expanding + + + + 70 + 20 + + + + + + + + + + 0 + + + 3 + + + + + + + + + :/images/expand.png:/images/expand.png + + + true + + + + + + + + 24 + 16777215 + + + + Qt::NoFocus + + + Toggle Message Read Status + + + + :/images/message-state-unread.png:/images/message-state-unread.png + + + true + + + false + + + true + + + + + + + New + + + + + + + Comments + + + + :/images/comments.png:/images/comments.png + + + Qt::ToolButtonTextBesideIcon + + + true + + + + + + + Share + + + + :/images/share.png:/images/share.png + + + true + + + + + + + Notes + + + + :/images/notes.png:/images/notes.png + + + true + + + Qt::ToolButtonTextBesideIcon + + + true + + + + + + + Qt::Horizontal + + + + 118 + 20 + + + + + + + + + 24 + 16777215 + + + + Qt::NoFocus + + + Set as read and remove item + + + + :/images/cancel.png:/images/cancel.png + + + + + + + + 24 + 16777215 + + + + Qt::NoFocus + + + Remove Item + + + + :/images/close_normal.png:/images/close_normal.png + + + + - titleLabel - + + + + + 800 + 600 + + + + QFrame::StyledPanel + + + QFrame::Raised + + + + + + Qt::Horizontal + + + + 257 + 20 + + + + + + + + TextLabel + + + true + + + + + + + Qt::Horizontal + + + + 257 + 20 + + + + + + + + - QFrame::NoFrame + QFrame::Box QFrame::Sunken - - 1 + + 3 + + + 3 + + + 3 + + + 3 1 @@ -374,6 +706,7 @@ + diff --git a/retroshare-gui/src/gui/Posted/Posted_images.qrc b/retroshare-gui/src/gui/Posted/Posted_images.qrc index 2e9cae6c0..0b9e06f2b 100644 --- a/retroshare-gui/src/gui/Posted/Posted_images.qrc +++ b/retroshare-gui/src/gui/Posted/Posted_images.qrc @@ -11,5 +11,13 @@ images/hot_24.png images/new_24.png images/posted_32_new.png + images/expand.png + images/decrease.png + images/down-arrow.png + images/up-arrow.png + images/comments.png + images/thumb-default.png + images/share.png + images/notes.png diff --git a/retroshare-gui/src/gui/Posted/images/comments.png b/retroshare-gui/src/gui/Posted/images/comments.png new file mode 100644 index 000000000..b7af0d150 Binary files /dev/null and b/retroshare-gui/src/gui/Posted/images/comments.png differ diff --git a/retroshare-gui/src/gui/Posted/images/decrease.png b/retroshare-gui/src/gui/Posted/images/decrease.png new file mode 100644 index 000000000..39e488c17 Binary files /dev/null and b/retroshare-gui/src/gui/Posted/images/decrease.png differ diff --git a/retroshare-gui/src/gui/Posted/images/down-arrow.png b/retroshare-gui/src/gui/Posted/images/down-arrow.png new file mode 100644 index 000000000..b6c7fcc06 Binary files /dev/null and b/retroshare-gui/src/gui/Posted/images/down-arrow.png differ diff --git a/retroshare-gui/src/gui/Posted/images/expand.png b/retroshare-gui/src/gui/Posted/images/expand.png new file mode 100644 index 000000000..66b2f6d0c Binary files /dev/null and b/retroshare-gui/src/gui/Posted/images/expand.png differ diff --git a/retroshare-gui/src/gui/Posted/images/notes.png b/retroshare-gui/src/gui/Posted/images/notes.png new file mode 100644 index 000000000..a73a03968 Binary files /dev/null and b/retroshare-gui/src/gui/Posted/images/notes.png differ diff --git a/retroshare-gui/src/gui/Posted/images/share.png b/retroshare-gui/src/gui/Posted/images/share.png new file mode 100644 index 000000000..2a8d87e26 Binary files /dev/null and b/retroshare-gui/src/gui/Posted/images/share.png differ diff --git a/retroshare-gui/src/gui/Posted/images/thumb-default.png b/retroshare-gui/src/gui/Posted/images/thumb-default.png new file mode 100644 index 000000000..b52cc1f02 Binary files /dev/null and b/retroshare-gui/src/gui/Posted/images/thumb-default.png differ diff --git a/retroshare-gui/src/gui/Posted/images/up-arrow.png b/retroshare-gui/src/gui/Posted/images/up-arrow.png new file mode 100644 index 000000000..728ccf068 Binary files /dev/null and b/retroshare-gui/src/gui/Posted/images/up-arrow.png differ diff --git a/retroshare-gui/src/gui/qss/stylesheet/Standard.qss b/retroshare-gui/src/gui/qss/stylesheet/Standard.qss index 6f2c83e40..a6089ab59 100644 --- a/retroshare-gui/src/gui/qss/stylesheet/Standard.qss +++ b/retroshare-gui/src/gui/qss/stylesheet/Standard.qss @@ -1,885 +1,913 @@ -/* Standard stylesheet for RetroShare */ - -/* Standard rules */ - -QFrame#titleBarFrame, QFrame#toolBarFrame { - background-color: qlineargradient(x1:0, y1:0, x2:0, y2:1, stop:0 #FEFEFE, stop:1 #E8E8E8); - border: 1px solid #CCCCCC; -} - -/* HeaderFrame */ - -HeaderFrame > QFrame#frame { - background-color: qlineargradient(x1:0, y1:0, x2:0, y2:1, stop:0 #9BDBF9, stop:1 #1592CD); - border: 0px; -} - -HeaderFrame > QFrame#frame > QLabel#headerLabel { - color: rgb(255, 255, 255); -} - -/* GenCertDialog */ - -GenCertDialog QLabel#genprofileinfo_label, QLabel#header_label, QLabel#entropy_label -{ - border: 1px solid #DCDC41; - border-radius: 6px; - background: #FFFFD7; - background-color: qlineargradient(x1:0, y1:0, x2:0, y2:1, stop:0 #FFFFD7, stop:1 #FFFFB2); -} - -GenCertDialog QLabel#label_hiddenaddr { - border: 1px solid #50FF5B; - border-radius: 6px; - background: #CCFFCC; - background-color: qlineargradient(x1:0, y1:0, x2:0, y2:1, stop:0 #CCFFCC, stop:1 #AAFFAA); -} -GenCertDialog QLabel#no_node_label, GenCertDialog QLabel#no_gpg_key_label { - border: 1px solid #FFC550; - border-radius: 6px; - background: #FFEECC; - background-color: qlineargradient(x1:0, y1:0, x2:0, y2:1, stop:0 #FFEECC, stop:1 #FFE3AB); - padding: 4px; - font-size: 14px; -} - -GenCertDialog > QFrame#headerFrame > QLabel#headerLabel { - color: rgb(255, 255, 255); -} - -GenCertDialog > QFrame#frame { - background-color: qlineargradient(x1:0, y1:0, x2:0, y2:1, stop:0 #FEFEFE, stop:1 #E8E8E8); - border: 1px solid #CCCCCC; -} - -/* ConnectFriendWizard */ - -ConnectFriendWizard { -/* QWizard cannot be resized horizontal when banner pixmap is set - qproperty-bannerPixmap: url(:/images/connect/connectFriendBanner1.png);*/ - qproperty-titleFontSize: 16; - qproperty-titleFontWeight: 500; -/* qproperty-titleColor: white; */ -} - -/* FriendsDialog */ - -FriendsDialog QFrame#headFrame { - background-color: qlineargradient(x1:0, y1:0, x2:0, y2:1, stop:0 #9BDBF9, stop:1 #1592CD); - border: 1px; - border-radius: 4px; -} - -FriendsDialog QFrame#headFrame > QLabel#nicknameLabel { - color: rgb(255, 255, 255); -} - -FriendsDialog QTextEdit#msgText, FriendsDialog QTextEdit#lineEdit { - border: 1px solid #CCCCCC; -} - -/* Channels */ - -ChannelFeed QFrame#headFrame { - background-color: qlineargradient(x1:0, y1:0, x2:0, y2:1, stop:0 #F2F2F2, stop:1 #E6E6E6); - border: 1px solid #CCCCCC; -} - -ChannelFeed QLabel#logoLabel, EditChanDetails QLabel#logoLabel, CreateChannel QLabel#logoLabel { - border: 2px solid white; -} - -CreateChannelMsg QFrame#fileFrame { - border: 2px solid black; - background: white; -} - -GxsCreateCommentDialog QTextEdit#commentTextEdit { - border: 2px solid #0099cc; - border-radius: 6px; - background: white; -} - -GxsCreateCommentDialog QLabel#titleLabel { - font-size: 12px; - font-weight: 600; - color: black; -} - -GxsCreateCommentDialog QLabel#replaytolabel { - font-weight: bold; - color: gray; -} - -GxsCreateCommentDialog QFrame#frame { - background: white; -} - - - -/* Forums */ - -GxsForumThreadWidget QLabel#forumName -{ - font: bold; -} - -CreateForumMsg > QToolBar#toolBar, CreateForumV2Msg > QToolBar#toolBar { - background-image: url(:/images/headerFrame.png); -} - -/* MessengerWindow */ - -MessengerWindow QFrame#logoFrame { - background-color: qlineargradient(x1:0, y1:0, x2:0, y2:1, stop:0 #FEFEFE, stop:1 #E8E8E8); - border: 1px solid #CCCCCC; -} - -MessengerWindow QFrame#messengerframetop{ - background-color: qlineargradient(x1:0, y1:0, x2:0, y2:1, stop:0 #9BDBF9, stop:1 #1592CD); - border: 0px; -} - -/* Create Distant Chat Invite */ - -CreateMsgLinkDialog QLabel#distantchatinfo_label -{ - border: 1px solid #DCDC41; - border-radius: 6px; - background: #FFFFD7; - background-color: qlineargradient(x1:0, y1:0, x2:0, y2:1, stop:0 #FFFFD7, stop:1 #FFFFB2); -} - -/* Chat lobby */ - -ChatLobbyWidget QLabel#lobbyinfo_label -{ - border: 1px solid #DCDC41; - border-radius: 6px; - background: #FFFFD7; - background-color: qlineargradient(x1:0, y1:0, x2:0, y2:1, stop:0 #FFFFD7, stop:1 #FFFFB2); -} - -ChatLobbyWidget QGroupBox#lobbyinfo_groupBox -{ - - background-color: qlineargradient(x1:0, y1:0, x2:0, y2:1, - stop:0 #FEFEFE, stop:1 #E8E8E8); - border-radius: 6px; - border: 1px solid #CCCCCC; - - padding: 14 6px; - font-size: 12px; - font-weight: bold; - -} - -ChatLobbyWidget QGroupBox::title#lobbyinfo_groupBox -{ - padding: 4 12px; - background: transparent; -} - -ChatLobbyWidget QLabel#lobbyInfoLabel { - border: 1px solid #DCDC41; - border-radius: 6px; - background: #FFFFD7; - background-color: qlineargradient(x1:0, y1:0, x2:0, y2:1, stop:0 #FFFFD7, stop:1 #FFFFB2); -} - - -ChatLobbyDialog QFrame#participantsFrame { - border: transparent; -} - -ChatLobbyDialog QListWidget#participantsList { - border: 1px solid #B8B6B1; - border-radius: 6px; - background: white; -} - -CreateLobbyDialog QFrame#roomFrame { - border: 2px solid #CCCCCC; - border-radius:6px; - background: white; -} - -CreateLobbyDialog QLabel#lobbyInfoLabel { - border: 1px solid #DCDC41; - border-radius: 6px; - background: #FFFFD7; - background-color: qlineargradient(x1:0, y1:0, x2:0, y2:1, stop:0 #FFFFD7, stop:1 #FFFFB2); -} - -ChatWidget QTextEdit#chatTextEdit, ChatWidget QTextBrowser#textBrowser { - border: 1px solid #0099cc; - border-radius: 6px; - background: white; -} - -ChatWidget QFrame#infoFrame { - border: 1px solid #DCDC41; - border-radius: 6px; - background: #FFFFD7; - background-color: qlineargradient(x1:0, y1:0, x2:0, y2:1, stop:0 #FFFFD7, stop:1 #FFFFB2); -} - -PopupChatWindow QToolBar#chattoolBar{ - background-color: qlineargradient(x1:0, y1:0, x2:0, y2:1, stop:0 #9BDBF9, stop:1 #1592CD); - border: 0px; -} - -/* Messages */ - -MessageComposer QToolBar#toolBar { - background-color: qlineargradient(x1:0, y1:0, x2:0, y2:1, stop:0 #9BDBF9, stop:1 #1592CD); - border: 0px; -} - -MessagesDialog QFrame#folderFrame, MessagesDialog QFrame#quickViewFrame { - background-color: qlineargradient(x1:0, y1:0, x2:0, y2:1, stop:0 #FEFEFE, stop:1 #E8E8E8); - border: 1px solid #CCCCCC; -} - -/* Profile */ - -ProfileWidget QFrame#frame_1, ProfileWidget QFrame#frame_2, ProfileWidget QFrame#frame_3 { - background-color: white; - border: 2px solid #CCCCCC; -} - -/* Settings */ - -PluginItem > QFrame#frame { - border: 2px solid #A8B8D1; - background-color: qlineargradient(x1: 0, y1: 0, x2: 0, y2: 1, stop: 0 #FCFDFE, stop: 1 #E2E8EF); - border-radius: 0px -} - -/* Network */ - -/*NetworkView > QGraphWidget#graphicsView -{ - background-color: qlineargradient(x1:0, y1:0, x2:0, y2:1,stop:0 lightgray, stop:1 darkgray); -} -*/ - -/* SearchDialog */ - -SearchDialog QFrame#searchLineFrame[valid=false] { - border: 2px solid #079E00; - background-color: #DBDBDB; -} - -SearchDialog QFrame#searchLineFrame[valid=true] { - border: 2px solid #079E00; - background-color: white; -} - -SearchDialog QPushButton#pushButtonSearch { - border-image: url(:/images/btn1.png) 4; - border-width: 4; - padding: 0px 6px; - font-size: 12px; - color: black; -} - -SearchDialog QPushButton#pushButtonSearch:hover { - border-image: url(:/images/btn2.png) 4; -} - -SearchDialog QPushButton#pushButtonSearch:pressed { - border-image: url(:/images/btn3.png) 4; -} - -SearchDialog QFrame#searchLineFrame > QLineEdit { - background: transparent; - border: none; -} - -/* GetStartedDialog */ - -GetStartedDialog QTextEdit { - border: 1px solid #B8B6B1; - border-radius: 6px; - background: white; -} - -/* GenCertDialog */ - -/* GenCertDialog > QFrame#headerFrame { - background-image: url(:/images/genbackground.png); -} - -GenCertDialog > QFrame#headerFrame > QLabel#headerLabel { - color: rgb(255, 255, 255); -} -*/ - -/* ConnectFriendWizard */ - -ConnectFriendWizard QWizardPage#ConclusionPage > QGroupBox#peerDetailsFrame { - border: 2px solid #CCCCCC; - border-radius:6px; - background: white; - padding: 12 12px; -} - -ConnectFriendWizard QLabel#fr_label, QLabel#requestinfolabel -{ - border: 1px solid #DCDC41; - border-radius: 6px; - background: #FFFFD7; - background-color: qlineargradient(x1:0, y1:0, x2:0, y2:1, stop:0 #FFFFD7, stop:1 #FFFFB2); -} - -/* Toaster */ - -ChatToaster > QFrame#windowFrame, -ChatLobbyToaster > QFrame#windowFrame, -DownloadToaster > QFrame#windowFrame, -FriendRequestToaster > QFrame#windowFrame, -GroupChatToaster > QFrame#windowFrame, -MessageToaster >QFrame#windowFrame, -OnlineToaster > QFrame#windowFrame { - background-image: url(:/images/toaster/backgroundtoaster.png); -} - -/* Feeds */ - -AttachFileItem > QFrame#frame { - border: 2px solid black; - background: white; -} - -ChanNewItem > QFrame#frame { - border: 2px solid #D3D3D3; - background-color: qlineargradient(x1:0, y1:0, x2:0, y2:1, stop:0 #FFFFFF, stop:1 #F2F2F2); - border-radius: 10px; -} - -ChanNewItem QLabel#logoLabel { - border: 2px solid #D3D3D3; - border-radius: 2px; -} - -GxsChannelPostItem > QFrame#mainFrame[new=false] { - border: 3px solid #D3D3D3; - background-color: qlineargradient(x1:0, y1:0, x2:0, y2:1, stop:0 #FFFFFF, stop:1 #F2F2F2); - border-radius: 10px; -} - -GxsChannelPostItem > QFrame#mainFrame[new=true] { - border: 3px solid #82B9F4; - background-color: qlineargradient(x1:0, y1:0, x2:0, y2:1, stop:0 #F0F8FD, stop:0.8 #E6F2FD, stop: 0.81 #E6F2FD, stop: 1 #D2E7FD); - border-radius: 10px; -} - -GxsChannelPostItem QLabel#newLabel { - border: 1px solid #167BE7; - background-color: qlineargradient(x1: 0, y1: 0, x2: 0, y2: 1, stop: 0 #2291E0, stop: 1 #3EB3FF); - border-radius: 3px; -} - -GxsChannelPostItem QFrame#msgFrame { - border: 2px solid #238; - border-radius: 10px; -} - -GxsChannelPostItem QLabel#logoLabel { - border: 2px solid #D3D3D3; -} - -GxsChannelPostItem QLabel#logoLabel { - background-color: black; -} - -ChatMsgItem > QFrame#frame { - border: 2px solid black; - background-color: #FEF6DE; - border-radius: 10px; -} - -ChatMsgItem QWidget#avatar { - border: 2px solid black; -} - -ChatMsgItem QLabel#peerNameLabel { - color: #990033; -} - -ForumNewItem > QFrame#frame, ForumMsgItem > QFrame#frame { - border: 2px solid #CCCCCC; - background: qlineargradient(x1: 0, y1: 0, x2: 0, y2: 1, stop: 0 #EEEEEE, stop: 1 #CCCCCC); - border-radius: 10px; -} - -ForumNewItem > QLabel#nextNameLabel, ForumMsgItem > QLabel#nameLabel { - color: rgb(59, 89, 152); -} - -ForumMsgItem QLabel#iconLabel { - border: 2px solid #CCCCCC; - background: qlineargradient(x1: 0, y1: 0, x2: 0, y2: 1, stop: 0 #EEEEEE, stop: 1 #CCCCCC); - border-radius: 10px -} - -ForumMsgItem QFrame#prevFrame { - border: 2px solid black; - border-radius: 10px; -} - -PeerItem > QFrame#frame { - border: 2px solid green; - background-color: qlineargradient(x1: 0, y1: 0, x2: 0, y2: 1, stop: 0 #BDDF7D, stop: 1 #649C35); - border-radius: 10px; -} - -PeerItem QWidget#avatar { - border: 2px solid green; - background-color: #BDDF7D; -} - -PeerItem QLabel#peerNameLabel { - color: #990033 -} - -MsgItem QFrame#frame { - border: 2px solid #0099cc; - border-radius: 6px; - background: white; -} - -MsgItem QFrame#inviteFrame { - border: 1px solid #DCDC41; - border-radius: 6px; - background: #FFFFD7; - background-color: qlineargradient(x1:0, y1:0, x2:0, y2:1, stop:0 #FFFFD7, stop:1 #FFFFB2); -} - -MsgItem QWidget#avatar { - background-color: #2291E0; -} - -SecurityItem > QFrame#frame { - border: 2px solid #FF9412; - background-color: qlineargradient(x1: 0, y1: 0, x2: 0, y2: 1, stop: 0 #FFE8A4, stop: 1 #FFB252); - border-radius: 10px; -} - -SecurityItem QLabel#peerNameLabel, SecurityItem QLabel#requestLabel { - color: black; -} - -SecurityIpItem > QFrame#frame { - border: 2px solid #FF9412; - background-color: qlineargradient(x1: 0, y1: 0, x2: 0, y2: 1, stop: 0 #FFE8A4, stop: 1 #FFB252); - border-radius: 10px; -} - -SubFileItem > QFrame#frame { - border: 2px solid #238; - background: white; - border-radius: 10px; -} - -SubFileItem QProgressBar#progressBar { - border: 1px solid black; - text-align: center; - color: white; - padding: 1px; - border-top-left-radius: 7px; - border-bottom-left-radius: 7px; - background: QLinearGradient( x1: 0, y1: 0, x2: 0, y2: 1, stop: 0 #fff, stop: 0.4999 #eee, stop: 0.5 #ddd, stop: 1 #eee); - min-width: 15px; -} - -SubFileItem QProgressBar#progressBar::chunk { - background: QLinearGradient( x1: 0, y1: 0, x2: 0, y2: 1, stop: 0 #78d, stop: 0.4999 #46a, stop: 0.5 #45a, stop: 1 #238); - border-top-left-radius: 7px; - border-bottom-left-radius: 7px; - border: 1px solid black; - min-width: 15px; -} - -PluginItem QLabel#infoLabel { - - color: #054A02; - font: bold; - -} - -ConfCertDialog QPlainTextEdit#plainTextEdit { - border: 1px solid #DCDC41; - border-radius: 6px; - background: #FFFFD7; - background-color: qlineargradient(x1:0, y1:0, x2:0, y2:1, stop:0 #FFFFD7, stop:1 #FFFFB2); -} - -ServerPage QPlainTextEdit#plainTextEdit { - border: 1px solid #DCDC41; - border-radius: 6px; - background: #FFFFD7; - background-color: qlineargradient(x1:0, y1:0, x2:0, y2:1, stop:0 #FFFFD7, stop:1 #FFFFB2); -} - -ServerPage QPlainTextEdit#hiddenpageInHelpPlainTextEdit { - border: 1px solid #DCDC41; - border-radius: 6px; - background: #FFFFD7; - background-color: qlineargradient(x1:0, y1:0, x2:0, y2:1, stop:0 #FFFFD7, stop:1 #FFFFB2); -} - -ServerPage QPlainTextEdit#pteBobSimple { - border: 1px solid #DCDC41; - border-radius: 6px; - background: #FFFFD7; - background-color: qlineargradient(x1:0, y1:0, x2:0, y2:1, stop:0 #FFFFD7, stop:1 #FFFFB2); -} - - -/* ProfileManager */ - -ProfileManager > QFrame#headerFrame { - background-color: qlineargradient(x1:0, y1:0, x2:0, y2:1, stop:0 #9BDBF9, stop:1 #1592CD); - border: 1px solid #CCCCCC; -} - -ProfileManager QTextEdit#textEdit -{ - border: 1px solid #DCDC41; - border-radius: 6px; - background: #FFFFD7; - background-color: qlineargradient(x1:0, y1:0, x2:0, y2:1, stop:0 #FFFFD7, stop:1 #FFFFB2); -} - -/* RSImageBlockWidget */ - -RSImageBlockWidget QFrame#infoFrame { - border: 1px solid #DCDC41; - border-radius: 6px; - background: #FFFFD7; - background-color: qlineargradient(x1:0, y1:0, x2:0, y2:1, stop:0 #FFFFD7, stop:1 #FFFFB2); -} - -/* ShareManager */ - -ShareManager QLabel#labelInstructions { - border: 1px solid #DCDC41; - border-radius: 6px; - background: #FFFFD7; - background-color: qlineargradient(x1:0, y1:0, x2:0, y2:1, stop:0 #FFFFD7, stop:1 #FFFFB2); -} - -/* MessageWidget */ - -MessageWidget QFrame#decryptFrame { - border: 1px solid #50FF5B; - border-radius: 6px; - background: #CCFFCC; - background-color: qlineargradient(x1:0, y1:0, x2:0, y2:1, stop:0 #CCFFCC, stop:1 #AAFFAA); -} - -MessageWidget QFrame#inviteFrame { - border: 1px solid #DCDC41; - border-radius: 6px; - background: #FFFFD7; - background-color: qlineargradient(x1:0, y1:0, x2:0, y2:1, stop:0 #FFFFD7, stop:1 #FFFFB2); -} - -/* Posted Links */ - -PostedCreatePostDialog QLabel#info_label { - border: 1px solid #DCDC41; - border-radius: 6px; - background: #FFFFD7; - background-color: qlineargradient(x1:0, y1:0, x2:0, y2:1, stop:0 #FFFFD7, stop:1 #FFFFB2); -} - -PostedItem QFrame#frame { - border: 2px solid #CCCCCC; - background: qlineargradient(x1: 0, y1: 0, x2: 0, y2: 1, stop: 0 #EEEEEE, stop: 1 #CCCCCC); - border-radius: 10px -} - -PostedItem QLabel#notes { - border: 2px solid #CCCCCC; - border-radius: 10px -} - -QLabel#sharekeyinfo_label{ - border: 1px solid #DCDC41; - border-radius: 6px; - background: #FFFFD7; - background-color: qlineargradient(x1:0, y1:0, x2:0, y2:1, stop:0 #FFFFD7, stop:1 #FFFFB2); -} - -QLabel#subscribersLabel{ - border: 1px solid #CCCCCC; - border-radius: 6px; - -} - -QFrame#distantFrame{ - border: 1px solid #DCDC41; - border-radius: 6px; - background: #FFFFD7; - background-color: qlineargradient(x1:0, y1:0, x2:0, y2:1, stop:0 #FFFFD7, stop:1 #FFFFB2); -} - -QLabel#avatarLabel{ - border: 2px solid #CCCCCC; - border-radius: 4px; -} - -IdDialog QFrame#headerFramePerson { - background-color: qlineargradient(x1:0, y1:0, x2:0, y2:1, stop:0 #9BDBF9, stop:1 #1592CD); - border: 1px; - border-radius: 4px; -} - -IdDialog QFrame#headerFrameCircle { - background-color: qlineargradient(x1:0, y1:0, x2:0, y2:1, stop:0 #9BDBF9, stop:1 #1592CD); - border: 1px; - border-radius: 4px; -} - -IdDialog QLabel#headerTextLabel { - color: rgb(255, 255, 255); -} - -IdDialog QLabel#headerTextLabel_Person { - color: rgb(255, 255, 255); -} - -IdDialog QLabel#headerTextLabel_Circles { - color: rgb(255, 255, 255); -} - -IdDialog QLabel#avlabel { - border: 4px solid white; - border-radius: 10px; -} - -IdDialog QFrame#inviteFrame { - border: 1px solid #DCDC41; - border-radius: 6px; - background: #FFFFD7; - background-color: qlineargradient(x1:0, y1:0, x2:0, y2:1, stop:0 #FFFFD7, stop:1 #FFFFB2); -} - -IdEditDialog QLabel#info_label -{ - border: 1px solid #DCDC41; - border-radius: 6px; - background: #FFFFD7; - background-color: qlineargradient(x1:0, y1:0, x2:0, y2:1, stop:0 #FFFFD7, stop:1 #FFFFB2); -} -GenCertDialog QComboBox#genPGPuser { - border: 2px solid #0099cc; - border-radius: 6px; - background: white; - font: bold; -} -GenCertDialog QSpinBox#hiddenport_spinBox { - border: 2px solid #0099cc; - border-radius: 6px; - background: white; - font: bold; -} -GenCertDialog QLineEdit#hiddenaddr_input { - border: 2px solid #0099cc; - border-radius: 6px; - background: white; - font: bold; -} -GenCertDialog QLineEdit#password2_input { - border: 2px solid #0099cc; - border-radius: 6px; - background: white; - font: bold; -} -GenCertDialog QLineEdit#password_input { - border: 2px solid #0099cc; - border-radius: 6px; - background: white; - font: bold; -} -GenCertDialog QLineEdit#nickname_input { - border: 2px solid #0099cc; - border-radius: 6px; - background: white; - font: bold; -} -GenCertDialog QLineEdit#node_input { - border: 2px solid #0099cc; - border-radius: 6px; - background: white; - font: bold; -} -GenCertDialog QLineEdit#name_input { - border: 2px solid #0099cc; - border-radius: 6px; - background: white; - font: bold; -} -GenCertDialog QPushButton#genButton { - border-image: url(:/images/btn_blue.png) 4; - border-width: 4; - font: bold; - color: white; -} - -GenCertDialog QPushButton#genButton:hover { - border-image: url(:/images/btn_blue_hover.png) 4; -} - -GenCertDialog QPushButton#genButton:disabled { - border-image: url(:/images/btn_27.png) 4; -/* font-size: 16px; */ - font: bold; - color: black; -} - -ConnectFriendWizard QRadioButton { - font-size: 16px; -} - -ConnectFriendWizard QPlainTextEdit#friendCertEdit { - border: none; - background: white; -} - -HomePage QPlainTextEdit#userCertEdit { - border: 2px solid #0099cc; - border-radius: 6px; - background: white; -} - -HomePage QFrame#addframe{ - border: 2px solid #0099cc; - border-radius: 6px; - background: white; -} - -ConnectFriendWizard QFrame#friendFrame { - border: 2px solid #0099cc; - border-radius: 6px; - background: white; -} - -HomePage QFrame#helpframe{ - border: 2px solid #009933; - border-radius: 6px; - background: white; -} - -StartDialog QPushButton#loadButton { - border-image: url(:/images/btn_blue.png) 4; - border-width: 4; - font: bold; - color: white; -} - -StartDialog QPushButton#loadButton:hover { - border-image: url(:/images/btn_blue_hover.png) 4; -} - -StartDialog QFrame#loginframe{ - border-image: url(:/images/logo/background_lessblue.png) 0 0 0 0 stretch stretch; - border-width: 0px; -} - -GenCertDialog QFrame#profileframe{ - border-image: url(:/images/logo/background.png) 0 0 0 0 stretch stretch; - border-width: 0px; -} - -PostedListWidget QComboBox#comboBox { - font: bold; - font-size: 15px; - color: #0099cc; -} - -PostedListWidget QToolButton#submitPostButton { - font: bold; - font-size: 15px; -} - -PostedListWidget QToolButton#subscribeToolButton { - font: bold; - font-size: 15px; - color: white; - background: #0099cc; - border-radius: 4px; -} - -PostedListWidget QToolButton#subscribeToolButton:hover { - background: #03b1f3; - border-radius: 4px; -} - -PostedListWidget QFrame#headerFrame { - background-color: qlineargradient(x1:0, y1:0, x2:0, y2:1, stop:0 #FEFEFE, stop:1 #E8E8E8); - border: 1px solid #CCCCCC; -} - -GxsForumThreadWidget QToolButton#subscribeToolButton { - font: bold; - font-size: 14px; - color: white; - background: #0099cc; - border-radius: 4px; -} - -GxsForumThreadWidget QToolButton#subscribeToolButton:hover { - background: #03b1f3; - border-radius: 4px; -} - -GxsChannelPostsWidget QFrame#infoFrame -{ - border: 1px solid #DCDC41; - border-radius: 6px; - background: #FFFFD7; - background-color: qlineargradient(x1:0, y1:0, x2:0, y2:1, stop:0 #FFFFD7, stop:1 #FFFFB2); -} - -GxsChannelPostsWidget QToolButton#subscribeToolButton { - font: bold; - font-size: 14px; - color: white; - background: #0099cc; - border-radius: 4px; -} - -GxsChannelPostsWidget QToolButton#subscribeToolButton:hover { - background: #03b1f3; - border-radius: 4px; -} - -GxsChannelPostsWidget QToolButton#subscribeToolButton:pressed { - background: #03b1f3; - border-radius: 4px; - border: 1px solid gray; -} - -GxsChannelPostsWidget QToolButton#subscribeToolButton:disabled { - background: gray; - border-radius: 4px; - border: 1px solid gray; - color: lightgray; -} - -/* only for MenuButtonPopup */ -GxsChannelPostsWidget QToolButton#subscribeToolButton[popupMode="1"] { - padding-right: 0px; -} - -GxsChannelPostsWidget QToolButton#subscribeToolButton::menu-arrow { - image: none; -} - -GxsChannelPostsWidget QToolButton#subscribeToolButton::menu-button { - image: none; +/* Standard stylesheet for RetroShare */ + +/* Standard rules */ + +QFrame#titleBarFrame, QFrame#toolBarFrame { + background-color: qlineargradient(x1:0, y1:0, x2:0, y2:1, stop:0 #FEFEFE, stop:1 #E8E8E8); + border: 1px solid #CCCCCC; +} + +/* HeaderFrame */ + +HeaderFrame > QFrame#frame { + background-color: qlineargradient(x1:0, y1:0, x2:0, y2:1, stop:0 #9BDBF9, stop:1 #1592CD); + border: 0px; +} + +HeaderFrame > QFrame#frame > QLabel#headerLabel { + color: rgb(255, 255, 255); +} + +/* GenCertDialog */ + +GenCertDialog QLabel#genprofileinfo_label, QLabel#header_label, QLabel#entropy_label +{ + border: 1px solid #DCDC41; + border-radius: 6px; + background: #FFFFD7; + background-color: qlineargradient(x1:0, y1:0, x2:0, y2:1, stop:0 #FFFFD7, stop:1 #FFFFB2); +} + +GenCertDialog QLabel#label_hiddenaddr { + border: 1px solid #50FF5B; + border-radius: 6px; + background: #CCFFCC; + background-color: qlineargradient(x1:0, y1:0, x2:0, y2:1, stop:0 #CCFFCC, stop:1 #AAFFAA); +} +GenCertDialog QLabel#no_node_label, GenCertDialog QLabel#no_gpg_key_label { + border: 1px solid #FFC550; + border-radius: 6px; + background: #FFEECC; + background-color: qlineargradient(x1:0, y1:0, x2:0, y2:1, stop:0 #FFEECC, stop:1 #FFE3AB); + padding: 4px; + font-size: 14px; +} + +GenCertDialog > QFrame#headerFrame > QLabel#headerLabel { + color: rgb(255, 255, 255); +} + +GenCertDialog > QFrame#frame { + background-color: qlineargradient(x1:0, y1:0, x2:0, y2:1, stop:0 #FEFEFE, stop:1 #E8E8E8); + border: 1px solid #CCCCCC; +} + +/* ConnectFriendWizard */ + +ConnectFriendWizard { +/* QWizard cannot be resized horizontal when banner pixmap is set + qproperty-bannerPixmap: url(:/images/connect/connectFriendBanner1.png);*/ + qproperty-titleFontSize: 16; + qproperty-titleFontWeight: 500; +/* qproperty-titleColor: white; */ +} + +/* FriendsDialog */ + +FriendsDialog QFrame#headFrame { + background-color: qlineargradient(x1:0, y1:0, x2:0, y2:1, stop:0 #9BDBF9, stop:1 #1592CD); + border: 1px; + border-radius: 4px; +} + +FriendsDialog QFrame#headFrame > QLabel#nicknameLabel { + color: rgb(255, 255, 255); +} + +FriendsDialog QTextEdit#msgText, FriendsDialog QTextEdit#lineEdit { + border: 1px solid #CCCCCC; +} + +/* Channels */ + +ChannelFeed QFrame#headFrame { + background-color: qlineargradient(x1:0, y1:0, x2:0, y2:1, stop:0 #F2F2F2, stop:1 #E6E6E6); + border: 1px solid #CCCCCC; +} + +ChannelFeed QLabel#logoLabel, EditChanDetails QLabel#logoLabel, CreateChannel QLabel#logoLabel { + border: 2px solid white; +} + +CreateChannelMsg QFrame#fileFrame { + border: 2px solid black; + background: white; +} + +GxsCreateCommentDialog QTextEdit#commentTextEdit { + border: 2px solid #0099cc; + border-radius: 6px; + background: white; +} + +GxsCreateCommentDialog QLabel#titleLabel { + font-size: 12px; + font-weight: 600; + color: black; +} + +GxsCreateCommentDialog QLabel#replaytolabel { + font-weight: bold; + color: gray; +} + +GxsCreateCommentDialog QFrame#frame { + background: white; +} + + + +/* Forums */ + +GxsForumThreadWidget QLabel#forumName +{ + font: bold; +} + +CreateForumMsg > QToolBar#toolBar, CreateForumV2Msg > QToolBar#toolBar { + background-image: url(:/images/headerFrame.png); +} + +/* MessengerWindow */ + +MessengerWindow QFrame#logoFrame { + background-color: qlineargradient(x1:0, y1:0, x2:0, y2:1, stop:0 #FEFEFE, stop:1 #E8E8E8); + border: 1px solid #CCCCCC; +} + +MessengerWindow QFrame#messengerframetop{ + background-color: qlineargradient(x1:0, y1:0, x2:0, y2:1, stop:0 #9BDBF9, stop:1 #1592CD); + border: 0px; +} + +/* Create Distant Chat Invite */ + +CreateMsgLinkDialog QLabel#distantchatinfo_label +{ + border: 1px solid #DCDC41; + border-radius: 6px; + background: #FFFFD7; + background-color: qlineargradient(x1:0, y1:0, x2:0, y2:1, stop:0 #FFFFD7, stop:1 #FFFFB2); +} + +/* Chat lobby */ + +ChatLobbyWidget QLabel#lobbyinfo_label +{ + border: 1px solid #DCDC41; + border-radius: 6px; + background: #FFFFD7; + background-color: qlineargradient(x1:0, y1:0, x2:0, y2:1, stop:0 #FFFFD7, stop:1 #FFFFB2); +} + +ChatLobbyWidget QGroupBox#lobbyinfo_groupBox +{ + + background-color: qlineargradient(x1:0, y1:0, x2:0, y2:1, + stop:0 #FEFEFE, stop:1 #E8E8E8); + border-radius: 6px; + border: 1px solid #CCCCCC; + + padding: 14 6px; + font-size: 12px; + font-weight: bold; + +} + +ChatLobbyWidget QGroupBox::title#lobbyinfo_groupBox +{ + padding: 4 12px; + background: transparent; +} + +ChatLobbyWidget QLabel#lobbyInfoLabel { + border: 1px solid #DCDC41; + border-radius: 6px; + background: #FFFFD7; + background-color: qlineargradient(x1:0, y1:0, x2:0, y2:1, stop:0 #FFFFD7, stop:1 #FFFFB2); +} + + +ChatLobbyDialog QFrame#participantsFrame { + border: transparent; +} + +ChatLobbyDialog QListWidget#participantsList { + border: 1px solid #B8B6B1; + border-radius: 6px; + background: white; +} + +CreateLobbyDialog QFrame#roomFrame { + border: 2px solid #CCCCCC; + border-radius:6px; + background: white; +} + +CreateLobbyDialog QLabel#lobbyInfoLabel { + border: 1px solid #DCDC41; + border-radius: 6px; + background: #FFFFD7; + background-color: qlineargradient(x1:0, y1:0, x2:0, y2:1, stop:0 #FFFFD7, stop:1 #FFFFB2); +} + +ChatWidget QTextEdit#chatTextEdit, ChatWidget QTextBrowser#textBrowser { + border: 1px solid #0099cc; + border-radius: 6px; + background: white; +} + +ChatWidget QFrame#infoFrame { + border: 1px solid #DCDC41; + border-radius: 6px; + background: #FFFFD7; + background-color: qlineargradient(x1:0, y1:0, x2:0, y2:1, stop:0 #FFFFD7, stop:1 #FFFFB2); +} + +PopupChatWindow QToolBar#chattoolBar{ + background-color: qlineargradient(x1:0, y1:0, x2:0, y2:1, stop:0 #9BDBF9, stop:1 #1592CD); + border: 0px; +} + +/* Messages */ + +MessageComposer QToolBar#toolBar { + background-color: qlineargradient(x1:0, y1:0, x2:0, y2:1, stop:0 #9BDBF9, stop:1 #1592CD); + border: 0px; +} + +MessagesDialog QFrame#folderFrame, MessagesDialog QFrame#quickViewFrame { + background-color: qlineargradient(x1:0, y1:0, x2:0, y2:1, stop:0 #FEFEFE, stop:1 #E8E8E8); + border: 1px solid #CCCCCC; +} + +/* Profile */ + +ProfileWidget QFrame#frame_1, ProfileWidget QFrame#frame_2, ProfileWidget QFrame#frame_3 { + background-color: white; + border: 2px solid #CCCCCC; +} + +/* Settings */ + +PluginItem > QFrame#frame { + border: 2px solid #A8B8D1; + background-color: qlineargradient(x1: 0, y1: 0, x2: 0, y2: 1, stop: 0 #FCFDFE, stop: 1 #E2E8EF); + border-radius: 0px +} + +/* Network */ + +/*NetworkView > QGraphWidget#graphicsView +{ + background-color: qlineargradient(x1:0, y1:0, x2:0, y2:1,stop:0 lightgray, stop:1 darkgray); +} +*/ + +/* SearchDialog */ + +SearchDialog QFrame#searchLineFrame[valid=false] { + border: 2px solid #079E00; + background-color: #DBDBDB; +} + +SearchDialog QFrame#searchLineFrame[valid=true] { + border: 2px solid #079E00; + background-color: white; +} + +SearchDialog QPushButton#pushButtonSearch { + border-image: url(:/images/btn1.png) 4; + border-width: 4; + padding: 0px 6px; + font-size: 12px; + color: black; +} + +SearchDialog QPushButton#pushButtonSearch:hover { + border-image: url(:/images/btn2.png) 4; +} + +SearchDialog QPushButton#pushButtonSearch:pressed { + border-image: url(:/images/btn3.png) 4; +} + +SearchDialog QFrame#searchLineFrame > QLineEdit { + background: transparent; + border: none; +} + +/* GetStartedDialog */ + +GetStartedDialog QTextEdit { + border: 1px solid #B8B6B1; + border-radius: 6px; + background: white; +} + +/* GenCertDialog */ + +/* GenCertDialog > QFrame#headerFrame { + background-image: url(:/images/genbackground.png); +} + +GenCertDialog > QFrame#headerFrame > QLabel#headerLabel { + color: rgb(255, 255, 255); +} +*/ + +/* ConnectFriendWizard */ + +ConnectFriendWizard QWizardPage#ConclusionPage > QGroupBox#peerDetailsFrame { + border: 2px solid #CCCCCC; + border-radius:6px; + background: white; + padding: 12 12px; +} + +ConnectFriendWizard QLabel#fr_label, QLabel#requestinfolabel +{ + border: 1px solid #DCDC41; + border-radius: 6px; + background: #FFFFD7; + background-color: qlineargradient(x1:0, y1:0, x2:0, y2:1, stop:0 #FFFFD7, stop:1 #FFFFB2); +} + +/* Toaster */ + +ChatToaster > QFrame#windowFrame, +ChatLobbyToaster > QFrame#windowFrame, +DownloadToaster > QFrame#windowFrame, +FriendRequestToaster > QFrame#windowFrame, +GroupChatToaster > QFrame#windowFrame, +MessageToaster >QFrame#windowFrame, +OnlineToaster > QFrame#windowFrame { + background-image: url(:/images/toaster/backgroundtoaster.png); +} + +/* Feeds */ + +AttachFileItem > QFrame#frame { + border: 2px solid black; + background: white; +} + +ChanNewItem > QFrame#frame { + border: 2px solid #D3D3D3; + background-color: qlineargradient(x1:0, y1:0, x2:0, y2:1, stop:0 #FFFFFF, stop:1 #F2F2F2); + border-radius: 10px; +} + +ChanNewItem QLabel#logoLabel { + border: 2px solid #D3D3D3; + border-radius: 2px; +} + +GxsChannelPostItem > QFrame#mainFrame[new=false] { + border: 3px solid #D3D3D3; + background-color: qlineargradient(x1:0, y1:0, x2:0, y2:1, stop:0 #FFFFFF, stop:1 #F2F2F2); + border-radius: 10px; +} + +GxsChannelPostItem > QFrame#mainFrame[new=true] { + border: 3px solid #82B9F4; + background-color: qlineargradient(x1:0, y1:0, x2:0, y2:1, stop:0 #F0F8FD, stop:0.8 #E6F2FD, stop: 0.81 #E6F2FD, stop: 1 #D2E7FD); + border-radius: 10px; +} + +GxsChannelPostItem QLabel#newLabel { + border: 1px solid #167BE7; + background-color: qlineargradient(x1: 0, y1: 0, x2: 0, y2: 1, stop: 0 #2291E0, stop: 1 #3EB3FF); + border-radius: 3px; +} + +GxsChannelPostItem QFrame#msgFrame { + border: 2px solid #238; + border-radius: 10px; +} + +GxsChannelPostItem QLabel#logoLabel { + border: 2px solid #D3D3D3; +} + +GxsChannelPostItem QLabel#logoLabel { + background-color: black; +} + +ChatMsgItem > QFrame#frame { + border: 2px solid black; + background-color: #FEF6DE; + border-radius: 10px; +} + +ChatMsgItem QWidget#avatar { + border: 2px solid black; +} + +ChatMsgItem QLabel#peerNameLabel { + color: #990033; +} + +ForumNewItem > QFrame#frame, ForumMsgItem > QFrame#frame { + border: 2px solid #CCCCCC; + background: qlineargradient(x1: 0, y1: 0, x2: 0, y2: 1, stop: 0 #EEEEEE, stop: 1 #CCCCCC); + border-radius: 10px; +} + +ForumNewItem > QLabel#nextNameLabel, ForumMsgItem > QLabel#nameLabel { + color: rgb(59, 89, 152); +} + +ForumMsgItem QLabel#iconLabel { + border: 2px solid #CCCCCC; + background: qlineargradient(x1: 0, y1: 0, x2: 0, y2: 1, stop: 0 #EEEEEE, stop: 1 #CCCCCC); + border-radius: 10px +} + +ForumMsgItem QFrame#prevFrame { + border: 2px solid black; + border-radius: 10px; +} + +PeerItem > QFrame#frame { + border: 2px solid green; + background-color: qlineargradient(x1: 0, y1: 0, x2: 0, y2: 1, stop: 0 #BDDF7D, stop: 1 #649C35); + border-radius: 10px; +} + +PeerItem QWidget#avatar { + border: 2px solid green; + background-color: #BDDF7D; +} + +PeerItem QLabel#peerNameLabel { + color: #990033 +} + +MsgItem QFrame#frame { + border: 2px solid #0099cc; + border-radius: 6px; + background: white; +} + +MsgItem QFrame#inviteFrame { + border: 1px solid #DCDC41; + border-radius: 6px; + background: #FFFFD7; + background-color: qlineargradient(x1:0, y1:0, x2:0, y2:1, stop:0 #FFFFD7, stop:1 #FFFFB2); +} + +MsgItem QWidget#avatar { + background-color: #2291E0; +} + +SecurityItem > QFrame#frame { + border: 2px solid #FF9412; + background-color: qlineargradient(x1: 0, y1: 0, x2: 0, y2: 1, stop: 0 #FFE8A4, stop: 1 #FFB252); + border-radius: 10px; +} + +SecurityItem QLabel#peerNameLabel, SecurityItem QLabel#requestLabel { + color: black; +} + +SecurityIpItem > QFrame#frame { + border: 2px solid #FF9412; + background-color: qlineargradient(x1: 0, y1: 0, x2: 0, y2: 1, stop: 0 #FFE8A4, stop: 1 #FFB252); + border-radius: 10px; +} + +SubFileItem > QFrame#frame { + border: 2px solid #238; + background: white; + border-radius: 10px; +} + +SubFileItem QProgressBar#progressBar { + border: 1px solid black; + text-align: center; + color: white; + padding: 1px; + border-top-left-radius: 7px; + border-bottom-left-radius: 7px; + background: QLinearGradient( x1: 0, y1: 0, x2: 0, y2: 1, stop: 0 #fff, stop: 0.4999 #eee, stop: 0.5 #ddd, stop: 1 #eee); + min-width: 15px; +} + +SubFileItem QProgressBar#progressBar::chunk { + background: QLinearGradient( x1: 0, y1: 0, x2: 0, y2: 1, stop: 0 #78d, stop: 0.4999 #46a, stop: 0.5 #45a, stop: 1 #238); + border-top-left-radius: 7px; + border-bottom-left-radius: 7px; + border: 1px solid black; + min-width: 15px; +} + +PluginItem QLabel#infoLabel { + + color: #054A02; + font: bold; + +} + +ConfCertDialog QPlainTextEdit#plainTextEdit { + border: 1px solid #DCDC41; + border-radius: 6px; + background: #FFFFD7; + background-color: qlineargradient(x1:0, y1:0, x2:0, y2:1, stop:0 #FFFFD7, stop:1 #FFFFB2); +} + +ServerPage QPlainTextEdit#plainTextEdit { + border: 1px solid #DCDC41; + border-radius: 6px; + background: #FFFFD7; + background-color: qlineargradient(x1:0, y1:0, x2:0, y2:1, stop:0 #FFFFD7, stop:1 #FFFFB2); +} + +ServerPage QPlainTextEdit#hiddenpageInHelpPlainTextEdit { + border: 1px solid #DCDC41; + border-radius: 6px; + background: #FFFFD7; + background-color: qlineargradient(x1:0, y1:0, x2:0, y2:1, stop:0 #FFFFD7, stop:1 #FFFFB2); +} + +ServerPage QPlainTextEdit#pteBobSimple { + border: 1px solid #DCDC41; + border-radius: 6px; + background: #FFFFD7; + background-color: qlineargradient(x1:0, y1:0, x2:0, y2:1, stop:0 #FFFFD7, stop:1 #FFFFB2); +} + + +/* ProfileManager */ + +ProfileManager > QFrame#headerFrame { + background-color: qlineargradient(x1:0, y1:0, x2:0, y2:1, stop:0 #9BDBF9, stop:1 #1592CD); + border: 1px solid #CCCCCC; +} + +ProfileManager QTextEdit#textEdit +{ + border: 1px solid #DCDC41; + border-radius: 6px; + background: #FFFFD7; + background-color: qlineargradient(x1:0, y1:0, x2:0, y2:1, stop:0 #FFFFD7, stop:1 #FFFFB2); +} + +/* RSImageBlockWidget */ + +RSImageBlockWidget QFrame#infoFrame { + border: 1px solid #DCDC41; + border-radius: 6px; + background: #FFFFD7; + background-color: qlineargradient(x1:0, y1:0, x2:0, y2:1, stop:0 #FFFFD7, stop:1 #FFFFB2); +} + +/* ShareManager */ + +ShareManager QLabel#labelInstructions { + border: 1px solid #DCDC41; + border-radius: 6px; + background: #FFFFD7; + background-color: qlineargradient(x1:0, y1:0, x2:0, y2:1, stop:0 #FFFFD7, stop:1 #FFFFB2); +} + +/* MessageWidget */ + +MessageWidget QFrame#decryptFrame { + border: 1px solid #50FF5B; + border-radius: 6px; + background: #CCFFCC; + background-color: qlineargradient(x1:0, y1:0, x2:0, y2:1, stop:0 #CCFFCC, stop:1 #AAFFAA); +} + +MessageWidget QFrame#inviteFrame { + border: 1px solid #DCDC41; + border-radius: 6px; + background: #FFFFD7; + background-color: qlineargradient(x1:0, y1:0, x2:0, y2:1, stop:0 #FFFFD7, stop:1 #FFFFB2); +} + +/* Posted Links */ + +PostedCreatePostDialog QLabel#info_label { + border: 1px solid #DCDC41; + border-radius: 6px; + background: #FFFFD7; + background-color: qlineargradient(x1:0, y1:0, x2:0, y2:1, stop:0 #FFFFD7, stop:1 #FFFFB2); +} + +QLabel#sharekeyinfo_label{ + border: 1px solid #DCDC41; + border-radius: 6px; + background: #FFFFD7; + background-color: qlineargradient(x1:0, y1:0, x2:0, y2:1, stop:0 #FFFFD7, stop:1 #FFFFB2); +} + +QLabel#subscribersLabel{ + border: 1px solid #CCCCCC; + border-radius: 6px; + +} + +QFrame#distantFrame{ + border: 1px solid #DCDC41; + border-radius: 6px; + background: #FFFFD7; + background-color: qlineargradient(x1:0, y1:0, x2:0, y2:1, stop:0 #FFFFD7, stop:1 #FFFFB2); +} + +QLabel#avatarLabel{ + border: 2px solid #CCCCCC; + border-radius: 4px; +} + +IdDialog QFrame#headerFramePerson { + background-color: qlineargradient(x1:0, y1:0, x2:0, y2:1, stop:0 #9BDBF9, stop:1 #1592CD); + border: 1px; + border-radius: 4px; +} + +IdDialog QFrame#headerFrameCircle { + background-color: qlineargradient(x1:0, y1:0, x2:0, y2:1, stop:0 #9BDBF9, stop:1 #1592CD); + border: 1px; + border-radius: 4px; +} + +IdDialog QLabel#headerTextLabel { + color: rgb(255, 255, 255); +} + +IdDialog QLabel#headerTextLabel_Person { + color: rgb(255, 255, 255); +} + +IdDialog QLabel#headerTextLabel_Circles { + color: rgb(255, 255, 255); +} + +IdDialog QLabel#avlabel { + border: 4px solid white; + border-radius: 10px; +} + +IdDialog QFrame#inviteFrame { + border: 1px solid #DCDC41; + border-radius: 6px; + background: #FFFFD7; + background-color: qlineargradient(x1:0, y1:0, x2:0, y2:1, stop:0 #FFFFD7, stop:1 #FFFFB2); +} + +IdEditDialog QLabel#info_label +{ + border: 1px solid #DCDC41; + border-radius: 6px; + background: #FFFFD7; + background-color: qlineargradient(x1:0, y1:0, x2:0, y2:1, stop:0 #FFFFD7, stop:1 #FFFFB2); +} +GenCertDialog QComboBox#genPGPuser { + border: 2px solid #0099cc; + border-radius: 6px; + background: white; + font: bold; +} +GenCertDialog QSpinBox#hiddenport_spinBox { + border: 2px solid #0099cc; + border-radius: 6px; + background: white; + font: bold; +} +GenCertDialog QLineEdit#hiddenaddr_input { + border: 2px solid #0099cc; + border-radius: 6px; + background: white; + font: bold; +} +GenCertDialog QLineEdit#password2_input { + border: 2px solid #0099cc; + border-radius: 6px; + background: white; + font: bold; +} +GenCertDialog QLineEdit#password_input { + border: 2px solid #0099cc; + border-radius: 6px; + background: white; + font: bold; +} +GenCertDialog QLineEdit#nickname_input { + border: 2px solid #0099cc; + border-radius: 6px; + background: white; + font: bold; +} +GenCertDialog QLineEdit#node_input { + border: 2px solid #0099cc; + border-radius: 6px; + background: white; + font: bold; +} +GenCertDialog QLineEdit#name_input { + border: 2px solid #0099cc; + border-radius: 6px; + background: white; + font: bold; +} +GenCertDialog QPushButton#genButton { + border-image: url(:/images/btn_blue.png) 4; + border-width: 4; + font: bold; + color: white; +} + +GenCertDialog QPushButton#genButton:hover { + border-image: url(:/images/btn_blue_hover.png) 4; +} + +GenCertDialog QPushButton#genButton:disabled { + border-image: url(:/images/btn_27.png) 4; +/* font-size: 16px; */ + font: bold; + color: black; +} + +ConnectFriendWizard QRadioButton { + font-size: 16px; +} + +ConnectFriendWizard QPlainTextEdit#friendCertEdit { + border: none; + background: white; +} + +HomePage QPlainTextEdit#userCertEdit { + border: 2px solid #0099cc; + border-radius: 6px; + background: white; +} + +HomePage QFrame#addframe{ + border: 2px solid #0099cc; + border-radius: 6px; + background: white; +} + +ConnectFriendWizard QFrame#friendFrame { + border: 2px solid #0099cc; + border-radius: 6px; + background: white; +} + +HomePage QFrame#helpframe{ + border: 2px solid #009933; + border-radius: 6px; + background: white; +} + +StartDialog QPushButton#loadButton { + border-image: url(:/images/btn_blue.png) 4; + border-width: 4; + font: bold; + color: white; +} + +StartDialog QPushButton#loadButton:hover { + border-image: url(:/images/btn_blue_hover.png) 4; +} + +StartDialog QFrame#loginframe{ + border-image: url(:/images/logo/background_lessblue.png) 0 0 0 0 stretch stretch; + border-width: 0px; +} + +GenCertDialog QFrame#profileframe{ + border-image: url(:/images/logo/background.png) 0 0 0 0 stretch stretch; + border-width: 0px; +} + +PostedListWidget QComboBox#comboBox { + font: bold; + font-size: 15px; + color: #0099cc; +} + +PostedListWidget QToolButton#submitPostButton { + font: bold; + font-size: 15px; +} + +PostedListWidget QToolButton#subscribeToolButton { + font: bold; + font-size: 15px; + color: white; + background: #0099cc; + border-radius: 4px; + max-height: 27px; +} + +PostedListWidget QToolButton#subscribeToolButton:hover { + background: #03b1f3; + border-radius: 4px; +} + +PostedListWidget QFrame#headerFrame { + background-color: qlineargradient(x1:0, y1:0, x2:0, y2:1, stop:0 #FEFEFE, stop:1 #E8E8E8); + border: 1px solid #CCCCCC; +} + +GxsForumThreadWidget QToolButton#subscribeToolButton { + font: bold; + font-size: 14px; + color: white; + background: #0099cc; + border-radius: 4px; + max-height: 27px; +} + +GxsForumThreadWidget QToolButton#subscribeToolButton:hover { + background: #03b1f3; + border-radius: 4px; +} + +GxsChannelPostsWidget QFrame#infoFrame +{ + border: 1px solid #DCDC41; + border-radius: 6px; + background: #FFFFD7; + background-color: qlineargradient(x1:0, y1:0, x2:0, y2:1, stop:0 #FFFFD7, stop:1 #FFFFB2); +} + +GxsChannelPostsWidget QToolButton#subscribeToolButton { + font: bold; + font-size: 14px; + color: white; + background: #0099cc; + border-radius: 4px; + max-height: 27px; +} + +GxsChannelPostsWidget QToolButton#subscribeToolButton:hover { + background: #03b1f3; + border-radius: 4px; +} + +GxsChannelPostsWidget QToolButton#subscribeToolButton:pressed { + background: #03b1f3; + border-radius: 4px; + border: 1px solid gray; +} + +GxsChannelPostsWidget QToolButton#subscribeToolButton:disabled { + background: gray; + border-radius: 4px; + border: 1px solid gray; + color: lightgray; +} + +/* only for MenuButtonPopup */ +GxsChannelPostsWidget QToolButton#subscribeToolButton[popupMode="1"] { + padding-right: 0px; +} + +GxsChannelPostsWidget QToolButton#subscribeToolButton::menu-arrow { + image: none; +} + +GxsChannelPostsWidget QToolButton#subscribeToolButton::menu-button { + image: none; + +} + +PostedItem QFrame#frame_notes { + background: white; +} + +PostedItem QLabel#notes { + +} + +PostedItem QFrame#voteFrame { + background: #f8f9fa; +} + +PostedItem QFrame#mainFrame{ + background: white; +} + +PostedItem QFrame#frame_picture{ + background: white; +} + +PostedItem QLabel#thumbnailLabel{ + border: 2px solid #CCCCCC; + border-radius: 3px; +} + +PostedItem QLabel#fromBoldLabel, QLabel#fromLabel, QLabel#dateLabel, QLabel#siteBoldLabel { + color: #787c7e; +} + +PostedItem QToolButton#commentButton, QPushButton#shareButton, QToolButton#notesButton{ + font-size: 12px; + color: #878a8c; + font-weight: bold; } \ No newline at end of file