mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-12-14 16:18:48 -05:00
Merge pull request #9 from defnax/stylesheet-fix
fixing stylesheet for the subscribe button & splitter storing
This commit is contained in:
commit
3fcb2925a4
2 changed files with 15 additions and 12 deletions
|
|
@ -239,6 +239,10 @@ GxsChannelPostsWidgetWithModel::GxsChannelPostsWidgetWithModel(const RsGxsGroupI
|
||||||
|
|
||||||
ui->postDetails_TE->setPlaceholderText(tr("No post selected"));
|
ui->postDetails_TE->setPlaceholderText(tr("No post selected"));
|
||||||
|
|
||||||
|
// Set initial size of the splitter
|
||||||
|
ui->splitter->setStretchFactor(0, 1);
|
||||||
|
ui->splitter->setStretchFactor(1, 0);
|
||||||
|
|
||||||
QFontMetricsF fm(font());
|
QFontMetricsF fm(font());
|
||||||
|
|
||||||
for(int i=0;i<mChannelPostsModel->columnCount();++i)
|
for(int i=0;i<mChannelPostsModel->columnCount();++i)
|
||||||
|
|
@ -544,6 +548,8 @@ void GxsChannelPostsWidgetWithModel::processSettings(bool load)
|
||||||
/* View mode */
|
/* View mode */
|
||||||
//setViewMode(Settings->value("viewMode", VIEW_MODE_FEEDS).toInt());
|
//setViewMode(Settings->value("viewMode", VIEW_MODE_FEEDS).toInt());
|
||||||
#endif
|
#endif
|
||||||
|
// state of splitter
|
||||||
|
ui->splitter->restoreState(Settings->value("SplitterChannelPosts").toByteArray());
|
||||||
} else {
|
} else {
|
||||||
#ifdef TO_REMOVE
|
#ifdef TO_REMOVE
|
||||||
// save settings
|
// save settings
|
||||||
|
|
@ -554,6 +560,8 @@ void GxsChannelPostsWidgetWithModel::processSettings(bool load)
|
||||||
/* View mode */
|
/* View mode */
|
||||||
//Settings->setValue("viewMode", viewMode());
|
//Settings->setValue("viewMode", viewMode());
|
||||||
#endif
|
#endif
|
||||||
|
// state of splitter
|
||||||
|
Settings->setValue("SplitterChannelPosts", ui->splitter->saveState());
|
||||||
}
|
}
|
||||||
|
|
||||||
Settings->endGroup();
|
Settings->endGroup();
|
||||||
|
|
|
||||||
|
|
@ -745,12 +745,7 @@ GxsForumMsgItem QFrame#frame{
|
||||||
background-color: white;
|
background-color: white;
|
||||||
}
|
}
|
||||||
|
|
||||||
GxsChannelPostsWidget QFrame#infoFrame
|
GxsChannelPostsWidgetWithModel QToolButton#subscribeToolButton {
|
||||||
{
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
GxsChannelPostsWidget QToolButton#subscribeToolButton {
|
|
||||||
font: bold;
|
font: bold;
|
||||||
font-size: 14px;
|
font-size: 14px;
|
||||||
color: white;
|
color: white;
|
||||||
|
|
@ -759,18 +754,18 @@ GxsChannelPostsWidget QToolButton#subscribeToolButton {
|
||||||
max-height: 27px;
|
max-height: 27px;
|
||||||
}
|
}
|
||||||
|
|
||||||
GxsChannelPostsWidget QToolButton#subscribeToolButton:hover {
|
GxsChannelPostsWidgetWithModel QToolButton#subscribeToolButton:hover {
|
||||||
background: #03b1f3;
|
background: #03b1f3;
|
||||||
border-radius: 4px;
|
border-radius: 4px;
|
||||||
}
|
}
|
||||||
|
|
||||||
GxsChannelPostsWidget QToolButton#subscribeToolButton:pressed {
|
GxsChannelPostsWidgetWithModel QToolButton#subscribeToolButton:pressed {
|
||||||
background: #03b1f3;
|
background: #03b1f3;
|
||||||
border-radius: 4px;
|
border-radius: 4px;
|
||||||
border: 1px solid gray;
|
border: 1px solid gray;
|
||||||
}
|
}
|
||||||
|
|
||||||
GxsChannelPostsWidget QToolButton#subscribeToolButton:disabled {
|
GxsChannelPostsWidgetWithModel QToolButton#subscribeToolButton:disabled {
|
||||||
background: gray;
|
background: gray;
|
||||||
border-radius: 4px;
|
border-radius: 4px;
|
||||||
border: 1px solid gray;
|
border: 1px solid gray;
|
||||||
|
|
@ -778,15 +773,15 @@ GxsChannelPostsWidget QToolButton#subscribeToolButton:disabled {
|
||||||
}
|
}
|
||||||
|
|
||||||
/* only for MenuButtonPopup */
|
/* only for MenuButtonPopup */
|
||||||
GxsChannelPostsWidget QToolButton#subscribeToolButton[popupMode="1"] {
|
GxsChannelPostsWidgetWithModel QToolButton#subscribeToolButton[popupMode="1"] {
|
||||||
padding-right: 0px;
|
padding-right: 0px;
|
||||||
}
|
}
|
||||||
|
|
||||||
GxsChannelPostsWidget QToolButton#subscribeToolButton::menu-arrow {
|
GxsChannelPostsWidgetWithModel QToolButton#subscribeToolButton::menu-arrow {
|
||||||
image: none;
|
image: none;
|
||||||
}
|
}
|
||||||
|
|
||||||
GxsChannelPostsWidget QToolButton#subscribeToolButton::menu-button {
|
GxsChannelPostsWidgetWithModel QToolButton#subscribeToolButton::menu-button {
|
||||||
image: none;
|
image: none;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue