mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-08-06 21:34:22 -04:00
Fixed to use the right icons for the Grant & Cancel membership & improved Circle Notiy layout
* Fixed to use the right icons for the Grant & Cancel membership & improved Circle Notify layout * Fixed stylesheets for the Circle notify feeds
This commit is contained in:
parent
d136db2ffb
commit
92322d1a4b
3 changed files with 92 additions and 71 deletions
|
@ -25,6 +25,7 @@
|
||||||
#include "gui/notifyqt.h"
|
#include "gui/notifyqt.h"
|
||||||
#include "gui/Circles/CreateCircleDialog.h"
|
#include "gui/Circles/CreateCircleDialog.h"
|
||||||
#include "gui/gxs/GxsIdDetails.h"
|
#include "gui/gxs/GxsIdDetails.h"
|
||||||
|
#include "gui/common/FilesDefs.h"
|
||||||
|
|
||||||
#include <QLabel>
|
#include <QLabel>
|
||||||
#include <QPushButton>
|
#include <QPushButton>
|
||||||
|
@ -100,6 +101,7 @@ void GxsCircleItem::setup()
|
||||||
ui->inviteeButton->setHidden(false);
|
ui->inviteeButton->setHidden(false);
|
||||||
ui->inviteeButton->setText(tr("Grant membership"));
|
ui->inviteeButton->setText(tr("Grant membership"));
|
||||||
ui->inviteeButton->setToolTip(tr("Grant membership to this circle, for this identity"));
|
ui->inviteeButton->setToolTip(tr("Grant membership to this circle, for this identity"));
|
||||||
|
ui->inviteeButton->setIcon(FilesDefs::getIconFromQtResourcePath(":/images/accepted16.png"));
|
||||||
|
|
||||||
ui->membershipButton->setHidden(true);
|
ui->membershipButton->setHidden(true);
|
||||||
}
|
}
|
||||||
|
@ -133,6 +135,7 @@ void GxsCircleItem::setup()
|
||||||
ui->inviteeButton->setHidden(false);
|
ui->inviteeButton->setHidden(false);
|
||||||
ui->inviteeButton->setText(tr("Revoke membership"));
|
ui->inviteeButton->setText(tr("Revoke membership"));
|
||||||
ui->inviteeButton->setToolTip(tr("Revoke membership for that identity"));
|
ui->inviteeButton->setToolTip(tr("Revoke membership for that identity"));
|
||||||
|
ui->inviteeButton->setIcon(FilesDefs::getIconFromQtResourcePath(":/images/cancel.png"));
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
@ -155,6 +158,7 @@ void GxsCircleItem::setup()
|
||||||
ui->membershipButton->setHidden(false);
|
ui->membershipButton->setHidden(false);
|
||||||
ui->membershipButton->setText(tr("Cancel membership request"));
|
ui->membershipButton->setText(tr("Cancel membership request"));
|
||||||
ui->membershipButton->setToolTip(tr("Cancel your membership request from that circle"));
|
ui->membershipButton->setToolTip(tr("Cancel your membership request from that circle"));
|
||||||
|
ui->membershipButton->setIcon(FilesDefs::getIconFromQtResourcePath(":/images/cancel.png"));
|
||||||
|
|
||||||
ui->inviteeButton->setHidden(true);
|
ui->inviteeButton->setHidden(true);
|
||||||
}
|
}
|
||||||
|
@ -168,6 +172,7 @@ void GxsCircleItem::setup()
|
||||||
ui->membershipButton->setHidden(false);
|
ui->membershipButton->setHidden(false);
|
||||||
ui->membershipButton->setText(tr("Cancel membership"));
|
ui->membershipButton->setText(tr("Cancel membership"));
|
||||||
ui->membershipButton->setToolTip(tr("Cancel your membership from that circle"));
|
ui->membershipButton->setToolTip(tr("Cancel your membership from that circle"));
|
||||||
|
ui->membershipButton->setIcon(FilesDefs::getIconFromQtResourcePath(":/images/cancel.png"));
|
||||||
|
|
||||||
ui->inviteeButton->setHidden(true);
|
ui->inviteeButton->setHidden(true);
|
||||||
}
|
}
|
||||||
|
|
|
@ -7,7 +7,7 @@
|
||||||
<x>0</x>
|
<x>0</x>
|
||||||
<y>0</y>
|
<y>0</y>
|
||||||
<width>618</width>
|
<width>618</width>
|
||||||
<height>217</height>
|
<height>108</height>
|
||||||
</rect>
|
</rect>
|
||||||
</property>
|
</property>
|
||||||
<layout class="QGridLayout" name="GxsCircleItemGLayout">
|
<layout class="QGridLayout" name="GxsCircleItemGLayout">
|
||||||
|
@ -132,6 +132,41 @@
|
||||||
</item>
|
</item>
|
||||||
<item>
|
<item>
|
||||||
<layout class="QVBoxLayout" name="verticalLayout">
|
<layout class="QVBoxLayout" name="verticalLayout">
|
||||||
|
<item>
|
||||||
|
<layout class="QHBoxLayout" name="horizontalLayout">
|
||||||
|
<item>
|
||||||
|
<widget class="QLabel" name="iconLabel">
|
||||||
|
<property name="maximumSize">
|
||||||
|
<size>
|
||||||
|
<width>20</width>
|
||||||
|
<height>20</height>
|
||||||
|
</size>
|
||||||
|
</property>
|
||||||
|
<property name="text">
|
||||||
|
<string>TextLabel</string>
|
||||||
|
</property>
|
||||||
|
<property name="scaledContents">
|
||||||
|
<bool>true</bool>
|
||||||
|
</property>
|
||||||
|
</widget>
|
||||||
|
</item>
|
||||||
|
<item>
|
||||||
|
<widget class="GxsIdLabel" name="gxsIdLabel">
|
||||||
|
<property name="font">
|
||||||
|
<font>
|
||||||
|
<pointsize>10</pointsize>
|
||||||
|
<weight>75</weight>
|
||||||
|
<bold>true</bold>
|
||||||
|
</font>
|
||||||
|
</property>
|
||||||
|
<property name="text">
|
||||||
|
<string notr="true">name</string>
|
||||||
|
</property>
|
||||||
|
<property name="openExternalLinks">
|
||||||
|
<bool>true</bool>
|
||||||
|
</property>
|
||||||
|
</widget>
|
||||||
|
</item>
|
||||||
<item>
|
<item>
|
||||||
<widget class="QLabel" name="titleLabel">
|
<widget class="QLabel" name="titleLabel">
|
||||||
<property name="sizePolicy">
|
<property name="sizePolicy">
|
||||||
|
@ -152,10 +187,32 @@
|
||||||
</property>
|
</property>
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
|
<item>
|
||||||
|
<spacer name="horizontalSpacer">
|
||||||
|
<property name="orientation">
|
||||||
|
<enum>Qt::Horizontal</enum>
|
||||||
|
</property>
|
||||||
|
<property name="sizeHint" stdset="0">
|
||||||
|
<size>
|
||||||
|
<width>358</width>
|
||||||
|
<height>20</height>
|
||||||
|
</size>
|
||||||
|
</property>
|
||||||
|
</spacer>
|
||||||
|
</item>
|
||||||
|
</layout>
|
||||||
|
</item>
|
||||||
<item>
|
<item>
|
||||||
<layout class="QHBoxLayout" name="nameHLayout">
|
<layout class="QHBoxLayout" name="nameHLayout">
|
||||||
<item>
|
<item>
|
||||||
<widget class="QLabel" name="label">
|
<widget class="QLabel" name="label">
|
||||||
|
<property name="font">
|
||||||
|
<font>
|
||||||
|
<pointsize>10</pointsize>
|
||||||
|
<weight>75</weight>
|
||||||
|
<bold>true</bold>
|
||||||
|
</font>
|
||||||
|
</property>
|
||||||
<property name="text">
|
<property name="text">
|
||||||
<string>Circle name:</string>
|
<string>Circle name:</string>
|
||||||
</property>
|
</property>
|
||||||
|
@ -186,56 +243,6 @@
|
||||||
</item>
|
</item>
|
||||||
</layout>
|
</layout>
|
||||||
</item>
|
</item>
|
||||||
<item>
|
|
||||||
<layout class="QHBoxLayout" name="horizontalLayout">
|
|
||||||
<item>
|
|
||||||
<widget class="QLabel" name="forLabel">
|
|
||||||
<property name="text">
|
|
||||||
<string>Identity:</string>
|
|
||||||
</property>
|
|
||||||
</widget>
|
|
||||||
</item>
|
|
||||||
<item>
|
|
||||||
<widget class="QLabel" name="iconLabel">
|
|
||||||
<property name="maximumSize">
|
|
||||||
<size>
|
|
||||||
<width>20</width>
|
|
||||||
<height>20</height>
|
|
||||||
</size>
|
|
||||||
</property>
|
|
||||||
<property name="text">
|
|
||||||
<string>TextLabel</string>
|
|
||||||
</property>
|
|
||||||
<property name="scaledContents">
|
|
||||||
<bool>true</bool>
|
|
||||||
</property>
|
|
||||||
</widget>
|
|
||||||
</item>
|
|
||||||
<item>
|
|
||||||
<widget class="GxsIdLabel" name="gxsIdLabel">
|
|
||||||
<property name="text">
|
|
||||||
<string notr="true">name</string>
|
|
||||||
</property>
|
|
||||||
<property name="openExternalLinks">
|
|
||||||
<bool>true</bool>
|
|
||||||
</property>
|
|
||||||
</widget>
|
|
||||||
</item>
|
|
||||||
<item>
|
|
||||||
<spacer name="horizontalSpacer">
|
|
||||||
<property name="orientation">
|
|
||||||
<enum>Qt::Horizontal</enum>
|
|
||||||
</property>
|
|
||||||
<property name="sizeHint" stdset="0">
|
|
||||||
<size>
|
|
||||||
<width>358</width>
|
|
||||||
<height>20</height>
|
|
||||||
</size>
|
|
||||||
</property>
|
|
||||||
</spacer>
|
|
||||||
</item>
|
|
||||||
</layout>
|
|
||||||
</item>
|
|
||||||
<item>
|
<item>
|
||||||
<layout class="QHBoxLayout" name="horizontalLayout_2">
|
<layout class="QHBoxLayout" name="horizontalLayout_2">
|
||||||
<item>
|
<item>
|
||||||
|
|
|
@ -483,6 +483,15 @@ GxsChannelPostItem QLabel#logoLabel {
|
||||||
background-color: black;
|
background-color: black;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
GxsCircleItem QFrame#frame {
|
||||||
|
background-color: white;
|
||||||
|
}
|
||||||
|
|
||||||
|
GxsCircleItem QLabel#nameLabel, QLabel#titleLabel {
|
||||||
|
font: 11pt;
|
||||||
|
font: bold italic;
|
||||||
|
}
|
||||||
|
|
||||||
ForumNewItem > QFrame#frame, ForumMsgItem > QFrame#frame {
|
ForumNewItem > QFrame#frame, ForumMsgItem > QFrame#frame {
|
||||||
border: 2px solid #CCCCCC;
|
border: 2px solid #CCCCCC;
|
||||||
background: qlineargradient(x1: 0, y1: 0, x2: 0, y2: 1, stop: 0 #EEEEEE, stop: 1 #CCCCCC);
|
background: qlineargradient(x1: 0, y1: 0, x2: 0, y2: 1, stop: 0 #EEEEEE, stop: 1 #CCCCCC);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue