Since many lines were changed due to components being reused, the more important are listed below per file. Static strings were moved to the UI files for translation purposes and some messages have been re-worded. `extra_widgets.py`: PathEdit now contains the save button and the dialog can also filter by name, all forms using it have been updated `rare.py`: Updated the look and fixed a bug where the Image Directory wouldn't change if `img_dir` wasn't specified in the settings file `legendary.py`: Update the look, changed the Max Workers option into a SpinBox `linux.py`: Update the look, changed Wine Executable option in to a PathEdit that filters for `wine` and `wine64`. `game_settings.py`: Updated to reflect the changes in `linux.py` settings widget. Added the system `compatibilitytools.d` to be search for potential proton versions
68 lines
3 KiB
Python
68 lines
3 KiB
Python
# -*- coding: utf-8 -*-
|
|
|
|
# Form implementation generated from reading ui file 'resources/ui/components/tabs/settings/rpc_settings.ui'
|
|
#
|
|
# Created by: PyQt5 UI code generator 5.15.4
|
|
#
|
|
# WARNING: Any manual changes made to this file will be lost when pyuic5 is
|
|
# run again. Do not edit this file unless you know what you are doing.
|
|
|
|
|
|
from PyQt5 import QtCore, QtGui, QtWidgets
|
|
|
|
|
|
class Ui_RPCSettings(object):
|
|
def setupUi(self, RPCSettings):
|
|
RPCSettings.setObjectName("RPCSettings")
|
|
RPCSettings.resize(487, 318)
|
|
RPCSettings.setAlignment(QtCore.Qt.AlignLeading|QtCore.Qt.AlignLeft|QtCore.Qt.AlignTop)
|
|
self.gridLayout = QtWidgets.QGridLayout(RPCSettings)
|
|
self.gridLayout.setObjectName("gridLayout")
|
|
self.enable = QtWidgets.QComboBox(RPCSettings)
|
|
self.enable.setObjectName("enable")
|
|
self.enable.addItem("")
|
|
self.enable.addItem("")
|
|
self.enable.addItem("")
|
|
self.gridLayout.addWidget(self.enable, 0, 1, 1, 1)
|
|
self.label = QtWidgets.QLabel(RPCSettings)
|
|
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Maximum, QtWidgets.QSizePolicy.Preferred)
|
|
sizePolicy.setHorizontalStretch(0)
|
|
sizePolicy.setVerticalStretch(0)
|
|
sizePolicy.setHeightForWidth(self.label.sizePolicy().hasHeightForWidth())
|
|
self.label.setSizePolicy(sizePolicy)
|
|
self.label.setObjectName("label")
|
|
self.gridLayout.addWidget(self.label, 0, 0, 1, 1)
|
|
self.show_game = QtWidgets.QCheckBox(RPCSettings)
|
|
self.show_game.setObjectName("show_game")
|
|
self.gridLayout.addWidget(self.show_game, 1, 0, 1, 2)
|
|
self.show_os = QtWidgets.QCheckBox(RPCSettings)
|
|
self.show_os.setObjectName("show_os")
|
|
self.gridLayout.addWidget(self.show_os, 2, 0, 1, 2)
|
|
self.show_time = QtWidgets.QCheckBox(RPCSettings)
|
|
self.show_time.setObjectName("show_time")
|
|
self.gridLayout.addWidget(self.show_time, 3, 0, 1, 2)
|
|
|
|
self.retranslateUi(RPCSettings)
|
|
QtCore.QMetaObject.connectSlotsByName(RPCSettings)
|
|
|
|
def retranslateUi(self, RPCSettings):
|
|
_translate = QtCore.QCoreApplication.translate
|
|
RPCSettings.setWindowTitle(_translate("RPCSettings", "Discord RPC"))
|
|
RPCSettings.setTitle(_translate("RPCSettings", "Discord RPC"))
|
|
self.enable.setItemText(0, _translate("RPCSettings", "When Playing"))
|
|
self.enable.setItemText(1, _translate("RPCSettings", "Always"))
|
|
self.enable.setItemText(2, _translate("RPCSettings", "Never"))
|
|
self.label.setText(_translate("RPCSettings", "Show:"))
|
|
self.show_game.setText(_translate("RPCSettings", "Show Game"))
|
|
self.show_os.setText(_translate("RPCSettings", "Show OS"))
|
|
self.show_time.setText(_translate("RPCSettings", "Show Time playing"))
|
|
|
|
|
|
if __name__ == "__main__":
|
|
import sys
|
|
app = QtWidgets.QApplication(sys.argv)
|
|
RPCSettings = QtWidgets.QGroupBox()
|
|
ui = Ui_RPCSettings()
|
|
ui.setupUi(RPCSettings)
|
|
RPCSettings.show()
|
|
sys.exit(app.exec_())
|