Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
L
linphone-desktop
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Administrator
linphone-desktop
Commits
ab2af5b5
Commit
ab2af5b5
authored
Nov 07, 2016
by
Ronan Abhamon
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat(Chat): use final style
parent
9461ba26
Changes
7
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
32 additions
and
31 deletions
+32
-31
Chat.qml
tests/ui/modules/Linphone/Chat/Chat.qml
+0
-25
Event.qml
tests/ui/modules/Linphone/Chat/Event.qml
+10
-0
IncomingMessage.qml
tests/ui/modules/Linphone/Chat/IncomingMessage.qml
+2
-2
OutgoingMessage.qml
tests/ui/modules/Linphone/Chat/OutgoingMessage.qml
+8
-3
Avatar.qml
tests/ui/modules/Linphone/Contact/Avatar.qml
+10
-1
ChatStyle.qml
tests/ui/modules/Linphone/Styles/ChatStyle.qml
+1
-0
AvatarStyle.qml
tests/ui/modules/Linphone/Styles/Contact/AvatarStyle.qml
+1
-0
No files found.
tests/ui/modules/Linphone/Chat/Chat.qml
View file @
ab2af5b5
...
...
@@ -188,28 +188,3 @@ ColumnLayout {
}
}
}
// Icons area.
/* Row { */
/* Layout.alignment: Qt.AlignTop */
/* Layout.preferredHeight: 30 */
/* Layout.preferredWidth: 54 */
/* spacing: 10 */
/* Icon { */
/* anchors.verticalCenter: parent.verticalCenter */
/* icon: ($type === 'event' && $content) || '' */
/* iconSize: 16 */
/* } */
/* ActionButton { */
/* anchors.verticalCenter: parent.verticalCenter */
/* icon: 'delete' */
/* iconSize: 16 */
/* id: removeAction */
/* onClicked: chat.model.remove(index) */
/* visible: false */
/* } */
/* } */
tests/ui/modules/Linphone/Chat/Event.qml
View file @
ab2af5b5
...
...
@@ -8,6 +8,7 @@ import Utils 1.0
Row
{
height
:
ChatStyle
.
entry
.
lineHeight
spacing
:
ChatStyle
.
entry
.
message
.
extraContent
.
spacing
Icon
{
height
:
parent
.
height
...
...
@@ -39,4 +40,13 @@ Row {
text
:
qsTr
(
Utils
.
snakeToCamel
(
$content
))
verticalAlignment
:
Text
.
AlignVCenter
}
ActionButton
{
height
:
ChatStyle
.
entry
.
lineHeight
icon
:
'
delete
'
iconSize
:
ChatStyle
.
entry
.
deleteIconSize
visible
:
isHoverEntry
()
onClicked
:
deleteEntry
()
}
}
tests/ui/modules/Linphone/Chat/IncomingMessage.qml
View file @
ab2af5b5
...
...
@@ -18,9 +18,9 @@ RowLayout {
Avatar
{
anchors.centerIn
:
parent
height
:
ChatStyle
.
entry
.
message
.
incoming
.
avatarSize
username
:
contact
.
username
width
:
ChatStyle
.
entry
.
lineHeight
height
:
ChatStyle
.
entry
.
lineHeight
width
:
ChatStyle
.
entry
.
message
.
incoming
.
avatarSize
}
}
...
...
tests/ui/modules/Linphone/Chat/OutgoingMessage.qml
View file @
ab2af5b5
...
...
@@ -7,17 +7,22 @@ import Linphone.Styles 1.0
// ===================================================================
RowLayout
{
Item
{
implicitHeight
:
message
.
height
spacing
:
0
width
:
parent
.
width
Message
{
id
:
message
Layout.fillWidth
:
true
anchors
{
left
:
parent
.
left
leftMargin
:
ChatStyle
.
entry
.
metaWidth
right
:
parent
.
right
}
backgroundColor
:
ChatStyle
.
entry
.
message
.
outgoing
.
backgroundColor
color
:
ChatStyle
.
entry
.
message
.
outgoing
.
text
.
color
fontSize
:
ChatStyle
.
entry
.
message
.
outgoing
.
text
.
fontSize
width
:
parent
.
width
Row
{
spacing
:
ChatStyle
.
entry
.
message
.
extraContent
.
spacing
...
...
tests/ui/modules/Linphone/Contact/Avatar.qml
View file @
ab2af5b5
...
...
@@ -43,7 +43,16 @@ Item {
Text
{
anchors.centerIn
:
parent
color
:
AvatarStyle
.
initials
.
color
font.pointSize
:
AvatarStyle
.
initials
.
fontSize
font.pointSize
:
{
var
width
if
(
parent
.
width
>
0
)
{
width
=
parent
.
width
/
AvatarStyle
.
initials
.
ratio
}
return
AvatarStyle
.
initials
.
fontSize
*
(
width
||
1
)
}
text
:
_computeInitials
()
}
...
...
tests/ui/modules/Linphone/Styles/ChatStyle.qml
View file @
ab2af5b5
...
...
@@ -58,6 +58,7 @@ QtObject {
property
QtObject
incoming
:
QtObject
{
property
color
backgroundColor
:
'
#D0D8DE
'
property
int
avatarSize
:
20
property
QtObject
text
:
QtObject
{
property
color
color
:
'
#595759
'
...
...
tests/ui/modules/Linphone/Styles/Contact/AvatarStyle.qml
View file @
ab2af5b5
...
...
@@ -9,6 +9,7 @@ QtObject {
property
QtObject
initials
:
QtObject
{
property
color
color
:
Colors
.
k
property
int
fontSize
:
10
property
int
ratio
:
30
}
property
QtObject
mask
:
QtObject
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment