Wrap text in action button in room info
This commit is contained in:
parent
a02a58ecc9
commit
f82a4db826
3 changed files with 44 additions and 14 deletions
|
|
@ -9,6 +9,7 @@ ColumnLayout {
|
||||||
id: labelButton
|
id: labelButton
|
||||||
// property alias image: buttonImg
|
// property alias image: buttonImg
|
||||||
property alias button: button
|
property alias button: button
|
||||||
|
property alias text: text
|
||||||
property string label
|
property string label
|
||||||
spacing: Math.round(8 * DefaultStyle.dp)
|
spacing: Math.round(8 * DefaultStyle.dp)
|
||||||
Button {
|
Button {
|
||||||
|
|
@ -25,6 +26,7 @@ ColumnLayout {
|
||||||
style: ButtonStyle.grey
|
style: ButtonStyle.grey
|
||||||
}
|
}
|
||||||
Text {
|
Text {
|
||||||
|
id: text
|
||||||
Layout.alignment: Qt.AlignHCenter
|
Layout.alignment: Qt.AlignHCenter
|
||||||
text: labelButton.label
|
text: labelButton.label
|
||||||
font {
|
font {
|
||||||
|
|
|
||||||
|
|
@ -106,12 +106,18 @@ ColumnLayout {
|
||||||
}
|
}
|
||||||
|
|
||||||
RowLayout {
|
RowLayout {
|
||||||
spacing: Math.round(55 * DefaultStyle.dp)
|
spacing: Math.round(10 * DefaultStyle.dp)
|
||||||
Layout.alignment: Qt.AlignHCenter
|
Layout.alignment: Qt.AlignHCenter
|
||||||
Layout.topMargin: Math.round(30 * DefaultStyle.dp)
|
Layout.topMargin: Math.round(30 * DefaultStyle.dp)
|
||||||
|
Layout.preferredHeight: Math.round(100 * DefaultStyle.dp)
|
||||||
|
Layout.minimumHeight: Math.round(100 * DefaultStyle.dp)
|
||||||
LabelButton {
|
LabelButton {
|
||||||
width: Math.round(56 * DefaultStyle.dp)
|
text.Layout.fillWidth: true
|
||||||
height: Math.round(56 * DefaultStyle.dp)
|
text.horizontalAlignment: Text.AlignHCenter
|
||||||
|
text.wrapMode: Text.Wrap
|
||||||
|
Layout.alignment: Qt.AlignTop
|
||||||
|
Layout.preferredWidth: Math.round(130 * DefaultStyle.dp)
|
||||||
|
Layout.maximumWidth: Math.round(130 * DefaultStyle.dp)
|
||||||
button.icon.width: Math.round(24 * DefaultStyle.dp)
|
button.icon.width: Math.round(24 * DefaultStyle.dp)
|
||||||
button.icon.height: Math.round(24 * DefaultStyle.dp)
|
button.icon.height: Math.round(24 * DefaultStyle.dp)
|
||||||
button.icon.source: chatCore.muted ? AppIcons.bell : AppIcons.bellSlash
|
button.icon.source: chatCore.muted ? AppIcons.bell : AppIcons.bellSlash
|
||||||
|
|
@ -121,8 +127,12 @@ ColumnLayout {
|
||||||
}
|
}
|
||||||
LabelButton {
|
LabelButton {
|
||||||
visible: !SettingsCpp.disableMeetingsFeature
|
visible: !SettingsCpp.disableMeetingsFeature
|
||||||
width: Math.round(56 * DefaultStyle.dp)
|
text.Layout.fillWidth: true
|
||||||
height: Math.round(56 * DefaultStyle.dp)
|
text.horizontalAlignment: Text.AlignHCenter
|
||||||
|
text.wrapMode: Text.Wrap
|
||||||
|
Layout.alignment: Qt.AlignTop
|
||||||
|
Layout.preferredWidth: Math.round(130 * DefaultStyle.dp)
|
||||||
|
Layout.maximumWidth: Math.round(130 * DefaultStyle.dp)
|
||||||
button.icon.width: Math.round(24 * DefaultStyle.dp)
|
button.icon.width: Math.round(24 * DefaultStyle.dp)
|
||||||
button.icon.height: Math.round(24 * DefaultStyle.dp)
|
button.icon.height: Math.round(24 * DefaultStyle.dp)
|
||||||
button.icon.source: AppIcons.phone
|
button.icon.source: AppIcons.phone
|
||||||
|
|
@ -132,8 +142,12 @@ ColumnLayout {
|
||||||
}
|
}
|
||||||
LabelButton {
|
LabelButton {
|
||||||
visible: !SettingsCpp.disableMeetingsFeature
|
visible: !SettingsCpp.disableMeetingsFeature
|
||||||
width: Math.round(56 * DefaultStyle.dp)
|
text.Layout.fillWidth: true
|
||||||
height: Math.round(56 * DefaultStyle.dp)
|
text.horizontalAlignment: Text.AlignHCenter
|
||||||
|
text.wrapMode: Text.Wrap
|
||||||
|
Layout.alignment: Qt.AlignTop
|
||||||
|
Layout.preferredWidth: Math.round(130 * DefaultStyle.dp)
|
||||||
|
Layout.maximumWidth: Math.round(130 * DefaultStyle.dp)
|
||||||
button.icon.width: Math.round(24 * DefaultStyle.dp)
|
button.icon.width: Math.round(24 * DefaultStyle.dp)
|
||||||
button.icon.height: Math.round(24 * DefaultStyle.dp)
|
button.icon.height: Math.round(24 * DefaultStyle.dp)
|
||||||
button.icon.source: AppIcons.videoconference
|
button.icon.source: AppIcons.videoconference
|
||||||
|
|
|
||||||
|
|
@ -51,12 +51,18 @@ ColumnLayout {
|
||||||
}
|
}
|
||||||
|
|
||||||
RowLayout {
|
RowLayout {
|
||||||
spacing: Math.round(55 * DefaultStyle.dp)
|
spacing: Math.round(10 * DefaultStyle.dp)
|
||||||
Layout.alignment: Qt.AlignHCenter
|
Layout.alignment: Qt.AlignHCenter
|
||||||
Layout.topMargin: Math.round(30 * DefaultStyle.dp)
|
Layout.topMargin: Math.round(30 * DefaultStyle.dp)
|
||||||
|
Layout.preferredHeight: Math.round(110 * DefaultStyle.dp)
|
||||||
|
Layout.minimumHeight: Math.round(110 * DefaultStyle.dp)
|
||||||
LabelButton {
|
LabelButton {
|
||||||
width: Math.round(56 * DefaultStyle.dp)
|
text.Layout.fillWidth: true
|
||||||
height: Math.round(56 * DefaultStyle.dp)
|
text.horizontalAlignment: Text.AlignHCenter
|
||||||
|
text.wrapMode: Text.Wrap
|
||||||
|
Layout.alignment: Qt.AlignTop
|
||||||
|
Layout.preferredWidth: Math.round(130 * DefaultStyle.dp)
|
||||||
|
Layout.maximumWidth: Math.round(130 * DefaultStyle.dp)
|
||||||
button.icon.width: Math.round(24 * DefaultStyle.dp)
|
button.icon.width: Math.round(24 * DefaultStyle.dp)
|
||||||
button.icon.height: Math.round(24 * DefaultStyle.dp)
|
button.icon.height: Math.round(24 * DefaultStyle.dp)
|
||||||
button.icon.source: AppIcons.phone
|
button.icon.source: AppIcons.phone
|
||||||
|
|
@ -65,8 +71,12 @@ ColumnLayout {
|
||||||
button.onClicked: parentView.oneOneCall(false)
|
button.onClicked: parentView.oneOneCall(false)
|
||||||
}
|
}
|
||||||
LabelButton {
|
LabelButton {
|
||||||
width: Math.round(56 * DefaultStyle.dp)
|
text.Layout.fillWidth: true
|
||||||
height: Math.round(56 * DefaultStyle.dp)
|
text.horizontalAlignment: Text.AlignHCenter
|
||||||
|
text.wrapMode: Text.Wrap
|
||||||
|
Layout.alignment: Qt.AlignTop
|
||||||
|
Layout.preferredWidth: Math.round(130 * DefaultStyle.dp)
|
||||||
|
Layout.maximumWidth: Math.round(130 * DefaultStyle.dp)
|
||||||
button.icon.width: Math.round(24 * DefaultStyle.dp)
|
button.icon.width: Math.round(24 * DefaultStyle.dp)
|
||||||
button.icon.height: Math.round(24 * DefaultStyle.dp)
|
button.icon.height: Math.round(24 * DefaultStyle.dp)
|
||||||
button.icon.source: mainItem.chatCore.muted ? AppIcons.bell : AppIcons.bellSlash
|
button.icon.source: mainItem.chatCore.muted ? AppIcons.bell : AppIcons.bellSlash
|
||||||
|
|
@ -77,8 +87,12 @@ ColumnLayout {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
LabelButton {
|
LabelButton {
|
||||||
width: Math.round(56 * DefaultStyle.dp)
|
text.Layout.fillWidth: true
|
||||||
height: Math.round(56 * DefaultStyle.dp)
|
text.horizontalAlignment: Text.AlignHCenter
|
||||||
|
text.wrapMode: Text.Wrap
|
||||||
|
Layout.alignment: Qt.AlignTop
|
||||||
|
Layout.preferredWidth: Math.round(130 * DefaultStyle.dp)
|
||||||
|
Layout.maximumWidth: Math.round(130 * DefaultStyle.dp)
|
||||||
button.icon.width: Math.round(24 * DefaultStyle.dp)
|
button.icon.width: Math.round(24 * DefaultStyle.dp)
|
||||||
button.icon.height: Math.round(24 * DefaultStyle.dp)
|
button.icon.height: Math.round(24 * DefaultStyle.dp)
|
||||||
button.icon.source: AppIcons.search
|
button.icon.source: AppIcons.search
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue