Commit 1ea9cb67 authored by Ronan Abhamon's avatar Ronan Abhamon

fix(ui/modules/Linphone/Chat/Chat): display component correctly (not a ugly white foreground)

parent 09fa8a86
...@@ -9,7 +9,7 @@ import Utils 1.0 ...@@ -9,7 +9,7 @@ import Utils 1.0
// ============================================================================= // =============================================================================
ColumnLayout { Rectangle {
property alias proxyModel: chat.model property alias proxyModel: chat.model
// Unable to use it in style file at this moment. // Unable to use it in style file at this moment.
...@@ -27,21 +27,22 @@ ColumnLayout { ...@@ -27,21 +27,22 @@ ColumnLayout {
// --------------------------------------------------------------------------- // ---------------------------------------------------------------------------
spacing: 0 color: _backgroundColor
ColumnLayout {
Rectangle {
anchors.fill: parent anchors.fill: parent
color: _backgroundColor spacing: 0
}
ScrollableListView { ScrollableListView {
id: chat id: chat
// ------------------------------------------------------------------------- // -----------------------------------------------------------------------
property bool _tryToLoadMoreEntries: true property bool _tryToLoadMoreEntries: true
// ------------------------------------------------------------------------- // -----------------------------------------------------------------------
function _loadMoreEntries () { function _loadMoreEntries () {
if (atYBeginning && !_tryToLoadMoreEntries) { if (atYBeginning && !_tryToLoadMoreEntries) {
...@@ -51,7 +52,7 @@ ColumnLayout { ...@@ -51,7 +52,7 @@ ColumnLayout {
} }
} }
// ------------------------------------------------------------------------- // -----------------------------------------------------------------------
Layout.fillHeight: true Layout.fillHeight: true
Layout.fillWidth: true Layout.fillWidth: true
...@@ -62,7 +63,7 @@ ColumnLayout { ...@@ -62,7 +63,7 @@ ColumnLayout {
property: '$sectionDate' property: '$sectionDate'
} }
// ------------------------------------------------------------------------- // -----------------------------------------------------------------------
Component.onCompleted: { Component.onCompleted: {
function goToEnd () { function goToEnd () {
...@@ -107,9 +108,9 @@ ColumnLayout { ...@@ -107,9 +108,9 @@ ColumnLayout {
onContentYChanged: _loadMoreEntries() onContentYChanged: _loadMoreEntries()
// ------------------------------------------------------------------------- // -----------------------------------------------------------------------
// Heading. // Heading.
// ------------------------------------------------------------------------- // -----------------------------------------------------------------------
Component { Component {
id: sectionHeading id: sectionHeading
...@@ -151,9 +152,9 @@ ColumnLayout { ...@@ -151,9 +152,9 @@ ColumnLayout {
} }
} }
// ------------------------------------------------------------------------- // -----------------------------------------------------------------------
// Message/Event renderer. // Message/Event renderer.
// ------------------------------------------------------------------------- // -----------------------------------------------------------------------
delegate: Rectangle { delegate: Rectangle {
id: entry id: entry
...@@ -185,7 +186,7 @@ ColumnLayout { ...@@ -185,7 +186,7 @@ ColumnLayout {
color: _backgroundColor color: _backgroundColor
implicitHeight: layout.height + ChatStyle.entry.bottomMargin implicitHeight: layout.height + ChatStyle.entry.bottomMargin
// ----------------------------------------------------------------------- // ---------------------------------------------------------------------
// Avoid the use of explicit qrc paths. // Avoid the use of explicit qrc paths.
Component { Component {
...@@ -208,7 +209,7 @@ ColumnLayout { ...@@ -208,7 +209,7 @@ ColumnLayout {
FileMessage {} FileMessage {}
} }
// ----------------------------------------------------------------------- // ---------------------------------------------------------------------
MouseArea { MouseArea {
id: mouseArea id: mouseArea
...@@ -257,9 +258,9 @@ ColumnLayout { ...@@ -257,9 +258,9 @@ ColumnLayout {
} }
} }
// --------------------------------------------------------------------------- // -------------------------------------------------------------------------
// Send area. // Send area.
// --------------------------------------------------------------------------- // -------------------------------------------------------------------------
Borders { Borders {
Layout.fillWidth: true Layout.fillWidth: true
...@@ -286,4 +287,5 @@ ColumnLayout { ...@@ -286,4 +287,5 @@ ColumnLayout {
} }
} }
} }
}
} }
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