Add button to go back to chat in reduced main pane
This commit is contained in:
parent
adc6fc4af5
commit
3c0f6f60c6
|
@ -45,5 +45,19 @@ Rectangle {
|
||||||
|
|
||||||
Layout.fillHeight: true
|
Layout.fillHeight: true
|
||||||
}
|
}
|
||||||
|
|
||||||
|
HButton {
|
||||||
|
visible: Layout.preferredWidth > 0
|
||||||
|
backgroundColor: "transparent"
|
||||||
|
icon.name: "go-back-to-chat-from-main-pane"
|
||||||
|
toolTip.text: qsTr("Go back to room")
|
||||||
|
|
||||||
|
onClicked: mainPane.toggleFocus()
|
||||||
|
|
||||||
|
Layout.preferredWidth: mainPane.collapse ? implicitWidth : 0
|
||||||
|
Layout.fillHeight: true
|
||||||
|
|
||||||
|
Behavior on Layout.preferredWidth { HNumberAnimation {} }
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,3 +1,3 @@
|
||||||
<svg height="1792" viewBox="0 0 1792 1792" width="1792" xmlns="http://www.w3.org/2000/svg">
|
<svg height="24" viewBox="0 0 24 24" width="24" xmlns="http://www.w3.org/2000/svg">
|
||||||
<path d="m649 983-466 466q-10 10-23 10t-23-10l-50-50q-10-10-10-23t10-23l393-393-393-393q-10-10-10-23t10-23l50-50q10-10 23-10t23 10l466 466q10 10 10 23t-10 23zm1079 457v64q0 14-9 23t-23 9h-960q-14 0-23-9t-9-23v-64q0-14 9-23t23-9h960q14 0 23 9t9 23z"/>
|
<path d="m7.074 1.408c0-.778.641-1.408 1.431-1.408.942 0 1.626.883 1.38 1.776-.093.336-.042.695.138.995.401.664 1.084 1.073 1.977 1.078.88-.004 1.572-.408 1.977-1.078.181-.299.231-.658.138-.995-.246-.892.436-1.776 1.38-1.776.79 0 1.431.63 1.431 1.408 0 .675-.482 1.234-1.118 1.375-.322.071-.6.269-.769.548-.613 1.017.193 1.917.93 2.823-1.21.562-2.524.846-3.969.846-1.468 0-2.771-.277-3.975-.84.748-.92 1.555-1.803.935-2.83-.168-.279-.446-.477-.768-.548-.636-.14-1.118-.699-1.118-1.374zm4.926 9.592c-1.724 0-3.355-.296-4.872-.882-1.323 2.932-1.279 10.973 4.872 11.866 6.085-.886 6.232-8.764 4.859-11.871-1.524.589-3.151.887-4.859.887zm6.319-2.314c.14.319.394.454.648.454.39 0 2.462-1.016 2.958-1.016.42 0 .817.249.98.657.213.533-.053 1.135-.594 1.346l-2.231.866c-.479.186-.857.655-.765 1.333.09.659.652 1.052 1.227 1.052h2.402c.583 0 1.054.464 1.054 1.037s-.472 1.037-1.054 1.037h-2.387c-.558 0-1.147.332-1.277 1.136-.104.645.269 1.162.763 1.383l2.42 1.078c.53.236.766.851.526 1.373-.241.524-.866.752-1.395.518l-2.561-1.14c-.341-.152-.706-.062-.963.364-1.062 1.76-3.137 3.509-6.07 3.836-2.991-.333-5.091-2.146-6.135-3.943-.2-.342-.564-.409-.901-.259l-2.561 1.14c-.534.237-1.155.002-1.395-.518-.24-.522-.004-1.137.526-1.373l2.42-1.078c.523-.233.863-.734.751-1.462-.106-.685-.692-1.057-1.265-1.057h-2.386c-.582.002-1.054-.462-1.054-1.035s.472-1.037 1.054-1.037h2.402c.552 0 1.129-.353 1.235-1.111.082-.58-.277-1.082-.773-1.274l-2.231-.866c-.541-.21-.807-.813-.594-1.346.212-.53.823-.796 1.367-.584.232.09 2.332.944 2.573.944.242 0 .501-.125.663-.491.18-.408.384-.787.601-1.146 1.708.998 3.59 1.496 5.703 1.496 2.08 0 3.986-.51 5.699-1.502.225.372.435.765.62 1.188z"/>
|
||||||
</svg>
|
</svg>
|
||||||
|
|
Before Width: | Height: | Size: 354 B After Width: | Height: | Size: 1.7 KiB |
Loading…
Reference in New Issue
Block a user