horizontal scrrol bar in friends list removed. color fix

This commit is contained in:
ingvar1995 2016-03-22 21:47:14 +03:00
parent 2fa6b01c69
commit 3de88dd6ac
3 changed files with 5 additions and 4 deletions

View file

@ -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; }")

View file

@ -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)

View file

@ -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):