Commit 45bd6600 authored by Ronan Abhamon's avatar Ronan Abhamon

fix(app): little fixes

parent b729dfa3
...@@ -8,10 +8,11 @@ Item { ...@@ -8,10 +8,11 @@ Item {
property string presence property string presence
property string username property string username
// Image mask. (Circle)
Rectangle { Rectangle {
anchors.fill: parent anchors.fill: parent
color: '#8F8F8F' color: '#8F8F8F'
id: avatar id: mask
radius: 50 radius: 50
} }
...@@ -44,7 +45,7 @@ Item { ...@@ -44,7 +45,7 @@ Item {
// Avatar. // Avatar.
OpacityMask { OpacityMask {
anchors.fill: imageToFilter anchors.fill: imageToFilter
maskSource: avatar maskSource: mask
source: imageToFilter source: imageToFilter
} }
...@@ -53,7 +54,7 @@ Item { ...@@ -53,7 +54,7 @@ Item {
anchors.bottom: parent.bottom anchors.bottom: parent.bottom
anchors.right: parent.right anchors.right: parent.right
fillMode: Image.PreserveAspectFit fillMode: Image.PreserveAspectFit
height: parent.height/ 3 height: parent.height / 3
id: presenceImage id: presenceImage
source: presence source: presence
? 'qrc:/imgs/led_' + presence + '.svg' ? 'qrc:/imgs/led_' + presence + '.svg'
......
...@@ -58,7 +58,7 @@ ColumnLayout { ...@@ -58,7 +58,7 @@ ColumnLayout {
boundsBehavior: Flickable.StopAtBounds boundsBehavior: Flickable.StopAtBounds
clip: true clip: true
highlightRangeMode: ListView.ApplyRange highlightRangeMode: ListView.ApplyRange
spacing: 1 spacing: 2
// TODO: Remove, use C++ model instead. // TODO: Remove, use C++ model instead.
model: ListModel { model: ListModel {
...@@ -233,7 +233,7 @@ ColumnLayout { ...@@ -233,7 +233,7 @@ ColumnLayout {
ActionButton { ActionButton {
iconSize: parent.height iconSize: parent.height
icon: 'delete' icon: 'delete'
onClicked: console.log('toto') onClicked: console.log('action: delete')
} }
} }
} }
......
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