tray translation fix, new icon
This commit is contained in:
parent
490fa70a76
commit
85349c86da
Binary file not shown.
Before Width: | Height: | Size: 1.1 KiB After Width: | Height: | Size: 41 KiB |
@ -96,7 +96,13 @@ class Toxygen(object):
|
||||
# tray icon
|
||||
self.tray = QtGui.QSystemTrayIcon(QtGui.QIcon(curr_directory() + '/images/icon.png'))
|
||||
self.tray.setObjectName('tray')
|
||||
m = QtGui.QMenu()
|
||||
|
||||
class Menu(QtGui.QMenu):
|
||||
def languageChange(self, *args, **kwargs):
|
||||
self.actions()[0].setText(QtGui.QApplication.translate('tray', 'Open Toxygen', None, QtGui.QApplication.UnicodeUTF8))
|
||||
self.actions()[1].setText(QtGui.QApplication.translate('tray', 'Exit', None, QtGui.QApplication.UnicodeUTF8))
|
||||
|
||||
m = Menu()
|
||||
show = m.addAction(QtGui.QApplication.translate('tray', 'Open Toxygen', None, QtGui.QApplication.UnicodeUTF8))
|
||||
exit = m.addAction(QtGui.QApplication.translate('tray', 'Exit', None, QtGui.QApplication.UnicodeUTF8))
|
||||
|
||||
|
@ -374,7 +374,7 @@ class InterfaceSettings(CenteredWidget):
|
||||
self.label.setFont(font)
|
||||
self.label.setObjectName("label")
|
||||
self.themeSelect = QtGui.QComboBox(self)
|
||||
self.themeSelect.setGeometry(QtCore.QRect(30, 60, 161, 31))
|
||||
self.themeSelect.setGeometry(QtCore.QRect(30, 60, 160, 30))
|
||||
self.themeSelect.setObjectName("themeSelect")
|
||||
list_of_themes = ['default', 'windows', 'gtk', 'cde', 'plastique', 'motif']
|
||||
self.themeSelect.addItems(list_of_themes)
|
||||
@ -383,7 +383,7 @@ class InterfaceSettings(CenteredWidget):
|
||||
index = list_of_themes.index(theme)
|
||||
self.themeSelect.setCurrentIndex(index)
|
||||
self.lang_choose = QtGui.QComboBox(self)
|
||||
self.lang_choose.setGeometry(QtCore.QRect(30, 150, 211, 27))
|
||||
self.lang_choose.setGeometry(QtCore.QRect(30, 150, 160, 30))
|
||||
self.lang_choose.setObjectName("comboBox")
|
||||
supported = Settings.supported_languages()
|
||||
for elem in supported:
|
||||
|
Loading…
Reference in New Issue
Block a user