mirror of
https://gitlab.linphone.org/BC/public/linphone-desktop.git
synced 2026-01-23 14:48:15 +00:00
feat(app): many styles changes
This commit is contained in:
parent
fc8b20e5df
commit
5e3e54848f
5 changed files with 68 additions and 69 deletions
|
|
@ -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
|
||||
}
|
||||
|
||||
Message {
|
||||
Layout.fillWidth: true
|
||||
backgroundColor: '#BFBFBF'
|
||||
id: message
|
||||
}
|
||||
Avatar {
|
||||
Layout.alignment: Qt.AlignTop
|
||||
Layout.preferredHeight: 30
|
||||
Layout.preferredWidth: 30
|
||||
}
|
||||
|
||||
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
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue