mirror of
https://github.com/RetroShare/RetroShare.git
synced 2024-12-27 00:19:25 -05:00
Merge pull request #1868 from defnax/wire-ui-fixes
[TheWire] Fixing margins to not use to much wasted space
This commit is contained in:
commit
b6e0b7aa48
@ -113,7 +113,7 @@ void WireGroupItem::setSelected(bool on)
|
||||
// set color too
|
||||
if (mSelected)
|
||||
{
|
||||
setBackground("red");
|
||||
setBackground(QColor (65, 159, 217));
|
||||
}
|
||||
else
|
||||
{
|
||||
@ -122,7 +122,7 @@ void WireGroupItem::setSelected(bool on)
|
||||
}
|
||||
|
||||
|
||||
void WireGroupItem::setBackground(QString color)
|
||||
void WireGroupItem::setBackground(QColor color)
|
||||
{
|
||||
QWidget *tocolor = this;
|
||||
QPalette p = tocolor->palette();
|
||||
|
@ -62,7 +62,7 @@ protected:
|
||||
private:
|
||||
void setup();
|
||||
void setGroupSet();
|
||||
void setBackground(QString color);
|
||||
void setBackground(QColor color);
|
||||
|
||||
WireGroupHolder *mHolder;
|
||||
RsWireGroup mGroup;
|
||||
|
@ -14,6 +14,18 @@
|
||||
<string>Form</string>
|
||||
</property>
|
||||
<layout class="QHBoxLayout" name="horizontalLayout">
|
||||
<property name="leftMargin">
|
||||
<number>0</number>
|
||||
</property>
|
||||
<property name="topMargin">
|
||||
<number>0</number>
|
||||
</property>
|
||||
<property name="rightMargin">
|
||||
<number>0</number>
|
||||
</property>
|
||||
<property name="bottomMargin">
|
||||
<number>0</number>
|
||||
</property>
|
||||
<item>
|
||||
<widget class="QFrame" name="frame">
|
||||
<property name="frameShape">
|
||||
@ -73,6 +85,10 @@
|
||||
<property name="text">
|
||||
<string>\/</string>
|
||||
</property>
|
||||
<property name="icon">
|
||||
<iconset resource="../icons.qrc">
|
||||
<normaloff>:/icons/png/down-arrow.png</normaloff>:/icons/png/down-arrow.png</iconset>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
</layout>
|
||||
@ -128,6 +144,8 @@
|
||||
<header>gui/gxs/GxsIdLabel.h</header>
|
||||
</customwidget>
|
||||
</customwidgets>
|
||||
<resources/>
|
||||
<resources>
|
||||
<include location="../icons.qrc"/>
|
||||
</resources>
|
||||
<connections/>
|
||||
</ui>
|
||||
|
@ -2139,3 +2139,7 @@ PostedCardView QFrame#mainFrame [new=false]{
|
||||
PostedCardView > QFrame#mainFrame[new=true] {
|
||||
background-color: #005000;
|
||||
}
|
||||
|
||||
WireGroupItem QFrame#frame{
|
||||
background: transparent;
|
||||
}
|
||||
|
@ -1291,3 +1291,7 @@ PostedCardView QFrame#mainFrame [new=false]{
|
||||
PostedCardView > QFrame#mainFrame[new=true] {
|
||||
background-color: #005000;
|
||||
}
|
||||
|
||||
WireGroupItem QFrame#frame{
|
||||
background: transparent;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user