From 3668088f3e6f4c15e27bc1a90a9e7f609139a549 Mon Sep 17 00:00:00 2001 From: ingvar1995 Date: Mon, 8 Aug 2016 14:07:18 +0300 Subject: [PATCH] some fixes --- toxygen/list_items.py | 14 +++++++------- toxygen/mainscreen.py | 2 +- toxygen/util.py | 2 +- 3 files changed, 9 insertions(+), 9 deletions(-) diff --git a/toxygen/list_items.py b/toxygen/list_items.py index 81469f7..e072dc4 100644 --- a/toxygen/list_items.py +++ b/toxygen/list_items.py @@ -127,7 +127,7 @@ class MessageItem(QtGui.QWidget): def __init__(self, text, time, user='', sent=True, message_type=TOX_MESSAGE_TYPE['NORMAL'], parent=None): QtGui.QWidget.__init__(self, parent) self.name = DataLabel(self) - self.name.setGeometry(QtCore.QRect(2, 2, 95, 20)) + self.name.setGeometry(QtCore.QRect(2, 2, 95, 23)) self.name.setTextFormat(QtCore.Qt.PlainText) font = QtGui.QFont() font.setFamily(settings.Settings.get_instance()['font']) @@ -137,7 +137,7 @@ class MessageItem(QtGui.QWidget): self.name.setText(user) self.time = QtGui.QLabel(self) - self.time.setGeometry(QtCore.QRect(parent.width() - 50, 0, 50, 20)) + self.time.setGeometry(QtCore.QRect(parent.width() - 60, 0, 50, 25)) font.setPointSize(10) font.setBold(False) self.time.setFont(font) @@ -151,12 +151,12 @@ class MessageItem(QtGui.QWidget): self.time.setText(convert_time(time)) self.t = False - self.message = MessageEdit(text, parent.width() - 150, message_type, self) + self.message = MessageEdit(text, parent.width() - 160, message_type, self) if message_type != TOX_MESSAGE_TYPE['NORMAL']: self.name.setStyleSheet("QLabel { color: #5CB3FF; }") self.message.setAlignment(QtCore.Qt.AlignCenter) self.time.setStyleSheet("QLabel { color: #5CB3FF; }") - self.message.setGeometry(QtCore.QRect(100, 0, parent.width() - 150, self.message.height())) + self.message.setGeometry(QtCore.QRect(100, 0, parent.width() - 160, self.message.height())) self.setFixedHeight(self.message.height()) def mouseReleaseEvent(self, event): @@ -295,7 +295,7 @@ class FileTransferItem(QtGui.QListWidget): self.state = state self.name = DataLabel(self) - self.name.setGeometry(QtCore.QRect(3, 7, 95, 20)) + self.name.setGeometry(QtCore.QRect(3, 7, 95, 25)) self.name.setTextFormat(QtCore.Qt.PlainText) font = QtGui.QFont() font.setFamily(settings.Settings.get_instance()['font']) @@ -305,14 +305,14 @@ class FileTransferItem(QtGui.QListWidget): self.name.setText(user) self.time = QtGui.QLabel(self) - self.time.setGeometry(QtCore.QRect(width - 53, 7, 50, 20)) + self.time.setGeometry(QtCore.QRect(width - 60, 7, 50, 25)) font.setPointSize(10) font.setBold(False) self.time.setFont(font) self.time.setText(convert_time(time)) self.cancel = QtGui.QPushButton(self) - self.cancel.setGeometry(QtCore.QRect(width - 120, 2, 30, 30)) + self.cancel.setGeometry(QtCore.QRect(width - 125, 2, 30, 30)) pixmap = QtGui.QPixmap(curr_directory() + '/images/decline.png') icon = QtGui.QIcon(pixmap) self.cancel.setIcon(icon) diff --git a/toxygen/mainscreen.py b/toxygen/mainscreen.py index f2476f4..2ad6e9e 100644 --- a/toxygen/mainscreen.py +++ b/toxygen/mainscreen.py @@ -127,7 +127,7 @@ class MainWindow(QtGui.QMainWindow, Singleton): self.messageEdit.setGeometry(QtCore.QRect(0, 3, 450, 55)) self.messageEdit.setObjectName("messageEdit") font = QtGui.QFont() - font.setPointSize(12) + font.setPointSize(11) font.setFamily(settings.Settings.get_instance()['font']) self.messageEdit.setFont(font) diff --git a/toxygen/util.py b/toxygen/util.py index 19deaec..1e755ec 100644 --- a/toxygen/util.py +++ b/toxygen/util.py @@ -2,7 +2,7 @@ import os import time import shutil -program_version = '0.2.4' +program_version = '0.2.5' def log(data):