mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-02-18 13:54:07 -05:00
Improved Subscribe Button look and feel
* Improved Subscribe Button look and feel with stylsheet * Removed icons from Subscribe button * Subcribe button hided on posted too when subscribed
This commit is contained in:
parent
6750e6140f
commit
6c0c42c8ad
@ -67,6 +67,10 @@ PostedListWidget::PostedListWidget(const RsGxsGroupId &postedId, QWidget *parent
|
||||
ui->idChooser->loadIds(IDCHOOSER_ID_REQUIRED, RsGxsId());
|
||||
|
||||
connect(ui->submitPostButton, SIGNAL(clicked()), this, SLOT(newPost()));
|
||||
|
||||
ui->subscribeToolButton->setToolTip(tr( "<p>Subscribing to the links will gather \
|
||||
available posts from your subscribed friends, and make the \
|
||||
links visible to all other friends.</p><p>Afterwards you can unsubscribe from the context menu of the links list at left.</p>"));
|
||||
|
||||
/* load settings */
|
||||
processSettings(true);
|
||||
@ -288,6 +292,7 @@ void PostedListWidget::insertPostedDetails(const RsPostedGroup &group)
|
||||
{
|
||||
mStateHelper->setWidgetEnabled(ui->submitPostButton, IS_GROUP_SUBSCRIBED(group.mMeta.mSubscribeFlags));
|
||||
ui->subscribeToolButton->setSubscribed(IS_GROUP_SUBSCRIBED(group.mMeta.mSubscribeFlags));
|
||||
ui->subscribeToolButton->setHidden(IS_GROUP_SUBSCRIBED(group.mMeta.mSubscribeFlags)) ;
|
||||
}
|
||||
|
||||
/*********************** **** **** **** ***********************/
|
||||
|
@ -46,7 +46,7 @@
|
||||
<number>6</number>
|
||||
</property>
|
||||
<property name="topMargin">
|
||||
<number>0</number>
|
||||
<number>2</number>
|
||||
</property>
|
||||
<property name="rightMargin">
|
||||
<number>6</number>
|
||||
@ -57,7 +57,7 @@
|
||||
<item>
|
||||
<widget class="SubscribeToolButton" name="subscribeToolButton">
|
||||
<property name="sizePolicy">
|
||||
<sizepolicy hsizetype="Fixed" vsizetype="Preferred">
|
||||
<sizepolicy hsizetype="Expanding" vsizetype="Preferred">
|
||||
<horstretch>0</horstretch>
|
||||
<verstretch>0</verstretch>
|
||||
</sizepolicy>
|
||||
@ -65,14 +65,18 @@
|
||||
<property name="font">
|
||||
<font>
|
||||
<weight>50</weight>
|
||||
<italic>false</italic>
|
||||
<bold>false</bold>
|
||||
</font>
|
||||
</property>
|
||||
<property name="styleSheet">
|
||||
<string notr="true"/>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string notr="true">Subscribe</string>
|
||||
</property>
|
||||
<property name="autoRaise">
|
||||
<bool>true</bool>
|
||||
<bool>false</bool>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
@ -116,9 +120,7 @@
|
||||
<item>
|
||||
<widget class="QComboBox" name="comboBox">
|
||||
<property name="styleSheet">
|
||||
<string notr="true">font: bold;
|
||||
font-size: 15px;
|
||||
color: #0099cc;</string>
|
||||
<string notr="true"/>
|
||||
</property>
|
||||
<property name="iconSize">
|
||||
<size>
|
||||
|
@ -64,7 +64,7 @@ void SubscribeToolButton::updateUi()
|
||||
#else
|
||||
setPopupMode(QToolButton::InstantPopup);
|
||||
#endif
|
||||
setIcon(QIcon(":/images/accepted16.png"));
|
||||
//setIcon(QIcon(":/images/accepted16.png"));
|
||||
setText(tr("Subscribed"));
|
||||
|
||||
if(mMenu != NULL) // that's because setMenu does not give away memory ownership
|
||||
@ -86,7 +86,7 @@ void SubscribeToolButton::updateUi()
|
||||
} else {
|
||||
setPopupMode(QToolButton::DelayedPopup);
|
||||
setMenu(NULL);
|
||||
setIcon(QIcon(":/images/RSS_004_32.png"));
|
||||
//setIcon(QIcon(":/images/RSS_004_32.png"));
|
||||
setText(tr("Subscribe"));
|
||||
|
||||
#ifndef USE_MENUBUTTONPOPUP
|
||||
|
@ -6,14 +6,17 @@
|
||||
<rect>
|
||||
<x>0</x>
|
||||
<y>0</y>
|
||||
<width>1217</width>
|
||||
<height>721</height>
|
||||
<width>800</width>
|
||||
<height>600</height>
|
||||
</rect>
|
||||
</property>
|
||||
<property name="windowTitle">
|
||||
<string>Form</string>
|
||||
</property>
|
||||
<layout class="QVBoxLayout" name="GxsForumThreadWidgetVLayout">
|
||||
<property name="spacing">
|
||||
<number>0</number>
|
||||
</property>
|
||||
<property name="leftMargin">
|
||||
<number>0</number>
|
||||
</property>
|
||||
@ -33,6 +36,9 @@
|
||||
</property>
|
||||
<widget class="QWidget" name="topWidget">
|
||||
<layout class="QVBoxLayout" name="topVLayout">
|
||||
<property name="spacing">
|
||||
<number>4</number>
|
||||
</property>
|
||||
<item>
|
||||
<widget class="QFrame" name="toolBarFrame">
|
||||
<property name="minimumSize">
|
||||
@ -94,7 +100,7 @@
|
||||
<property name="iconSize">
|
||||
<size>
|
||||
<width>24</width>
|
||||
<height>16</height>
|
||||
<height>24</height>
|
||||
</size>
|
||||
</property>
|
||||
<property name="toolButtonStyle">
|
||||
@ -476,6 +482,9 @@
|
||||
</widget>
|
||||
<widget class="QWidget" name="bottomWidget">
|
||||
<layout class="QVBoxLayout" name="bottomVLayout">
|
||||
<property name="spacing">
|
||||
<number>6</number>
|
||||
</property>
|
||||
<item>
|
||||
<widget class="RSImageBlockWidget" name="imageBlockWidget" native="true">
|
||||
<property name="sizePolicy">
|
||||
@ -515,6 +524,11 @@
|
||||
</action>
|
||||
</widget>
|
||||
<customwidgets>
|
||||
<customwidget>
|
||||
<class>SubscribeToolButton</class>
|
||||
<extends>QToolButton</extends>
|
||||
<header>gui/common/SubscribeToolButton.h</header>
|
||||
</customwidget>
|
||||
<customwidget>
|
||||
<class>GxsIdLabel</class>
|
||||
<extends>QLabel</extends>
|
||||
@ -525,11 +539,6 @@
|
||||
<extends>QLineEdit</extends>
|
||||
<header location="global">gui/common/LineEditClear.h</header>
|
||||
</customwidget>
|
||||
<customwidget>
|
||||
<class>SubscribeToolButton</class>
|
||||
<extends>QToolButton</extends>
|
||||
<header>gui/common/SubscribeToolButton.h</header>
|
||||
</customwidget>
|
||||
<customwidget>
|
||||
<class>RSTextBrowser</class>
|
||||
<extends>QTextBrowser</extends>
|
||||
|
@ -119,18 +119,9 @@ GxsCreateCommentDialog QFrame#frame {
|
||||
|
||||
/* Forums */
|
||||
|
||||
ForumsDialog QLabel#forumName, ForumsDialog QLabel#threadTitle
|
||||
GxsForumThreadWidget QLabel#forumName
|
||||
{
|
||||
border: 2px solid #CCCCCC;
|
||||
border-radius:6px;
|
||||
background: white;
|
||||
}
|
||||
|
||||
ForumsDialog2 QLabel#forumName, ForumsDialog2 QLabel#threadTitle
|
||||
{
|
||||
border: 2px solid #CCCCCC;
|
||||
border-radius:6px;
|
||||
background: white;
|
||||
font: bold;
|
||||
}
|
||||
|
||||
CreateForumMsg > QToolBar#toolBar, CreateForumV2Msg > QToolBar#toolBar {
|
||||
@ -822,3 +813,30 @@ 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;
|
||||
}
|
||||
|
||||
GxsForumThreadWidget QToolButton#subscribeToolButton {
|
||||
font: bold;
|
||||
font-size: 14px;
|
||||
color: white;
|
||||
background: #0099cc;
|
||||
border-radius: 4px;
|
||||
}
|
||||
|
||||
GxsForumThreadWidget QToolButton#subscribeToolButton:hover {
|
||||
background: #03b1f3;
|
||||
border-radius: 4px;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user