Commit 5e3e5484 authored by Ronan Abhamon's avatar Ronan Abhamon

feat(app): many styles changes

parent fc8b20e5
......@@ -70,7 +70,6 @@ Item {
Icon {
anchors.fill: parent
fillMode: Image.PreserveAspectFit
icon: 'chat_attachment'
}
}
......
......@@ -5,20 +5,20 @@ import Utils 1.0
// ===================================================================
Text {
Component {
// Never created.
// Private data for `lupdate`.
Item {
property var i18n: [
QT_TR_NOOP('hangup'),
QT_TR_NOOP('incomingCall'),
QT_TR_NOOP('lostIncomingCall'),
QT_TR_NOOP('lostOutgoingCall')
]
}
Component {
// Never created.
// Private data for `lupdate`.
Item {
property var i18n: [
QT_TR_NOOP('hangup'),
QT_TR_NOOP('incomingCall'),
QT_TR_NOOP('lostIncomingCall'),
QT_TR_NOOP('lostOutgoingCall')
]
}
}
color: '#898989'
font.bold: true
text: qsTr(Utils.snakeToCamel($content))
color: '#898989'
font.bold: true
text: qsTr(Utils.snakeToCamel($content))
}
......@@ -6,22 +6,22 @@ import Linphone 1.0
// ===================================================================
Item {
implicitHeight: message.height
implicitHeight: message.height
RowLayout {
anchors.fill: parent
spacing: 10
RowLayout {
anchors.fill: parent
spacing: 10
Avatar {
Layout.alignment: Qt.AlignTop
Layout.preferredHeight: 30
Layout.preferredWidth: 30
}
Avatar {
Layout.alignment: Qt.AlignTop
Layout.preferredHeight: 30
Layout.preferredWidth: 30
}
Message {
Layout.fillWidth: true
backgroundColor: '#BFBFBF'
id: message
}
Message {
Layout.fillWidth: true
backgroundColor: '#BFBFBF'
id: message
}
}
}
......@@ -3,38 +3,38 @@ import QtQuick 2.7
// ===================================================================
Item {
default property alias content: content.data
property alias backgroundColor: rectangle.color
default property alias content: content.data
property alias backgroundColor: rectangle.color
id: container
implicitHeight: text.contentHeight + text.padding * 2
width: parent.width - text.padding * 2
id: container
implicitHeight: text.contentHeight + text.padding * 2
width: parent.width - text.padding * 2
Rectangle {
id: rectangle
height: parent.height
radius: 4
width: (
text.contentWidth < parent.width
? text.contentWidth
: parent.width
) + text.padding * 2
}
Rectangle {
id: rectangle
height: parent.height
radius: 4
width: (
text.contentWidth < parent.width
? text.contentWidth
: parent.width
) + text.padding * 2
}
Text {
anchors.left: container.left
anchors.right: container.right
id: text
padding: 8
text: $content
wrapMode: Text.Wrap
Text {
anchors.left: container.left
anchors.right: container.right
id: text
padding: 8
text: $content
wrapMode: Text.Wrap
// Little fix. Text may disappear with scrolling.
renderType: Text.NativeRendering
}
// Little fix. Text may disappear with scrolling.
renderType: Text.NativeRendering
}
Item {
anchors.left: rectangle.right
id: content
}
Item {
anchors.left: rectangle.right
id: content
}
}
......@@ -5,17 +5,17 @@ import Common 1.0
import Linphone 1.0
Message {
backgroundColor: '#E4E4E4'
backgroundColor: '#E4E4E4'
Item {
height: 30
width: 30
Item {
height: 30
width: 30
// TODO: Success and re-send icon.
Icon {
anchors.centerIn: parent
icon: 'valid'
iconSize: 16
}
// TODO: Success and re-send icon.
Icon {
anchors.centerIn: parent
icon: 'valid'
iconSize: 16
}
}
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment