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

feat(app): many styles changes

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