mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-06-20 04:14:27 -04:00
Refactor to be more aesthetics
This commit is contained in:
parent
6fc2cf6b87
commit
509ea355d3
1 changed files with 33 additions and 9 deletions
|
@ -24,7 +24,7 @@ import "./components"
|
||||||
Item
|
Item
|
||||||
{
|
{
|
||||||
id: delegateRoot
|
id: delegateRoot
|
||||||
height: 50
|
height: 57
|
||||||
width: parent.width
|
width: parent.width
|
||||||
|
|
||||||
|
|
||||||
|
@ -89,27 +89,51 @@ Item
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Rectangle
|
||||||
|
{
|
||||||
|
id: backgroundRectangle
|
||||||
|
anchors.fill: parent.fill
|
||||||
|
anchors.right: parent.right
|
||||||
|
width: parent.width - colorHash.width - 15
|
||||||
|
height: parent.height
|
||||||
|
color:"transparent"
|
||||||
|
|
||||||
|
Rectangle
|
||||||
|
{
|
||||||
|
id: borderBottom
|
||||||
|
width: parent.width
|
||||||
|
height: 1
|
||||||
|
anchors.bottom: parent.bottom
|
||||||
|
anchors.right: parent.right
|
||||||
|
color: "lightgrey"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
Column
|
Column
|
||||||
{
|
{
|
||||||
|
|
||||||
id: chatInfoRow
|
id: chatInfoRow
|
||||||
height: parent.height
|
height: parent.height
|
||||||
width: parent.width - (isContactIcon.width *3.5)
|
width: parent.width - isContactRow.width - colorHash.width
|
||||||
anchors.left: colorHash.right
|
anchors.left: colorHash.right
|
||||||
anchors.leftMargin: 5
|
anchors.leftMargin: 10
|
||||||
|
anchors.right: isContactRow.left
|
||||||
|
anchors.rightMargin: 5
|
||||||
|
|
||||||
|
|
||||||
Item
|
Item
|
||||||
{
|
{
|
||||||
width: parent.width
|
width: parent.width
|
||||||
height: parent.height /2
|
height: parent.height /2
|
||||||
|
|
||||||
|
|
||||||
Text
|
Text
|
||||||
{
|
{
|
||||||
id: nickText
|
id: nickText
|
||||||
color: model.own ? "blue" : "black"
|
color: model.own ? "blue" : "black"
|
||||||
text: model.name
|
text: model.name
|
||||||
font.bold: true
|
font.bold: true
|
||||||
|
anchors.bottom: parent.bottom
|
||||||
}
|
}
|
||||||
|
|
||||||
Text
|
Text
|
||||||
|
@ -117,6 +141,7 @@ Item
|
||||||
text: setTime()
|
text: setTime()
|
||||||
anchors.right: parent.right
|
anchors.right: parent.right
|
||||||
color: "darkslategrey"
|
color: "darkslategrey"
|
||||||
|
anchors.bottom: parent.bottom
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -124,7 +149,7 @@ Item
|
||||||
{
|
{
|
||||||
id: lastMessageText
|
id: lastMessageText
|
||||||
width: parent.width
|
width: parent.width
|
||||||
height: parent.height /2
|
height: (lastMessageData && lastMessageData.msg !== undefined)? parent.height /2 : 0
|
||||||
|
|
||||||
Text
|
Text
|
||||||
{
|
{
|
||||||
|
@ -153,10 +178,10 @@ Item
|
||||||
|
|
||||||
color: "cornflowerblue"
|
color: "cornflowerblue"
|
||||||
antialiasing: true
|
antialiasing: true
|
||||||
height: parent.height - 2
|
height: parent.height - 6
|
||||||
radius: height/2
|
radius: height/2
|
||||||
width: height
|
width: height
|
||||||
anchors.verticalCenter: parent.verticalCenter
|
// anchors.verticalCenter: parent.verticalCenter
|
||||||
anchors.right: parent.right
|
anchors.right: parent.right
|
||||||
|
|
||||||
Text
|
Text
|
||||||
|
@ -174,14 +199,13 @@ Item
|
||||||
|
|
||||||
Row
|
Row
|
||||||
{
|
{
|
||||||
|
id: isContactRow
|
||||||
anchors.right: parent.right
|
anchors.right: parent.right
|
||||||
anchors.rightMargin: 10
|
anchors.rightMargin: 10
|
||||||
anchors.verticalCenter: parent.verticalCenter
|
anchors.verticalCenter: parent.verticalCenter
|
||||||
height: parent.height - 10
|
height: parent.height - 10
|
||||||
spacing: 4
|
spacing: 4
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
Image
|
Image
|
||||||
{
|
{
|
||||||
source: model.is_contact ?
|
source: model.is_contact ?
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue