Fix calls list header layout (cross icon moved on action buttons)

This commit is contained in:
Julien Wadel 2022-08-23 14:30:06 +02:00
parent 7f606b6461
commit ed965d3ecb

View file

@ -119,46 +119,48 @@ Window {
GradientStop { position: 1.0; color: CallsWindowStyle.callsList.header.color2 }
}
}
ActionBar {
anchors {
left: parent.left
leftMargin: CallsWindowStyle.callsList.header.leftMargin
verticalCenter: parent.verticalCenter
}
iconSize: CallsWindowStyle.callsList.header.iconSize
ActionButton {
isCustom: true
backgroundRadius: 4
colorSet: CallsWindowStyle.callsList.newCall
visible: SettingsModel.outgoingCallsEnabled
RowLayout{
anchors.fill: parent
ActionBar {
Layout.leftMargin: CallsWindowStyle.callsList.header.leftMargin
Layout.alignment: Qt.AlignVCenter
onClicked: Logic.openCallSipAddress()
}
ActionButton {
isCustom: true
backgroundRadius: 4
colorSet: CallsWindowStyle.callsList.newConference
visible: SettingsModel.conferenceEnabled
iconSize: CallsWindowStyle.callsList.header.iconSize
onClicked: {
Logic.openConferenceManager()
ActionButton {
isCustom: true
backgroundRadius: 4
colorSet: CallsWindowStyle.callsList.newCall
visible: SettingsModel.outgoingCallsEnabled
onClicked: Logic.openCallSipAddress()
}
ActionButton {
isCustom: true
backgroundRadius: 4
colorSet: CallsWindowStyle.callsList.newConference
visible: SettingsModel.conferenceEnabled
onClicked: {
Logic.openConferenceManager()
}
}
}
Item{// Spacer
Layout.fillWidth: true
}
ActionButton {
Layout.alignment: Qt.AlignVCenter
Layout.rightMargin: 15
isCustom: true
backgroundRadius: 4
colorSet: CallsWindowStyle.callsList.closeButton
onClicked: mainPaned.close()
}
}
ActionButton {
anchors.right: parent.right
anchors.rightMargin: 15
anchors.verticalCenter: parent.verticalCenter
isCustom: true
backgroundRadius: 4
colorSet: CallsWindowStyle.callsList.closeButton
onClicked: mainPaned.close()
}
}
Calls {