mirror of
https://github.com/RetroShare/RetroShare.git
synced 2024-12-19 04:44:21 -05:00
fixed Blogs border colors for the logo label and added a new stylesheet when no Blog is selected
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@2963 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
parent
d2baf4902d
commit
e68e6b54ef
@ -504,7 +504,9 @@ void BlogsDialog::updateBlogMsgs()
|
||||
subscribeButton->setEnabled(false);
|
||||
unsubscribeButton->setEnabled(false);
|
||||
nameLabel->setText("No Blog Selected");
|
||||
iconLabel->setPixmap(QPixmap(":/images/hi64-app-kblogger.png"));
|
||||
iconLabel->setEnabled(false);
|
||||
frame->setStyleSheet("QFrame#frame{ border: 2px solid #808080;border-radius: 10px;background-color: qlineargradient(x1:0, y1:0, x2:0, y2:1,stop:0 #C0C0C0, stop:1 #A0A0A0); }");
|
||||
return;
|
||||
}
|
||||
|
||||
@ -513,9 +515,11 @@ void BlogsDialog::updateBlogMsgs()
|
||||
QPixmap blogImage;
|
||||
blogImage.loadFromData(bi.pngChanImage, bi.pngImageLen, "PNG");
|
||||
iconLabel->setPixmap(blogImage);
|
||||
iconLabel->setStyleSheet("QLabel{border: 2px solid white;}");
|
||||
}else{
|
||||
QPixmap defaultImage(BLOG_DEFAULT_IMAGE);
|
||||
iconLabel->setPixmap(defaultImage);
|
||||
iconLabel->setStyleSheet("QLabel{border: 2px solid white;border-radius: 10px;}");
|
||||
}
|
||||
|
||||
iconLabel->setEnabled(true);
|
||||
|
Loading…
Reference in New Issue
Block a user