video call icons
This commit is contained in:
parent
df5a1a901a
commit
49fc253c19
6 changed files with 6 additions and 9 deletions
Before Width: | Height: | Size: 3.5 KiB After Width: | Height: | Size: 3.5 KiB |
BIN
toxygen/images/finish_call_video.png
Executable file
BIN
toxygen/images/finish_call_video.png
Executable file
Binary file not shown.
After Width: | Height: | Size: 3 KiB |
BIN
toxygen/images/incoming_call_video.png
Executable file
BIN
toxygen/images/incoming_call_video.png
Executable file
Binary file not shown.
After Width: | Height: | Size: 3 KiB |
|
@ -541,8 +541,6 @@ class InlineImageItem(QtWidgets.QScrollArea):
|
||||||
fl = QtCore.QFile(directory + '/toxygen_inline_' + curr_time().replace(':', '_') + '.png')
|
fl = QtCore.QFile(directory + '/toxygen_inline_' + curr_time().replace(':', '_') + '.png')
|
||||||
self._pixmap.save(fl, 'PNG')
|
self._pixmap.save(fl, 'PNG')
|
||||||
|
|
||||||
return False
|
|
||||||
|
|
||||||
def mark_as_sent(self):
|
def mark_as_sent(self):
|
||||||
return False
|
return False
|
||||||
|
|
||||||
|
|
|
@ -568,13 +568,12 @@ class MainWindow(QtWidgets.QMainWindow, Singleton):
|
||||||
self.update_call_state('call')
|
self.update_call_state('call')
|
||||||
|
|
||||||
def update_call_state(self, fl):
|
def update_call_state(self, fl):
|
||||||
# TODO: do smth with video call button
|
|
||||||
os.chdir(curr_directory() + '/images/')
|
os.chdir(curr_directory() + '/images/')
|
||||||
pixmap = QtGui.QPixmap(curr_directory() + '/images/{}.png'.format(fl))
|
pixmap = QtGui.QPixmap(curr_directory() + '/images/{}.png'.format(fl))
|
||||||
icon = QtGui.QIcon(pixmap)
|
icon = QtGui.QIcon(pixmap)
|
||||||
self.callButton.setIcon(icon)
|
self.callButton.setIcon(icon)
|
||||||
self.callButton.setIconSize(QtCore.QSize(50, 50))
|
self.callButton.setIconSize(QtCore.QSize(50, 50))
|
||||||
pixmap = QtGui.QPixmap(curr_directory() + '/images/videocall.png')
|
pixmap = QtGui.QPixmap(curr_directory() + '/images/{}_video.png')
|
||||||
icon = QtGui.QIcon(pixmap)
|
icon = QtGui.QIcon(pixmap)
|
||||||
self.videocallButton.setIcon(icon)
|
self.videocallButton.setIcon(icon)
|
||||||
self.videocallButton.setIconSize(QtCore.QSize(35, 35))
|
self.videocallButton.setIconSize(QtCore.QSize(35, 35))
|
||||||
|
|
|
@ -4,7 +4,7 @@ import shutil
|
||||||
import sys
|
import sys
|
||||||
import re
|
import re
|
||||||
|
|
||||||
program_version = '0.2.8'
|
program_version = '0.3.0'
|
||||||
|
|
||||||
|
|
||||||
def log(data):
|
def log(data):
|
||||||
|
|
Loading…
Reference in a new issue