Commit bd7a4a2b authored by Ronan Abhamon's avatar Ronan Abhamon

feat(mainWindow/contact): description bar

parent cb1bf9a0
......@@ -31,10 +31,12 @@ int exec (App &app, QQmlApplicationEngine &engine) {
// trayIcon: Left click actions.
root->connect(tray_icon, &QSystemTrayIcon::activated, [&root](QSystemTrayIcon::ActivationReason reason) {
if (reason == QSystemTrayIcon::Trigger)
root->requestActivate();
else if (reason == QSystemTrayIcon::DoubleClick)
if (reason == QSystemTrayIcon::Trigger) {
if (root->visibility() == QWindow::Hidden)
root->showNormal();
else
root->hide();
}
});
// Build trayIcon menu.
......@@ -47,7 +49,7 @@ int exec (App &app, QQmlApplicationEngine &engine) {
tray_icon->setToolTip("Linphone");
tray_icon->show();
// RUN.
// Run.
return app.exec();
}
......
......@@ -11,7 +11,7 @@ Column {
clip: true
color: '#5A585B'
font.pointSize: 11
font.weight: Font.DemiBold
font.bold: true
height: parent.height / 2
id: username
verticalAlignment: Text.AlignBottom
......
......@@ -2,6 +2,7 @@ import QtQuick 2.7
import QtQuick.Controls 2.0
import QtQuick.Layouts 1.3
import 'qrc:/ui/components/contact'
import 'qrc:/ui/components/form'
import 'qrc:/ui/components/scrollBar'
......@@ -12,6 +13,48 @@ ColumnLayout {
Layout.fillWidth: true
Layout.preferredHeight: 102
color: '#D1D1D1'
RowLayout {
anchors.left: parent.left
anchors.leftMargin: 40
anchors.right: parent.right
anchors.rightMargin: 10
anchors.verticalCenter: parent.verticalCenter
height: 80
spacing: 0
width: parent.width
Avatar {
Layout.fillHeight: true
Layout.preferredWidth: 80
Layout.rightMargin: 30
presence: 'connected' // TODO: Use C++.
username: 'Cameron Andrews' // TODO: Use C++.
}
// TODO: Replace by text edit.
// Component: EditableShortContactDescription.
ShortContactDescription {
Layout.fillHeight: true
Layout.fillWidth: true
username: 'Cameron Andrews' // TODO: Use C++.
}
ActionBar {
iconSize: 32
Layout.alignment: Qt.AlignBottom | Qt.AlignRight
ActionButton {
icon: 'delete'
onClicked: console.log('clicked!!!')
}
ActionButton {
icon: 'contact'
onClicked: console.log('clicked!!!')
}
}
}
}
Flickable {
......
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