fix(ui/modules/Linphone/Styles/ChatStyle): use chat style, correct previous issue with qml cache

This commit is contained in:
Ronan Abhamon 2017-02-27 15:56:23 +01:00
parent 37d0ac557f
commit 214809ecce
2 changed files with 4 additions and 8 deletions

View file

@ -12,12 +12,6 @@ import Utils 1.0
Rectangle {
property alias proxyModel: chat.model
// Unable to use it in style file at this moment.
// A `TypeError: Cannot read property 'XXX' of undefined` is launched for many properties
// in the style file otherwise.
// Seems related to: https://bugreports.qt.io/browse/QTBUG-58648
property color _backgroundColor: 'white'
property bool _bindToEnd: false
property var _contactObserver: SipAddressesModel.getContactObserver(proxyModel.sipAddress)
@ -27,7 +21,7 @@ Rectangle {
// ---------------------------------------------------------------------------
color: _backgroundColor
color: ChatStyle.color
ColumnLayout {
anchors.fill: parent
@ -188,7 +182,7 @@ Rectangle {
ChatStyle.entry.message.extraContent.leftMargin +
ChatStyle.entry.message.outgoing.sendIconSize
}
color: _backgroundColor
color: ChatStyle.color
implicitHeight: layout.height + ChatStyle.entry.bottomMargin
// ---------------------------------------------------------------------

View file

@ -6,6 +6,8 @@ import Common 1.0
// =============================================================================
QtObject {
property color color: Colors.k
property QtObject sectionHeading: QtObject {
property int padding: 5
property int bottomMargin: 20