From 3de88dd6ac0f822972fc5bd01fef6238898f86c6 Mon Sep 17 00:00:00 2001 From: ingvar1995 Date: Tue, 22 Mar 2016 21:47:14 +0300 Subject: [PATCH] horizontal scrrol bar in friends list removed. color fix --- src/list_items.py | 4 ++-- src/mainscreen.py | 4 ++-- src/profile.py | 1 + 3 files changed, 5 insertions(+), 4 deletions(-) diff --git a/src/list_items.py b/src/list_items.py index 3132a4e..cef9758 100644 --- a/src/list_items.py +++ b/src/list_items.py @@ -76,8 +76,8 @@ class MessageItem(QtGui.QListWidget): self.setFrameShape(QtGui.QFrame.NoFrame) if message_type == TOX_MESSAGE_TYPE['ACTION']: - self.name.setStyleSheet("QLabel { color: blue; }") - self.message.setStyleSheet("QPlainTextEdit { color: blue; }") + self.name.setStyleSheet("QLabel { color: #4169E1; }") + self.message.setStyleSheet("QPlainTextEdit { color: #4169E1; }") else: if text[0] == '>': self.message.setStyleSheet("QPlainTextEdit { color: green; }") diff --git a/src/mainscreen.py b/src/mainscreen.py index 9f776ec..667d7b1 100644 --- a/src/mainscreen.py +++ b/src/mainscreen.py @@ -200,7 +200,7 @@ class MainWindow(QtGui.QMainWindow): def setup_left_center(self, widget): self.friends_list = QtGui.QListWidget(widget) - self.friends_list.setGeometry(0, 0, 250, 250) + self.friends_list.setGeometry(0, 0, 270, 250) self.friends_list.clicked.connect(self.friend_click) self.friends_list.setContextMenuPolicy(QtCore.Qt.CustomContextMenu) self.friends_list.connect(self.friends_list, QtCore.SIGNAL("customContextMenuRequested(QPoint)"), @@ -236,7 +236,7 @@ class MainWindow(QtGui.QMainWindow): self.setup_left_center(main_list) grid.addWidget(main_list, 1, 0) grid.setColumnMinimumWidth(1, 500) - grid.setColumnMinimumWidth(0, 250) + grid.setColumnMinimumWidth(0, 270) grid.setRowMinimumHeight(1, 250) main.setLayout(grid) self.setCentralWidget(main) diff --git a/src/profile.py b/src/profile.py index 73e040f..1a07a33 100644 --- a/src/profile.py +++ b/src/profile.py @@ -774,6 +774,7 @@ class Profile(Contact, Singleton): if transfer.state: if type(transfer) is ReceiveAvatar: self.get_friend_by_number(friend_number).load_avatar() + self.set_active(None) del self._file_transfers[(friend_number, file_number)] def send_avatar(self, friend_number):