mirror of
https://gitlab.linphone.org/BC/public/linphone-desktop.git
synced 2026-01-22 14:18:09 +00:00
fix(ui/modules/Linphone/Styles/ChatStyle): use chat style, correct previous issue with qml cache
This commit is contained in:
parent
37d0ac557f
commit
214809ecce
2 changed files with 4 additions and 8 deletions
|
|
@ -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
|
||||
|
||||
// ---------------------------------------------------------------------
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue