Add ownMessagesOnLeftAboveWidth setting

Replaces the theme eventList.ownEventsOnRightUnderWidth property.
Can be set to -1 to always keep our own messages on the right.
This commit is contained in:
miruka
2020-05-16 14:36:00 -04:00
parent 60ad7416d9
commit a1b485c039
5 changed files with 8 additions and 7 deletions

View File

@@ -180,8 +180,10 @@ Rectangle {
property bool canLoad: true
property bool loading: false
property bool ownEventsOnRight:
width < theme.chat.eventList.ownEventsOnRightUnderWidth
property bool ownEventsOnLeft:
window.settings.ownMessagesOnLeftAboveWidth < 0 ?
false :
width > window.settings.ownMessagesOnLeftAboveWidth * theme.uiScale
property string delegateWithSelectedText: ""
property string selectedText: ""