Commit ee92e294 authored by Dan Pascu's avatar Dan Pascu

Adjusted ZRTP and OTR widgets to better fit text with Qt5 themes

parent 2a4b6f3f
......@@ -2520,7 +2520,7 @@ class ChatWindow(base_class, ui_class, ColorHelperMixin):
self.otr_widget.peer_fingerprint = stream_info.otr_peer_fingerprint
self.otr_widget.my_fingerprint = stream_info.otr_key_fingerprint
self.otr_widget.smp_status = stream_info.smp_status
self.otr_widget.setGeometry(QRect(0, encryption_label.rect().translated(encryption_label.mapTo(self.info_panel, QPoint(0, 0))).bottom() + 3, self.info_panel.width(), 300))
self.otr_widget.setGeometry(QRect(0, encryption_label.rect().translated(encryption_label.mapTo(self.info_panel, QPoint(0, 0))).bottom() + 3, self.info_panel.width(), 320))
self.otr_widget.verification_stack.setCurrentWidget(self.otr_widget.smp_panel)
self.otr_widget.show()
self.otr_widget.peer_name_value.setFocus(Qt.OtherFocusReason)
......@@ -2538,7 +2538,7 @@ class ChatWindow(base_class, ui_class, ColorHelperMixin):
self.zrtp_widget.peer_verified = stream_info.zrtp_verified
self.zrtp_widget.sas = stream_info.zrtp_sas
self.zrtp_widget.stream_type = encryption_label.stream_type
self.zrtp_widget.setGeometry(QRect(0, encryption_label.rect().translated(encryption_label.mapTo(self.info_panel, QPoint(0, 0))).bottom() + 3, self.info_panel.width(), 300))
self.zrtp_widget.setGeometry(QRect(0, encryption_label.rect().translated(encryption_label.mapTo(self.info_panel, QPoint(0, 0))).bottom() + 3, self.info_panel.width(), 320))
self.zrtp_widget.show()
self.zrtp_widget.peer_name_value.setFocus(Qt.OtherFocusReason)
......
......@@ -1651,7 +1651,7 @@ class AudioSessionWidget(base_class, ui_class):
session = self.session
stream_info = session.blink_session.info.streams.audio
if session.audio_stream is not None and not session.audio_stream._done and stream_info.encryption == 'ZRTP':
rect = QRect(0, 0, 230, 300)
rect = QRect(0, 0, 230, 320)
rect.moveTopRight(self.srtp_label.mapToGlobal(self.srtp_label.rect().bottomRight()))
rect.translate(0, 3)
screen_area = QApplication.desktop().screenGeometry(self.srtp_label)
......
......@@ -7,7 +7,7 @@
<x>0</x>
<y>0</y>
<width>220</width>
<height>300</height>
<height>320</height>
</rect>
</property>
<property name="palette">
......
......@@ -7,7 +7,7 @@
<x>0</x>
<y>0</y>
<width>220</width>
<height>300</height>
<height>320</height>
</rect>
</property>
<property name="palette">
......
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