Merge branch 'patch/gui_elements' into 'main'
patch: Adjusted some GUI elements See merge request CodeByMrFinchum/OptimaLab35!33
This commit is contained in:
commit
f29795ecbb
10 changed files with 485 additions and 438 deletions
|
@ -1,6 +1,11 @@
|
||||||
# Changelog
|
# Changelog
|
||||||
|
|
||||||
## 0.12.x
|
## 0.12.x
|
||||||
|
### 0.12.3: UI Adjustments
|
||||||
|
- Minor changes to maintain a unified layout across all windows.
|
||||||
|
- Added option to sync app theme with OS (if supported).
|
||||||
|
- Set auto theme as the default value.
|
||||||
|
|
||||||
### 0.12.2: Minor UI Improvements for Theme Compatibility
|
### 0.12.2: Minor UI Improvements for Theme Compatibility
|
||||||
- Fixed text clipping issues when using the new theme options.
|
- Fixed text clipping issues when using the new theme options.
|
||||||
|
|
||||||
|
|
|
@ -529,7 +529,7 @@ class SettingsWindow(QMainWindow, Ui_Settings_Window):
|
||||||
# Connect buttons to functions
|
# Connect buttons to functions
|
||||||
self.ui.check_for_update_Button.clicked.connect(self.check_for_updates)
|
self.ui.check_for_update_Button.clicked.connect(self.check_for_updates)
|
||||||
self.ui.update_and_restart_Button.clicked.connect(self.update_and_restart)
|
self.ui.update_and_restart_Button.clicked.connect(self.update_and_restart)
|
||||||
self.ui.label_last_check_2.setText(self.time_to_string(self.ol35_last_state[0]))
|
self.ui.label_last_check.setText(f"Last check: {self.time_to_string(self.ol35_last_state[0])}")
|
||||||
self.ui.dev_widget.setVisible(False)
|
self.ui.dev_widget.setVisible(False)
|
||||||
|
|
||||||
# Timer for long press detection
|
# Timer for long press detection
|
||||||
|
@ -753,7 +753,7 @@ class SettingsWindow(QMainWindow, Ui_Settings_Window):
|
||||||
self.ui.update_and_restart_Button.setEnabled(True)
|
self.ui.update_and_restart_Button.setEnabled(True)
|
||||||
|
|
||||||
last_date = self.time_to_string(self.ppu_ol35.get_last_state()[0])
|
last_date = self.time_to_string(self.ppu_ol35.get_last_state()[0])
|
||||||
self.ui.label_last_check_2.setText(last_date)
|
self.ui.label_last_check.setText(f"Last check: {last_date}")
|
||||||
self.ui.label_latest_version.setText("Online version")
|
self.ui.label_latest_version.setText("Online version")
|
||||||
self.ui.check_for_update_Button.setEnabled(True)
|
self.ui.check_for_update_Button.setEnabled(True)
|
||||||
|
|
||||||
|
@ -985,7 +985,7 @@ def main():
|
||||||
app_settings["theme"]["theme_pkg"] = False
|
app_settings["theme"]["theme_pkg"] = False
|
||||||
|
|
||||||
if app_settings["theme"]["use_custom_theme"] and app_settings["theme"]["theme_pkg"]:
|
if app_settings["theme"]["use_custom_theme"] and app_settings["theme"]["theme_pkg"]:
|
||||||
app.setStyleSheet(qdarktheme.load_stylesheet(app_settings["theme"]["mode"].lower()))
|
qdarktheme.setup_theme(app_settings["theme"]["mode"].lower())
|
||||||
|
|
||||||
u.save_settings(app_settings)
|
u.save_settings(app_settings)
|
||||||
del u
|
del u
|
||||||
|
|
|
@ -17,11 +17,11 @@ from PySide6.QtGui import (QAction, QBrush, QColor, QConicalGradient,
|
||||||
QPainter, QPalette, QPixmap, QRadialGradient,
|
QPainter, QPalette, QPixmap, QRadialGradient,
|
||||||
QTransform)
|
QTransform)
|
||||||
from PySide6.QtWidgets import (QApplication, QCheckBox, QComboBox, QDateEdit,
|
from PySide6.QtWidgets import (QApplication, QCheckBox, QComboBox, QDateEdit,
|
||||||
QFrame, QGridLayout, QGroupBox, QHBoxLayout,
|
QGridLayout, QGroupBox, QHBoxLayout, QLabel,
|
||||||
QLabel, QLineEdit, QMainWindow, QMenu,
|
QLineEdit, QMainWindow, QMenu, QMenuBar,
|
||||||
QMenuBar, QProgressBar, QPushButton, QSizePolicy,
|
QProgressBar, QPushButton, QSizePolicy, QSlider,
|
||||||
QSlider, QSpinBox, QStatusBar, QTabWidget,
|
QSpinBox, QStatusBar, QTabWidget, QVBoxLayout,
|
||||||
QVBoxLayout, QWidget)
|
QWidget)
|
||||||
|
|
||||||
class Ui_MainWindow(object):
|
class Ui_MainWindow(object):
|
||||||
def setupUi(self, MainWindow):
|
def setupUi(self, MainWindow):
|
||||||
|
@ -50,7 +50,7 @@ class Ui_MainWindow(object):
|
||||||
self.tab_1.setObjectName(u"tab_1")
|
self.tab_1.setObjectName(u"tab_1")
|
||||||
self.verticalLayout_10 = QVBoxLayout(self.tab_1)
|
self.verticalLayout_10 = QVBoxLayout(self.tab_1)
|
||||||
self.verticalLayout_10.setObjectName(u"verticalLayout_10")
|
self.verticalLayout_10.setObjectName(u"verticalLayout_10")
|
||||||
self.folder_group = QFrame(self.tab_1)
|
self.folder_group = QGroupBox(self.tab_1)
|
||||||
self.folder_group.setObjectName(u"folder_group")
|
self.folder_group.setObjectName(u"folder_group")
|
||||||
self.folder_group.setMaximumSize(QSize(400, 16777215))
|
self.folder_group.setMaximumSize(QSize(400, 16777215))
|
||||||
self.gridLayout_5 = QGridLayout(self.folder_group)
|
self.gridLayout_5 = QGridLayout(self.folder_group)
|
||||||
|
@ -606,6 +606,7 @@ class Ui_MainWindow(object):
|
||||||
self.actionPreview.setText(QCoreApplication.translate("MainWindow", u"Preview image", None))
|
self.actionPreview.setText(QCoreApplication.translate("MainWindow", u"Preview image", None))
|
||||||
self.actionAbout.setText(QCoreApplication.translate("MainWindow", u"About", None))
|
self.actionAbout.setText(QCoreApplication.translate("MainWindow", u"About", None))
|
||||||
self.actionSettings.setText(QCoreApplication.translate("MainWindow", u"Preferences...", None))
|
self.actionSettings.setText(QCoreApplication.translate("MainWindow", u"Preferences...", None))
|
||||||
|
self.folder_group.setTitle(QCoreApplication.translate("MainWindow", u"File selection", None))
|
||||||
#if QT_CONFIG(tooltip)
|
#if QT_CONFIG(tooltip)
|
||||||
self.input_folder_button.setToolTip(QCoreApplication.translate("MainWindow", u"Open a file browser to select a folder for loading images.", None))
|
self.input_folder_button.setToolTip(QCoreApplication.translate("MainWindow", u"Open a file browser to select a folder for loading images.", None))
|
||||||
#endif // QT_CONFIG(tooltip)
|
#endif // QT_CONFIG(tooltip)
|
||||||
|
|
|
@ -47,13 +47,16 @@
|
||||||
</attribute>
|
</attribute>
|
||||||
<layout class="QVBoxLayout" name="verticalLayout_10">
|
<layout class="QVBoxLayout" name="verticalLayout_10">
|
||||||
<item>
|
<item>
|
||||||
<widget class="QFrame" name="folder_group">
|
<widget class="QGroupBox" name="folder_group">
|
||||||
<property name="maximumSize">
|
<property name="maximumSize">
|
||||||
<size>
|
<size>
|
||||||
<width>400</width>
|
<width>400</width>
|
||||||
<height>16777215</height>
|
<height>16777215</height>
|
||||||
</size>
|
</size>
|
||||||
</property>
|
</property>
|
||||||
|
<property name="title">
|
||||||
|
<string>File selection</string>
|
||||||
|
</property>
|
||||||
<layout class="QGridLayout" name="gridLayout_5">
|
<layout class="QGridLayout" name="gridLayout_5">
|
||||||
<item row="0" column="1">
|
<item row="0" column="1">
|
||||||
<widget class="QPushButton" name="input_folder_button">
|
<widget class="QPushButton" name="input_folder_button">
|
||||||
|
|
|
@ -15,10 +15,11 @@ from PySide6.QtGui import (QBrush, QColor, QConicalGradient, QCursor,
|
||||||
QFont, QFontDatabase, QGradient, QIcon,
|
QFont, QFontDatabase, QGradient, QIcon,
|
||||||
QImage, QKeySequence, QLinearGradient, QPainter,
|
QImage, QKeySequence, QLinearGradient, QPainter,
|
||||||
QPalette, QPixmap, QRadialGradient, QTransform)
|
QPalette, QPixmap, QRadialGradient, QTransform)
|
||||||
from PySide6.QtWidgets import (QApplication, QCheckBox, QFrame, QHBoxLayout,
|
from PySide6.QtWidgets import (QApplication, QCheckBox, QFrame, QGridLayout,
|
||||||
QLabel, QLineEdit, QMainWindow, QMenuBar,
|
QGroupBox, QHBoxLayout, QLabel, QLineEdit,
|
||||||
QPushButton, QSizePolicy, QSlider, QSpacerItem,
|
QMainWindow, QMenuBar, QPushButton, QSizePolicy,
|
||||||
QSpinBox, QVBoxLayout, QWidget)
|
QSlider, QSpacerItem, QSpinBox, QVBoxLayout,
|
||||||
|
QWidget)
|
||||||
|
|
||||||
class Ui_Preview_Window(object):
|
class Ui_Preview_Window(object):
|
||||||
def setupUi(self, Preview_Window):
|
def setupUi(self, Preview_Window):
|
||||||
|
@ -42,31 +43,37 @@ class Ui_Preview_Window(object):
|
||||||
self.widget.setObjectName(u"widget")
|
self.widget.setObjectName(u"widget")
|
||||||
self.widget.setMinimumSize(QSize(160, 628))
|
self.widget.setMinimumSize(QSize(160, 628))
|
||||||
self.widget.setMaximumSize(QSize(150, 16777215))
|
self.widget.setMaximumSize(QSize(150, 16777215))
|
||||||
self.verticalLayout = QVBoxLayout(self.widget)
|
self.verticalLayout_5 = QVBoxLayout(self.widget)
|
||||||
self.verticalLayout.setObjectName(u"verticalLayout")
|
self.verticalLayout_5.setObjectName(u"verticalLayout_5")
|
||||||
self.image_path_lineEdit = QLineEdit(self.widget)
|
self.groupBox_3 = QGroupBox(self.widget)
|
||||||
|
self.groupBox_3.setObjectName(u"groupBox_3")
|
||||||
|
self.verticalLayout_3 = QVBoxLayout(self.groupBox_3)
|
||||||
|
self.verticalLayout_3.setObjectName(u"verticalLayout_3")
|
||||||
|
self.image_path_lineEdit = QLineEdit(self.groupBox_3)
|
||||||
self.image_path_lineEdit.setObjectName(u"image_path_lineEdit")
|
self.image_path_lineEdit.setObjectName(u"image_path_lineEdit")
|
||||||
|
|
||||||
self.verticalLayout.addWidget(self.image_path_lineEdit)
|
self.verticalLayout_3.addWidget(self.image_path_lineEdit)
|
||||||
|
|
||||||
self.load_Button = QPushButton(self.widget)
|
self.load_Button = QPushButton(self.groupBox_3)
|
||||||
self.load_Button.setObjectName(u"load_Button")
|
self.load_Button.setObjectName(u"load_Button")
|
||||||
|
|
||||||
self.verticalLayout.addWidget(self.load_Button)
|
self.verticalLayout_3.addWidget(self.load_Button)
|
||||||
|
|
||||||
self.label = QLabel(self.widget)
|
|
||||||
self.label.setObjectName(u"label")
|
|
||||||
|
|
||||||
self.verticalLayout.addWidget(self.label)
|
self.verticalLayout_5.addWidget(self.groupBox_3)
|
||||||
|
|
||||||
self.brightness_spinBox = QSpinBox(self.widget)
|
self.groupBox_2 = QGroupBox(self.widget)
|
||||||
|
self.groupBox_2.setObjectName(u"groupBox_2")
|
||||||
|
self.verticalLayout = QVBoxLayout(self.groupBox_2)
|
||||||
|
self.verticalLayout.setObjectName(u"verticalLayout")
|
||||||
|
self.brightness_spinBox = QSpinBox(self.groupBox_2)
|
||||||
self.brightness_spinBox.setObjectName(u"brightness_spinBox")
|
self.brightness_spinBox.setObjectName(u"brightness_spinBox")
|
||||||
self.brightness_spinBox.setMinimum(-100)
|
self.brightness_spinBox.setMinimum(-100)
|
||||||
self.brightness_spinBox.setMaximum(100)
|
self.brightness_spinBox.setMaximum(100)
|
||||||
|
|
||||||
self.verticalLayout.addWidget(self.brightness_spinBox)
|
self.verticalLayout.addWidget(self.brightness_spinBox)
|
||||||
|
|
||||||
self.brightness_Slider = QSlider(self.widget)
|
self.brightness_Slider = QSlider(self.groupBox_2)
|
||||||
self.brightness_Slider.setObjectName(u"brightness_Slider")
|
self.brightness_Slider.setObjectName(u"brightness_Slider")
|
||||||
self.brightness_Slider.setMinimum(-100)
|
self.brightness_Slider.setMinimum(-100)
|
||||||
self.brightness_Slider.setMaximum(100)
|
self.brightness_Slider.setMaximum(100)
|
||||||
|
@ -74,68 +81,88 @@ class Ui_Preview_Window(object):
|
||||||
|
|
||||||
self.verticalLayout.addWidget(self.brightness_Slider)
|
self.verticalLayout.addWidget(self.brightness_Slider)
|
||||||
|
|
||||||
self.reset_brightness_Button = QPushButton(self.widget)
|
self.reset_brightness_Button = QPushButton(self.groupBox_2)
|
||||||
self.reset_brightness_Button.setObjectName(u"reset_brightness_Button")
|
self.reset_brightness_Button.setObjectName(u"reset_brightness_Button")
|
||||||
|
|
||||||
self.verticalLayout.addWidget(self.reset_brightness_Button)
|
self.verticalLayout.addWidget(self.reset_brightness_Button)
|
||||||
|
|
||||||
self.label_2 = QLabel(self.widget)
|
|
||||||
self.label_2.setObjectName(u"label_2")
|
|
||||||
|
|
||||||
self.verticalLayout.addWidget(self.label_2)
|
self.verticalLayout_5.addWidget(self.groupBox_2)
|
||||||
|
|
||||||
self.contrast_spinBox = QSpinBox(self.widget)
|
self.groupBox = QGroupBox(self.widget)
|
||||||
|
self.groupBox.setObjectName(u"groupBox")
|
||||||
|
self.verticalLayout_2 = QVBoxLayout(self.groupBox)
|
||||||
|
self.verticalLayout_2.setObjectName(u"verticalLayout_2")
|
||||||
|
self.contrast_spinBox = QSpinBox(self.groupBox)
|
||||||
self.contrast_spinBox.setObjectName(u"contrast_spinBox")
|
self.contrast_spinBox.setObjectName(u"contrast_spinBox")
|
||||||
self.contrast_spinBox.setMinimum(-100)
|
self.contrast_spinBox.setMinimum(-100)
|
||||||
self.contrast_spinBox.setMaximum(100)
|
self.contrast_spinBox.setMaximum(100)
|
||||||
|
|
||||||
self.verticalLayout.addWidget(self.contrast_spinBox)
|
self.verticalLayout_2.addWidget(self.contrast_spinBox)
|
||||||
|
|
||||||
self.contrast_Slider = QSlider(self.widget)
|
self.contrast_Slider = QSlider(self.groupBox)
|
||||||
self.contrast_Slider.setObjectName(u"contrast_Slider")
|
self.contrast_Slider.setObjectName(u"contrast_Slider")
|
||||||
self.contrast_Slider.setMinimum(-100)
|
self.contrast_Slider.setMinimum(-100)
|
||||||
self.contrast_Slider.setMaximum(100)
|
self.contrast_Slider.setMaximum(100)
|
||||||
self.contrast_Slider.setOrientation(Qt.Horizontal)
|
self.contrast_Slider.setOrientation(Qt.Horizontal)
|
||||||
|
|
||||||
self.verticalLayout.addWidget(self.contrast_Slider)
|
self.verticalLayout_2.addWidget(self.contrast_Slider)
|
||||||
|
|
||||||
self.reset_contrast_Button = QPushButton(self.widget)
|
self.reset_contrast_Button = QPushButton(self.groupBox)
|
||||||
self.reset_contrast_Button.setObjectName(u"reset_contrast_Button")
|
self.reset_contrast_Button.setObjectName(u"reset_contrast_Button")
|
||||||
|
|
||||||
self.verticalLayout.addWidget(self.reset_contrast_Button)
|
self.verticalLayout_2.addWidget(self.reset_contrast_Button)
|
||||||
|
|
||||||
self.grayscale_checkBox = QCheckBox(self.widget)
|
|
||||||
|
self.verticalLayout_5.addWidget(self.groupBox)
|
||||||
|
|
||||||
|
self.groupBox_5 = QGroupBox(self.widget)
|
||||||
|
self.groupBox_5.setObjectName(u"groupBox_5")
|
||||||
|
self.gridLayout = QGridLayout(self.groupBox_5)
|
||||||
|
self.gridLayout.setObjectName(u"gridLayout")
|
||||||
|
self.grayscale_checkBox = QCheckBox(self.groupBox_5)
|
||||||
self.grayscale_checkBox.setObjectName(u"grayscale_checkBox")
|
self.grayscale_checkBox.setObjectName(u"grayscale_checkBox")
|
||||||
|
|
||||||
self.verticalLayout.addWidget(self.grayscale_checkBox)
|
self.gridLayout.addWidget(self.grayscale_checkBox, 0, 0, 1, 1)
|
||||||
|
|
||||||
|
|
||||||
|
self.verticalLayout_5.addWidget(self.groupBox_5)
|
||||||
|
|
||||||
self.verticalSpacer = QSpacerItem(20, 219, QSizePolicy.Policy.Minimum, QSizePolicy.Policy.Expanding)
|
self.verticalSpacer = QSpacerItem(20, 219, QSizePolicy.Policy.Minimum, QSizePolicy.Policy.Expanding)
|
||||||
|
|
||||||
self.verticalLayout.addItem(self.verticalSpacer)
|
self.verticalLayout_5.addItem(self.verticalSpacer)
|
||||||
|
|
||||||
self.live_update = QCheckBox(self.widget)
|
self.groupBox_4 = QGroupBox(self.widget)
|
||||||
|
self.groupBox_4.setObjectName(u"groupBox_4")
|
||||||
|
self.verticalLayout_4 = QVBoxLayout(self.groupBox_4)
|
||||||
|
self.verticalLayout_4.setObjectName(u"verticalLayout_4")
|
||||||
|
self.live_update = QCheckBox(self.groupBox_4)
|
||||||
self.live_update.setObjectName(u"live_update")
|
self.live_update.setObjectName(u"live_update")
|
||||||
self.live_update.setChecked(True)
|
self.live_update.setChecked(True)
|
||||||
|
|
||||||
self.verticalLayout.addWidget(self.live_update)
|
self.verticalLayout_4.addWidget(self.live_update)
|
||||||
|
|
||||||
self.update_Button = QPushButton(self.widget)
|
self.update_Button = QPushButton(self.groupBox_4)
|
||||||
self.update_Button.setObjectName(u"update_Button")
|
self.update_Button.setObjectName(u"update_Button")
|
||||||
|
self.update_Button.setEnabled(False)
|
||||||
self.update_Button.setAutoFillBackground(False)
|
self.update_Button.setAutoFillBackground(False)
|
||||||
|
|
||||||
self.verticalLayout.addWidget(self.update_Button)
|
self.verticalLayout_4.addWidget(self.update_Button)
|
||||||
|
|
||||||
self.checkBox = QCheckBox(self.widget)
|
self.checkBox = QCheckBox(self.groupBox_4)
|
||||||
self.checkBox.setObjectName(u"checkBox")
|
self.checkBox.setObjectName(u"checkBox")
|
||||||
self.checkBox.setLayoutDirection(Qt.LeftToRight)
|
self.checkBox.setLayoutDirection(Qt.LeftToRight)
|
||||||
self.checkBox.setChecked(True)
|
self.checkBox.setChecked(True)
|
||||||
|
|
||||||
self.verticalLayout.addWidget(self.checkBox)
|
self.verticalLayout_4.addWidget(self.checkBox)
|
||||||
|
|
||||||
self.close_Button = QPushButton(self.widget)
|
self.close_Button = QPushButton(self.groupBox_4)
|
||||||
self.close_Button.setObjectName(u"close_Button")
|
self.close_Button.setObjectName(u"close_Button")
|
||||||
|
|
||||||
self.verticalLayout.addWidget(self.close_Button)
|
self.verticalLayout_4.addWidget(self.close_Button)
|
||||||
|
|
||||||
|
|
||||||
|
self.verticalLayout_5.addWidget(self.groupBox_4)
|
||||||
|
|
||||||
|
|
||||||
self.horizontalLayout.addWidget(self.widget)
|
self.horizontalLayout.addWidget(self.widget)
|
||||||
|
@ -151,6 +178,7 @@ class Ui_Preview_Window(object):
|
||||||
self.brightness_spinBox.valueChanged.connect(self.brightness_Slider.setValue)
|
self.brightness_spinBox.valueChanged.connect(self.brightness_Slider.setValue)
|
||||||
self.contrast_Slider.valueChanged.connect(self.contrast_spinBox.setValue)
|
self.contrast_Slider.valueChanged.connect(self.contrast_spinBox.setValue)
|
||||||
self.contrast_spinBox.valueChanged.connect(self.contrast_Slider.setValue)
|
self.contrast_spinBox.valueChanged.connect(self.contrast_Slider.setValue)
|
||||||
|
self.live_update.toggled.connect(self.update_Button.setDisabled)
|
||||||
|
|
||||||
QMetaObject.connectSlotsByName(Preview_Window)
|
QMetaObject.connectSlotsByName(Preview_Window)
|
||||||
# setupUi
|
# setupUi
|
||||||
|
@ -158,33 +186,36 @@ class Ui_Preview_Window(object):
|
||||||
def retranslateUi(self, Preview_Window):
|
def retranslateUi(self, Preview_Window):
|
||||||
Preview_Window.setWindowTitle(QCoreApplication.translate("Preview_Window", u"OptimaLab35 - Preview", None))
|
Preview_Window.setWindowTitle(QCoreApplication.translate("Preview_Window", u"OptimaLab35 - Preview", None))
|
||||||
self.QLabel.setText("")
|
self.QLabel.setText("")
|
||||||
|
self.groupBox_3.setTitle(QCoreApplication.translate("Preview_Window", u"File", None))
|
||||||
#if QT_CONFIG(tooltip)
|
#if QT_CONFIG(tooltip)
|
||||||
self.image_path_lineEdit.setToolTip(QCoreApplication.translate("Preview_Window", u"Enter the path to the image file or use the 'Select Image' button to browse.", None))
|
self.image_path_lineEdit.setToolTip(QCoreApplication.translate("Preview_Window", u"Enter the path to the image file or use the 'Select Image' button to browse.", None))
|
||||||
#endif // QT_CONFIG(tooltip)
|
#endif // QT_CONFIG(tooltip)
|
||||||
self.image_path_lineEdit.setPlaceholderText(QCoreApplication.translate("Preview_Window", u"Image Path", None))
|
self.image_path_lineEdit.setPlaceholderText(QCoreApplication.translate("Preview_Window", u"Image Path", None))
|
||||||
self.load_Button.setText(QCoreApplication.translate("Preview_Window", u"Select image", None))
|
self.load_Button.setText(QCoreApplication.translate("Preview_Window", u"Select image", None))
|
||||||
self.label.setText(QCoreApplication.translate("Preview_Window", u"Brightness", None))
|
self.groupBox_2.setTitle(QCoreApplication.translate("Preview_Window", u"Brightness", None))
|
||||||
#if QT_CONFIG(tooltip)
|
#if QT_CONFIG(tooltip)
|
||||||
self.reset_brightness_Button.setToolTip(QCoreApplication.translate("Preview_Window", u"Click to reset the brightness to its default value (0).", None))
|
self.reset_brightness_Button.setToolTip(QCoreApplication.translate("Preview_Window", u"Click to reset the brightness to its default value (0).", None))
|
||||||
#endif // QT_CONFIG(tooltip)
|
#endif // QT_CONFIG(tooltip)
|
||||||
self.reset_brightness_Button.setText(QCoreApplication.translate("Preview_Window", u"Reset", None))
|
self.reset_brightness_Button.setText(QCoreApplication.translate("Preview_Window", u"Reset", None))
|
||||||
self.label_2.setText(QCoreApplication.translate("Preview_Window", u"Contrast", None))
|
self.groupBox.setTitle(QCoreApplication.translate("Preview_Window", u"Contrast", None))
|
||||||
#if QT_CONFIG(tooltip)
|
#if QT_CONFIG(tooltip)
|
||||||
self.reset_contrast_Button.setToolTip(QCoreApplication.translate("Preview_Window", u"Click to reset the contrast to its default value (0).", None))
|
self.reset_contrast_Button.setToolTip(QCoreApplication.translate("Preview_Window", u"Click to reset the contrast to its default value (0).", None))
|
||||||
#endif // QT_CONFIG(tooltip)
|
#endif // QT_CONFIG(tooltip)
|
||||||
self.reset_contrast_Button.setText(QCoreApplication.translate("Preview_Window", u"Reset", None))
|
self.reset_contrast_Button.setText(QCoreApplication.translate("Preview_Window", u"Reset", None))
|
||||||
|
self.groupBox_5.setTitle(QCoreApplication.translate("Preview_Window", u"Grayscale", None))
|
||||||
#if QT_CONFIG(tooltip)
|
#if QT_CONFIG(tooltip)
|
||||||
self.grayscale_checkBox.setToolTip(QCoreApplication.translate("Preview_Window", u"Convert the image to grayscale (black and white).", None))
|
self.grayscale_checkBox.setToolTip(QCoreApplication.translate("Preview_Window", u"Convert the image to grayscale (black and white).", None))
|
||||||
#endif // QT_CONFIG(tooltip)
|
#endif // QT_CONFIG(tooltip)
|
||||||
self.grayscale_checkBox.setText(QCoreApplication.translate("Preview_Window", u"Black n White", None))
|
self.grayscale_checkBox.setText(QCoreApplication.translate("Preview_Window", u"Black n White", None))
|
||||||
|
self.groupBox_4.setTitle(QCoreApplication.translate("Preview_Window", u"Behavior", None))
|
||||||
#if QT_CONFIG(tooltip)
|
#if QT_CONFIG(tooltip)
|
||||||
self.live_update.setToolTip(QCoreApplication.translate("Preview_Window", u"Live update applies changes instantly. If the app becomes unresponsive or lags, disable this option.", None))
|
self.live_update.setToolTip(QCoreApplication.translate("Preview_Window", u"Live update applies changes instantly. If the app becomes unresponsive or lags, disable this option.", None))
|
||||||
#endif // QT_CONFIG(tooltip)
|
#endif // QT_CONFIG(tooltip)
|
||||||
self.live_update.setText(QCoreApplication.translate("Preview_Window", u"Live update", None))
|
self.live_update.setText(QCoreApplication.translate("Preview_Window", u"Live refresh", None))
|
||||||
#if QT_CONFIG(tooltip)
|
#if QT_CONFIG(tooltip)
|
||||||
self.update_Button.setToolTip(QCoreApplication.translate("Preview_Window", u"Apply Changes to Preview", None))
|
self.update_Button.setToolTip(QCoreApplication.translate("Preview_Window", u"Apply Changes to Preview", None))
|
||||||
#endif // QT_CONFIG(tooltip)
|
#endif // QT_CONFIG(tooltip)
|
||||||
self.update_Button.setText(QCoreApplication.translate("Preview_Window", u"Update Preview", None))
|
self.update_Button.setText(QCoreApplication.translate("Preview_Window", u"Refresh image", None))
|
||||||
#if QT_CONFIG(tooltip)
|
#if QT_CONFIG(tooltip)
|
||||||
self.checkBox.setToolTip(QCoreApplication.translate("Preview_Window", u"Enable to copy adjustments to the main window upon closing", None))
|
self.checkBox.setToolTip(QCoreApplication.translate("Preview_Window", u"Enable to copy adjustments to the main window upon closing", None))
|
||||||
#endif // QT_CONFIG(tooltip)
|
#endif // QT_CONFIG(tooltip)
|
||||||
|
|
|
@ -54,112 +54,134 @@
|
||||||
<height>16777215</height>
|
<height>16777215</height>
|
||||||
</size>
|
</size>
|
||||||
</property>
|
</property>
|
||||||
<layout class="QVBoxLayout" name="verticalLayout">
|
<layout class="QVBoxLayout" name="verticalLayout_5">
|
||||||
<item>
|
<item>
|
||||||
<widget class="QLineEdit" name="image_path_lineEdit">
|
<widget class="QGroupBox" name="groupBox_3">
|
||||||
<property name="toolTip">
|
<property name="title">
|
||||||
<string>Enter the path to the image file or use the 'Select Image' button to browse.</string>
|
<string>File</string>
|
||||||
</property>
|
|
||||||
<property name="placeholderText">
|
|
||||||
<string>Image Path</string>
|
|
||||||
</property>
|
</property>
|
||||||
|
<layout class="QVBoxLayout" name="verticalLayout_3">
|
||||||
|
<item>
|
||||||
|
<widget class="QLineEdit" name="image_path_lineEdit">
|
||||||
|
<property name="toolTip">
|
||||||
|
<string>Enter the path to the image file or use the 'Select Image' button to browse.</string>
|
||||||
|
</property>
|
||||||
|
<property name="placeholderText">
|
||||||
|
<string>Image Path</string>
|
||||||
|
</property>
|
||||||
|
</widget>
|
||||||
|
</item>
|
||||||
|
<item>
|
||||||
|
<widget class="QPushButton" name="load_Button">
|
||||||
|
<property name="text">
|
||||||
|
<string>Select image</string>
|
||||||
|
</property>
|
||||||
|
</widget>
|
||||||
|
</item>
|
||||||
|
</layout>
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
<item>
|
<item>
|
||||||
<widget class="QPushButton" name="load_Button">
|
<widget class="QGroupBox" name="groupBox_2">
|
||||||
<property name="text">
|
<property name="title">
|
||||||
<string>Select image</string>
|
|
||||||
</property>
|
|
||||||
</widget>
|
|
||||||
</item>
|
|
||||||
<item>
|
|
||||||
<widget class="QLabel" name="label">
|
|
||||||
<property name="text">
|
|
||||||
<string>Brightness</string>
|
<string>Brightness</string>
|
||||||
</property>
|
</property>
|
||||||
|
<layout class="QVBoxLayout" name="verticalLayout">
|
||||||
|
<item>
|
||||||
|
<widget class="QSpinBox" name="brightness_spinBox">
|
||||||
|
<property name="minimum">
|
||||||
|
<number>-100</number>
|
||||||
|
</property>
|
||||||
|
<property name="maximum">
|
||||||
|
<number>100</number>
|
||||||
|
</property>
|
||||||
|
</widget>
|
||||||
|
</item>
|
||||||
|
<item>
|
||||||
|
<widget class="QSlider" name="brightness_Slider">
|
||||||
|
<property name="minimum">
|
||||||
|
<number>-100</number>
|
||||||
|
</property>
|
||||||
|
<property name="maximum">
|
||||||
|
<number>100</number>
|
||||||
|
</property>
|
||||||
|
<property name="orientation">
|
||||||
|
<enum>Qt::Horizontal</enum>
|
||||||
|
</property>
|
||||||
|
</widget>
|
||||||
|
</item>
|
||||||
|
<item>
|
||||||
|
<widget class="QPushButton" name="reset_brightness_Button">
|
||||||
|
<property name="toolTip">
|
||||||
|
<string>Click to reset the brightness to its default value (0).</string>
|
||||||
|
</property>
|
||||||
|
<property name="text">
|
||||||
|
<string>Reset</string>
|
||||||
|
</property>
|
||||||
|
</widget>
|
||||||
|
</item>
|
||||||
|
</layout>
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
<item>
|
<item>
|
||||||
<widget class="QSpinBox" name="brightness_spinBox">
|
<widget class="QGroupBox" name="groupBox">
|
||||||
<property name="minimum">
|
<property name="title">
|
||||||
<number>-100</number>
|
|
||||||
</property>
|
|
||||||
<property name="maximum">
|
|
||||||
<number>100</number>
|
|
||||||
</property>
|
|
||||||
</widget>
|
|
||||||
</item>
|
|
||||||
<item>
|
|
||||||
<widget class="QSlider" name="brightness_Slider">
|
|
||||||
<property name="minimum">
|
|
||||||
<number>-100</number>
|
|
||||||
</property>
|
|
||||||
<property name="maximum">
|
|
||||||
<number>100</number>
|
|
||||||
</property>
|
|
||||||
<property name="orientation">
|
|
||||||
<enum>Qt::Horizontal</enum>
|
|
||||||
</property>
|
|
||||||
</widget>
|
|
||||||
</item>
|
|
||||||
<item>
|
|
||||||
<widget class="QPushButton" name="reset_brightness_Button">
|
|
||||||
<property name="toolTip">
|
|
||||||
<string>Click to reset the brightness to its default value (0).</string>
|
|
||||||
</property>
|
|
||||||
<property name="text">
|
|
||||||
<string>Reset</string>
|
|
||||||
</property>
|
|
||||||
</widget>
|
|
||||||
</item>
|
|
||||||
<item>
|
|
||||||
<widget class="QLabel" name="label_2">
|
|
||||||
<property name="text">
|
|
||||||
<string>Contrast</string>
|
<string>Contrast</string>
|
||||||
</property>
|
</property>
|
||||||
|
<layout class="QVBoxLayout" name="verticalLayout_2">
|
||||||
|
<item>
|
||||||
|
<widget class="QSpinBox" name="contrast_spinBox">
|
||||||
|
<property name="minimum">
|
||||||
|
<number>-100</number>
|
||||||
|
</property>
|
||||||
|
<property name="maximum">
|
||||||
|
<number>100</number>
|
||||||
|
</property>
|
||||||
|
</widget>
|
||||||
|
</item>
|
||||||
|
<item>
|
||||||
|
<widget class="QSlider" name="contrast_Slider">
|
||||||
|
<property name="minimum">
|
||||||
|
<number>-100</number>
|
||||||
|
</property>
|
||||||
|
<property name="maximum">
|
||||||
|
<number>100</number>
|
||||||
|
</property>
|
||||||
|
<property name="orientation">
|
||||||
|
<enum>Qt::Horizontal</enum>
|
||||||
|
</property>
|
||||||
|
</widget>
|
||||||
|
</item>
|
||||||
|
<item>
|
||||||
|
<widget class="QPushButton" name="reset_contrast_Button">
|
||||||
|
<property name="toolTip">
|
||||||
|
<string>Click to reset the contrast to its default value (0).</string>
|
||||||
|
</property>
|
||||||
|
<property name="text">
|
||||||
|
<string>Reset</string>
|
||||||
|
</property>
|
||||||
|
</widget>
|
||||||
|
</item>
|
||||||
|
</layout>
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
<item>
|
<item>
|
||||||
<widget class="QSpinBox" name="contrast_spinBox">
|
<widget class="QGroupBox" name="groupBox_5">
|
||||||
<property name="minimum">
|
<property name="title">
|
||||||
<number>-100</number>
|
<string>Grayscale</string>
|
||||||
</property>
|
|
||||||
<property name="maximum">
|
|
||||||
<number>100</number>
|
|
||||||
</property>
|
|
||||||
</widget>
|
|
||||||
</item>
|
|
||||||
<item>
|
|
||||||
<widget class="QSlider" name="contrast_Slider">
|
|
||||||
<property name="minimum">
|
|
||||||
<number>-100</number>
|
|
||||||
</property>
|
|
||||||
<property name="maximum">
|
|
||||||
<number>100</number>
|
|
||||||
</property>
|
|
||||||
<property name="orientation">
|
|
||||||
<enum>Qt::Horizontal</enum>
|
|
||||||
</property>
|
|
||||||
</widget>
|
|
||||||
</item>
|
|
||||||
<item>
|
|
||||||
<widget class="QPushButton" name="reset_contrast_Button">
|
|
||||||
<property name="toolTip">
|
|
||||||
<string>Click to reset the contrast to its default value (0).</string>
|
|
||||||
</property>
|
|
||||||
<property name="text">
|
|
||||||
<string>Reset</string>
|
|
||||||
</property>
|
|
||||||
</widget>
|
|
||||||
</item>
|
|
||||||
<item>
|
|
||||||
<widget class="QCheckBox" name="grayscale_checkBox">
|
|
||||||
<property name="toolTip">
|
|
||||||
<string>Convert the image to grayscale (black and white).</string>
|
|
||||||
</property>
|
|
||||||
<property name="text">
|
|
||||||
<string>Black n White</string>
|
|
||||||
</property>
|
</property>
|
||||||
|
<layout class="QGridLayout" name="gridLayout">
|
||||||
|
<item row="0" column="0">
|
||||||
|
<widget class="QCheckBox" name="grayscale_checkBox">
|
||||||
|
<property name="toolTip">
|
||||||
|
<string>Convert the image to grayscale (black and white).</string>
|
||||||
|
</property>
|
||||||
|
<property name="text">
|
||||||
|
<string>Black n White</string>
|
||||||
|
</property>
|
||||||
|
</widget>
|
||||||
|
</item>
|
||||||
|
</layout>
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
<item>
|
<item>
|
||||||
|
@ -176,55 +198,67 @@
|
||||||
</spacer>
|
</spacer>
|
||||||
</item>
|
</item>
|
||||||
<item>
|
<item>
|
||||||
<widget class="QCheckBox" name="live_update">
|
<widget class="QGroupBox" name="groupBox_4">
|
||||||
<property name="toolTip">
|
<property name="title">
|
||||||
<string>Live update applies changes instantly. If the app becomes unresponsive or lags, disable this option.</string>
|
<string>Behavior</string>
|
||||||
</property>
|
|
||||||
<property name="text">
|
|
||||||
<string>Live update</string>
|
|
||||||
</property>
|
|
||||||
<property name="checked">
|
|
||||||
<bool>true</bool>
|
|
||||||
</property>
|
|
||||||
</widget>
|
|
||||||
</item>
|
|
||||||
<item>
|
|
||||||
<widget class="QPushButton" name="update_Button">
|
|
||||||
<property name="toolTip">
|
|
||||||
<string>Apply Changes to Preview</string>
|
|
||||||
</property>
|
|
||||||
<property name="autoFillBackground">
|
|
||||||
<bool>false</bool>
|
|
||||||
</property>
|
|
||||||
<property name="text">
|
|
||||||
<string>Update Preview</string>
|
|
||||||
</property>
|
|
||||||
</widget>
|
|
||||||
</item>
|
|
||||||
<item>
|
|
||||||
<widget class="QCheckBox" name="checkBox">
|
|
||||||
<property name="toolTip">
|
|
||||||
<string>Enable to copy adjustments to the main window upon closing</string>
|
|
||||||
</property>
|
|
||||||
<property name="layoutDirection">
|
|
||||||
<enum>Qt::LeftToRight</enum>
|
|
||||||
</property>
|
|
||||||
<property name="text">
|
|
||||||
<string>Copy Values</string>
|
|
||||||
</property>
|
|
||||||
<property name="checked">
|
|
||||||
<bool>true</bool>
|
|
||||||
</property>
|
|
||||||
</widget>
|
|
||||||
</item>
|
|
||||||
<item>
|
|
||||||
<widget class="QPushButton" name="close_Button">
|
|
||||||
<property name="toolTip">
|
|
||||||
<string/>
|
|
||||||
</property>
|
|
||||||
<property name="text">
|
|
||||||
<string>Close</string>
|
|
||||||
</property>
|
</property>
|
||||||
|
<layout class="QVBoxLayout" name="verticalLayout_4">
|
||||||
|
<item>
|
||||||
|
<widget class="QCheckBox" name="live_update">
|
||||||
|
<property name="toolTip">
|
||||||
|
<string>Live update applies changes instantly. If the app becomes unresponsive or lags, disable this option.</string>
|
||||||
|
</property>
|
||||||
|
<property name="text">
|
||||||
|
<string>Live refresh</string>
|
||||||
|
</property>
|
||||||
|
<property name="checked">
|
||||||
|
<bool>true</bool>
|
||||||
|
</property>
|
||||||
|
</widget>
|
||||||
|
</item>
|
||||||
|
<item>
|
||||||
|
<widget class="QPushButton" name="update_Button">
|
||||||
|
<property name="enabled">
|
||||||
|
<bool>false</bool>
|
||||||
|
</property>
|
||||||
|
<property name="toolTip">
|
||||||
|
<string>Apply Changes to Preview</string>
|
||||||
|
</property>
|
||||||
|
<property name="autoFillBackground">
|
||||||
|
<bool>false</bool>
|
||||||
|
</property>
|
||||||
|
<property name="text">
|
||||||
|
<string>Refresh image</string>
|
||||||
|
</property>
|
||||||
|
</widget>
|
||||||
|
</item>
|
||||||
|
<item>
|
||||||
|
<widget class="QCheckBox" name="checkBox">
|
||||||
|
<property name="toolTip">
|
||||||
|
<string>Enable to copy adjustments to the main window upon closing</string>
|
||||||
|
</property>
|
||||||
|
<property name="layoutDirection">
|
||||||
|
<enum>Qt::LeftToRight</enum>
|
||||||
|
</property>
|
||||||
|
<property name="text">
|
||||||
|
<string>Copy Values</string>
|
||||||
|
</property>
|
||||||
|
<property name="checked">
|
||||||
|
<bool>true</bool>
|
||||||
|
</property>
|
||||||
|
</widget>
|
||||||
|
</item>
|
||||||
|
<item>
|
||||||
|
<widget class="QPushButton" name="close_Button">
|
||||||
|
<property name="toolTip">
|
||||||
|
<string/>
|
||||||
|
</property>
|
||||||
|
<property name="text">
|
||||||
|
<string>Close</string>
|
||||||
|
</property>
|
||||||
|
</widget>
|
||||||
|
</item>
|
||||||
|
</layout>
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
</layout>
|
</layout>
|
||||||
|
@ -309,5 +343,21 @@
|
||||||
</hint>
|
</hint>
|
||||||
</hints>
|
</hints>
|
||||||
</connection>
|
</connection>
|
||||||
|
<connection>
|
||||||
|
<sender>live_update</sender>
|
||||||
|
<signal>toggled(bool)</signal>
|
||||||
|
<receiver>update_Button</receiver>
|
||||||
|
<slot>setDisabled(bool)</slot>
|
||||||
|
<hints>
|
||||||
|
<hint type="sourcelabel">
|
||||||
|
<x>785</x>
|
||||||
|
<y>624</y>
|
||||||
|
</hint>
|
||||||
|
<hint type="destinationlabel">
|
||||||
|
<x>785</x>
|
||||||
|
<y>659</y>
|
||||||
|
</hint>
|
||||||
|
</hints>
|
||||||
|
</connection>
|
||||||
</connections>
|
</connections>
|
||||||
</ui>
|
</ui>
|
||||||
|
|
|
@ -16,16 +16,16 @@ from PySide6.QtGui import (QBrush, QColor, QConicalGradient, QCursor,
|
||||||
QImage, QKeySequence, QLinearGradient, QPainter,
|
QImage, QKeySequence, QLinearGradient, QPainter,
|
||||||
QPalette, QPixmap, QRadialGradient, QTransform)
|
QPalette, QPixmap, QRadialGradient, QTransform)
|
||||||
from PySide6.QtWidgets import (QApplication, QCheckBox, QComboBox, QGridLayout,
|
from PySide6.QtWidgets import (QApplication, QCheckBox, QComboBox, QGridLayout,
|
||||||
QHBoxLayout, QLabel, QMainWindow, QPushButton,
|
QGroupBox, QHBoxLayout, QLabel, QMainWindow,
|
||||||
QSizePolicy, QSpacerItem, QTabWidget, QVBoxLayout,
|
QPushButton, QSizePolicy, QSpacerItem, QTabWidget,
|
||||||
QWidget)
|
QVBoxLayout, QWidget)
|
||||||
|
|
||||||
class Ui_Settings_Window(object):
|
class Ui_Settings_Window(object):
|
||||||
def setupUi(self, Settings_Window):
|
def setupUi(self, Settings_Window):
|
||||||
if not Settings_Window.objectName():
|
if not Settings_Window.objectName():
|
||||||
Settings_Window.setObjectName(u"Settings_Window")
|
Settings_Window.setObjectName(u"Settings_Window")
|
||||||
Settings_Window.setEnabled(True)
|
Settings_Window.setEnabled(True)
|
||||||
Settings_Window.resize(400, 300)
|
Settings_Window.resize(400, 325)
|
||||||
Settings_Window.setMinimumSize(QSize(400, 300))
|
Settings_Window.setMinimumSize(QSize(400, 300))
|
||||||
Settings_Window.setMaximumSize(QSize(500, 500))
|
Settings_Window.setMaximumSize(QSize(500, 500))
|
||||||
self.centralwidget = QWidget(Settings_Window)
|
self.centralwidget = QWidget(Settings_Window)
|
||||||
|
@ -38,16 +38,43 @@ class Ui_Settings_Window(object):
|
||||||
self.tabWidgetPage1.setObjectName(u"tabWidgetPage1")
|
self.tabWidgetPage1.setObjectName(u"tabWidgetPage1")
|
||||||
self.verticalLayout_2 = QVBoxLayout(self.tabWidgetPage1)
|
self.verticalLayout_2 = QVBoxLayout(self.tabWidgetPage1)
|
||||||
self.verticalLayout_2.setObjectName(u"verticalLayout_2")
|
self.verticalLayout_2.setObjectName(u"verticalLayout_2")
|
||||||
self.widget_3 = QWidget(self.tabWidgetPage1)
|
self.groupBox_4 = QGroupBox(self.tabWidgetPage1)
|
||||||
self.widget_3.setObjectName(u"widget_3")
|
self.groupBox_4.setObjectName(u"groupBox_4")
|
||||||
self.gridLayout_3 = QGridLayout(self.widget_3)
|
self.horizontalLayout_3 = QHBoxLayout(self.groupBox_4)
|
||||||
|
self.horizontalLayout_3.setObjectName(u"horizontalLayout_3")
|
||||||
|
self.label_4 = QLabel(self.groupBox_4)
|
||||||
|
self.label_4.setObjectName(u"label_4")
|
||||||
|
self.label_4.setWordWrap(True)
|
||||||
|
|
||||||
|
self.horizontalLayout_3.addWidget(self.label_4)
|
||||||
|
|
||||||
|
self.reset_exif_Button = QPushButton(self.groupBox_4)
|
||||||
|
self.reset_exif_Button.setObjectName(u"reset_exif_Button")
|
||||||
|
self.reset_exif_Button.setMinimumSize(QSize(100, 0))
|
||||||
|
self.reset_exif_Button.setMaximumSize(QSize(100, 16777215))
|
||||||
|
|
||||||
|
self.horizontalLayout_3.addWidget(self.reset_exif_Button)
|
||||||
|
|
||||||
|
|
||||||
|
self.verticalLayout_2.addWidget(self.groupBox_4)
|
||||||
|
|
||||||
|
self.groupBox_3 = QGroupBox(self.tabWidgetPage1)
|
||||||
|
self.groupBox_3.setObjectName(u"groupBox_3")
|
||||||
|
self.gridLayout_3 = QGridLayout(self.groupBox_3)
|
||||||
self.gridLayout_3.setObjectName(u"gridLayout_3")
|
self.gridLayout_3.setObjectName(u"gridLayout_3")
|
||||||
self.label_3 = QLabel(self.widget_3)
|
self.label_3 = QLabel(self.groupBox_3)
|
||||||
self.label_3.setObjectName(u"label_3")
|
self.label_3.setObjectName(u"label_3")
|
||||||
|
|
||||||
self.gridLayout_3.addWidget(self.label_3, 0, 0, 1, 3)
|
self.gridLayout_3.addWidget(self.label_3, 0, 0, 1, 3)
|
||||||
|
|
||||||
self.theme_selection_comboBox = QComboBox(self.widget_3)
|
self.enable_theme_checkBox = QCheckBox(self.groupBox_3)
|
||||||
|
self.enable_theme_checkBox.setObjectName(u"enable_theme_checkBox")
|
||||||
|
self.enable_theme_checkBox.setChecked(False)
|
||||||
|
|
||||||
|
self.gridLayout_3.addWidget(self.enable_theme_checkBox, 1, 0, 1, 1)
|
||||||
|
|
||||||
|
self.theme_selection_comboBox = QComboBox(self.groupBox_3)
|
||||||
|
self.theme_selection_comboBox.addItem("")
|
||||||
self.theme_selection_comboBox.addItem("")
|
self.theme_selection_comboBox.addItem("")
|
||||||
self.theme_selection_comboBox.addItem("")
|
self.theme_selection_comboBox.addItem("")
|
||||||
self.theme_selection_comboBox.setObjectName(u"theme_selection_comboBox")
|
self.theme_selection_comboBox.setObjectName(u"theme_selection_comboBox")
|
||||||
|
@ -57,140 +84,90 @@ class Ui_Settings_Window(object):
|
||||||
|
|
||||||
self.gridLayout_3.addWidget(self.theme_selection_comboBox, 1, 2, 1, 1)
|
self.gridLayout_3.addWidget(self.theme_selection_comboBox, 1, 2, 1, 1)
|
||||||
|
|
||||||
self.enable_theme_checkBox = QCheckBox(self.widget_3)
|
self.save_and_close_Button = QPushButton(self.groupBox_3)
|
||||||
self.enable_theme_checkBox.setObjectName(u"enable_theme_checkBox")
|
self.save_and_close_Button.setObjectName(u"save_and_close_Button")
|
||||||
self.enable_theme_checkBox.setChecked(False)
|
|
||||||
|
|
||||||
self.gridLayout_3.addWidget(self.enable_theme_checkBox, 1, 0, 1, 1)
|
self.gridLayout_3.addWidget(self.save_and_close_Button, 3, 0, 1, 1)
|
||||||
|
|
||||||
self.horizontalSpacer_2 = QSpacerItem(98, 20, QSizePolicy.Policy.Expanding, QSizePolicy.Policy.Minimum)
|
self.horizontalSpacer_2 = QSpacerItem(98, 20, QSizePolicy.Policy.Expanding, QSizePolicy.Policy.Minimum)
|
||||||
|
|
||||||
self.gridLayout_3.addItem(self.horizontalSpacer_2, 1, 1, 1, 1)
|
self.gridLayout_3.addItem(self.horizontalSpacer_2, 1, 1, 1, 1)
|
||||||
|
|
||||||
self.install_pkg_Button = QPushButton(self.widget_3)
|
self.install_pkg_Button = QPushButton(self.groupBox_3)
|
||||||
self.install_pkg_Button.setObjectName(u"install_pkg_Button")
|
self.install_pkg_Button.setObjectName(u"install_pkg_Button")
|
||||||
|
|
||||||
self.gridLayout_3.addWidget(self.install_pkg_Button, 2, 0, 1, 3)
|
self.gridLayout_3.addWidget(self.install_pkg_Button, 2, 0, 1, 3)
|
||||||
|
|
||||||
|
self.save_and_restart_Button = QPushButton(self.groupBox_3)
|
||||||
self.verticalLayout_2.addWidget(self.widget_3)
|
|
||||||
|
|
||||||
self.widget_4 = QWidget(self.tabWidgetPage1)
|
|
||||||
self.widget_4.setObjectName(u"widget_4")
|
|
||||||
self.horizontalLayout_3 = QHBoxLayout(self.widget_4)
|
|
||||||
self.horizontalLayout_3.setObjectName(u"horizontalLayout_3")
|
|
||||||
self.label_4 = QLabel(self.widget_4)
|
|
||||||
self.label_4.setObjectName(u"label_4")
|
|
||||||
self.label_4.setWordWrap(True)
|
|
||||||
|
|
||||||
self.horizontalLayout_3.addWidget(self.label_4)
|
|
||||||
|
|
||||||
self.reset_exif_Button = QPushButton(self.widget_4)
|
|
||||||
self.reset_exif_Button.setObjectName(u"reset_exif_Button")
|
|
||||||
self.reset_exif_Button.setMinimumSize(QSize(100, 0))
|
|
||||||
self.reset_exif_Button.setMaximumSize(QSize(100, 16777215))
|
|
||||||
|
|
||||||
self.horizontalLayout_3.addWidget(self.reset_exif_Button)
|
|
||||||
|
|
||||||
|
|
||||||
self.verticalLayout_2.addWidget(self.widget_4)
|
|
||||||
|
|
||||||
self.verticalSpacer = QSpacerItem(20, 237, QSizePolicy.Policy.Minimum, QSizePolicy.Policy.Expanding)
|
|
||||||
|
|
||||||
self.verticalLayout_2.addItem(self.verticalSpacer)
|
|
||||||
|
|
||||||
self.widget_5 = QWidget(self.tabWidgetPage1)
|
|
||||||
self.widget_5.setObjectName(u"widget_5")
|
|
||||||
self.horizontalLayout_4 = QHBoxLayout(self.widget_5)
|
|
||||||
self.horizontalLayout_4.setObjectName(u"horizontalLayout_4")
|
|
||||||
self.save_and_close_Button = QPushButton(self.widget_5)
|
|
||||||
self.save_and_close_Button.setObjectName(u"save_and_close_Button")
|
|
||||||
|
|
||||||
self.horizontalLayout_4.addWidget(self.save_and_close_Button)
|
|
||||||
|
|
||||||
self.save_and_restart_Button = QPushButton(self.widget_5)
|
|
||||||
self.save_and_restart_Button.setObjectName(u"save_and_restart_Button")
|
self.save_and_restart_Button.setObjectName(u"save_and_restart_Button")
|
||||||
|
|
||||||
self.horizontalLayout_4.addWidget(self.save_and_restart_Button)
|
self.gridLayout_3.addWidget(self.save_and_restart_Button, 3, 1, 1, 2)
|
||||||
|
|
||||||
|
|
||||||
self.verticalLayout_2.addWidget(self.widget_5)
|
self.verticalLayout_2.addWidget(self.groupBox_3)
|
||||||
|
|
||||||
self.tabWidget.addTab(self.tabWidgetPage1, "")
|
self.tabWidget.addTab(self.tabWidgetPage1, "")
|
||||||
self.tabWidgetPage2 = QWidget()
|
self.tabWidgetPage2 = QWidget()
|
||||||
self.tabWidgetPage2.setObjectName(u"tabWidgetPage2")
|
self.tabWidgetPage2.setObjectName(u"tabWidgetPage2")
|
||||||
self.verticalLayout_3 = QVBoxLayout(self.tabWidgetPage2)
|
self.gridLayout_2 = QGridLayout(self.tabWidgetPage2)
|
||||||
self.verticalLayout_3.setObjectName(u"verticalLayout_3")
|
self.gridLayout_2.setObjectName(u"gridLayout_2")
|
||||||
self.widget_6 = QWidget(self.tabWidgetPage2)
|
self.pkg_info_groupBox = QGroupBox(self.tabWidgetPage2)
|
||||||
self.widget_6.setObjectName(u"widget_6")
|
self.pkg_info_groupBox.setObjectName(u"pkg_info_groupBox")
|
||||||
self.label_last_check = QLabel(self.widget_6)
|
self.gridLayout = QGridLayout(self.pkg_info_groupBox)
|
||||||
self.label_last_check.setObjectName(u"label_last_check")
|
|
||||||
self.label_last_check.setGeometry(QRect(0, 10, 131, 22))
|
|
||||||
self.label_last_check_2 = QLabel(self.widget_6)
|
|
||||||
self.label_last_check_2.setObjectName(u"label_last_check_2")
|
|
||||||
self.label_last_check_2.setEnabled(True)
|
|
||||||
self.label_last_check_2.setGeometry(QRect(190, 10, 67, 22))
|
|
||||||
self.label_last_check_2.setAlignment(Qt.AlignRight|Qt.AlignTrailing|Qt.AlignVCenter)
|
|
||||||
|
|
||||||
self.verticalLayout_3.addWidget(self.widget_6)
|
|
||||||
|
|
||||||
self.widget_2 = QWidget(self.tabWidgetPage2)
|
|
||||||
self.widget_2.setObjectName(u"widget_2")
|
|
||||||
self.gridLayout = QGridLayout(self.widget_2)
|
|
||||||
self.gridLayout.setObjectName(u"gridLayout")
|
self.gridLayout.setObjectName(u"gridLayout")
|
||||||
self.label_optima35_latestversion = QLabel(self.widget_2)
|
self.label_optima35_latestversion = QLabel(self.pkg_info_groupBox)
|
||||||
self.label_optima35_latestversion.setObjectName(u"label_optima35_latestversion")
|
self.label_optima35_latestversion.setObjectName(u"label_optima35_latestversion")
|
||||||
self.label_optima35_latestversion.setAlignment(Qt.AlignRight|Qt.AlignTrailing|Qt.AlignVCenter)
|
self.label_optima35_latestversion.setAlignment(Qt.AlignRight|Qt.AlignTrailing|Qt.AlignVCenter)
|
||||||
|
|
||||||
self.gridLayout.addWidget(self.label_optima35_latestversion, 2, 2, 1, 1)
|
self.gridLayout.addWidget(self.label_optima35_latestversion, 2, 2, 1, 1)
|
||||||
|
|
||||||
self.label_latest_version = QLabel(self.widget_2)
|
self.label_latest_version = QLabel(self.pkg_info_groupBox)
|
||||||
self.label_latest_version.setObjectName(u"label_latest_version")
|
self.label_latest_version.setObjectName(u"label_latest_version")
|
||||||
self.label_latest_version.setAlignment(Qt.AlignRight|Qt.AlignTrailing|Qt.AlignVCenter)
|
self.label_latest_version.setAlignment(Qt.AlignRight|Qt.AlignTrailing|Qt.AlignVCenter)
|
||||||
|
|
||||||
self.gridLayout.addWidget(self.label_latest_version, 0, 2, 1, 1)
|
self.gridLayout.addWidget(self.label_latest_version, 0, 2, 1, 1)
|
||||||
|
|
||||||
self.label = QLabel(self.widget_2)
|
self.label = QLabel(self.pkg_info_groupBox)
|
||||||
self.label.setObjectName(u"label")
|
self.label.setObjectName(u"label")
|
||||||
|
|
||||||
self.gridLayout.addWidget(self.label, 1, 0, 1, 1)
|
self.gridLayout.addWidget(self.label, 1, 0, 1, 1)
|
||||||
|
|
||||||
self.label_optimalab35_latestversion = QLabel(self.widget_2)
|
self.label_optimalab35_latestversion = QLabel(self.pkg_info_groupBox)
|
||||||
self.label_optimalab35_latestversion.setObjectName(u"label_optimalab35_latestversion")
|
self.label_optimalab35_latestversion.setObjectName(u"label_optimalab35_latestversion")
|
||||||
self.label_optimalab35_latestversion.setAlignment(Qt.AlignRight|Qt.AlignTrailing|Qt.AlignVCenter)
|
self.label_optimalab35_latestversion.setAlignment(Qt.AlignRight|Qt.AlignTrailing|Qt.AlignVCenter)
|
||||||
|
|
||||||
self.gridLayout.addWidget(self.label_optimalab35_latestversion, 1, 2, 1, 1)
|
self.gridLayout.addWidget(self.label_optimalab35_latestversion, 1, 2, 1, 1)
|
||||||
|
|
||||||
self.label_9 = QLabel(self.widget_2)
|
self.label_9 = QLabel(self.pkg_info_groupBox)
|
||||||
self.label_9.setObjectName(u"label_9")
|
self.label_9.setObjectName(u"label_9")
|
||||||
|
|
||||||
self.gridLayout.addWidget(self.label_9, 0, 0, 1, 1)
|
self.gridLayout.addWidget(self.label_9, 0, 0, 1, 1)
|
||||||
|
|
||||||
self.label_optimalab35_localversion = QLabel(self.widget_2)
|
self.label_optimalab35_localversion = QLabel(self.pkg_info_groupBox)
|
||||||
self.label_optimalab35_localversion.setObjectName(u"label_optimalab35_localversion")
|
self.label_optimalab35_localversion.setObjectName(u"label_optimalab35_localversion")
|
||||||
self.label_optimalab35_localversion.setAlignment(Qt.AlignRight|Qt.AlignTrailing|Qt.AlignVCenter)
|
self.label_optimalab35_localversion.setAlignment(Qt.AlignRight|Qt.AlignTrailing|Qt.AlignVCenter)
|
||||||
|
|
||||||
self.gridLayout.addWidget(self.label_optimalab35_localversion, 1, 1, 1, 1)
|
self.gridLayout.addWidget(self.label_optimalab35_localversion, 1, 1, 1, 1)
|
||||||
|
|
||||||
self.label_6 = QLabel(self.widget_2)
|
self.label_6 = QLabel(self.pkg_info_groupBox)
|
||||||
self.label_6.setObjectName(u"label_6")
|
self.label_6.setObjectName(u"label_6")
|
||||||
self.label_6.setAlignment(Qt.AlignRight|Qt.AlignTrailing|Qt.AlignVCenter)
|
self.label_6.setAlignment(Qt.AlignRight|Qt.AlignTrailing|Qt.AlignVCenter)
|
||||||
|
|
||||||
self.gridLayout.addWidget(self.label_6, 0, 1, 1, 1)
|
self.gridLayout.addWidget(self.label_6, 0, 1, 1, 1)
|
||||||
|
|
||||||
self.label_2 = QLabel(self.widget_2)
|
self.label_2 = QLabel(self.pkg_info_groupBox)
|
||||||
self.label_2.setObjectName(u"label_2")
|
self.label_2.setObjectName(u"label_2")
|
||||||
|
|
||||||
self.gridLayout.addWidget(self.label_2, 2, 0, 1, 1)
|
self.gridLayout.addWidget(self.label_2, 2, 0, 1, 1)
|
||||||
|
|
||||||
self.label_optima35_localversion = QLabel(self.widget_2)
|
self.label_optima35_localversion = QLabel(self.pkg_info_groupBox)
|
||||||
self.label_optima35_localversion.setObjectName(u"label_optima35_localversion")
|
self.label_optima35_localversion.setObjectName(u"label_optima35_localversion")
|
||||||
self.label_optima35_localversion.setAlignment(Qt.AlignRight|Qt.AlignTrailing|Qt.AlignVCenter)
|
self.label_optima35_localversion.setAlignment(Qt.AlignRight|Qt.AlignTrailing|Qt.AlignVCenter)
|
||||||
|
|
||||||
self.gridLayout.addWidget(self.label_optima35_localversion, 2, 1, 1, 1)
|
self.gridLayout.addWidget(self.label_optima35_localversion, 2, 1, 1, 1)
|
||||||
|
|
||||||
|
|
||||||
self.verticalLayout_3.addWidget(self.widget_2)
|
self.gridLayout_2.addWidget(self.pkg_info_groupBox, 0, 0, 1, 2)
|
||||||
|
|
||||||
self.dev_widget = QWidget(self.tabWidgetPage2)
|
self.dev_widget = QWidget(self.tabWidgetPage2)
|
||||||
self.dev_widget.setObjectName(u"dev_widget")
|
self.dev_widget.setObjectName(u"dev_widget")
|
||||||
|
@ -207,16 +184,22 @@ class Ui_Settings_Window(object):
|
||||||
self.horizontalLayout_2.addWidget(self.update_local_Button)
|
self.horizontalLayout_2.addWidget(self.update_local_Button)
|
||||||
|
|
||||||
|
|
||||||
self.verticalLayout_3.addWidget(self.dev_widget)
|
self.gridLayout_2.addWidget(self.dev_widget, 1, 0, 1, 2)
|
||||||
|
|
||||||
self.verticalSpacer_2 = QSpacerItem(20, 9, QSizePolicy.Policy.Minimum, QSizePolicy.Policy.Expanding)
|
self.verticalSpacer = QSpacerItem(20, 40, QSizePolicy.Policy.Minimum, QSizePolicy.Policy.Expanding)
|
||||||
|
|
||||||
self.verticalLayout_3.addItem(self.verticalSpacer_2)
|
self.gridLayout_2.addItem(self.verticalSpacer, 2, 0, 1, 1)
|
||||||
|
|
||||||
self.label_5 = QLabel(self.tabWidgetPage2)
|
self.label_5 = QLabel(self.tabWidgetPage2)
|
||||||
self.label_5.setObjectName(u"label_5")
|
self.label_5.setObjectName(u"label_5")
|
||||||
|
|
||||||
self.verticalLayout_3.addWidget(self.label_5)
|
self.gridLayout_2.addWidget(self.label_5, 3, 0, 1, 1)
|
||||||
|
|
||||||
|
self.label_last_check = QLabel(self.tabWidgetPage2)
|
||||||
|
self.label_last_check.setObjectName(u"label_last_check")
|
||||||
|
self.label_last_check.setAlignment(Qt.AlignRight|Qt.AlignTrailing|Qt.AlignVCenter)
|
||||||
|
|
||||||
|
self.gridLayout_2.addWidget(self.label_last_check, 3, 1, 2, 1)
|
||||||
|
|
||||||
self.widget = QWidget(self.tabWidgetPage2)
|
self.widget = QWidget(self.tabWidgetPage2)
|
||||||
self.widget.setObjectName(u"widget")
|
self.widget.setObjectName(u"widget")
|
||||||
|
@ -239,7 +222,7 @@ class Ui_Settings_Window(object):
|
||||||
self.horizontalLayout.addWidget(self.restart_checkBox)
|
self.horizontalLayout.addWidget(self.restart_checkBox)
|
||||||
|
|
||||||
|
|
||||||
self.verticalLayout_3.addWidget(self.widget)
|
self.gridLayout_2.addWidget(self.widget, 5, 0, 1, 2)
|
||||||
|
|
||||||
self.tabWidget.addTab(self.tabWidgetPage2, "")
|
self.tabWidget.addTab(self.tabWidgetPage2, "")
|
||||||
|
|
||||||
|
@ -258,25 +241,27 @@ class Ui_Settings_Window(object):
|
||||||
|
|
||||||
def retranslateUi(self, Settings_Window):
|
def retranslateUi(self, Settings_Window):
|
||||||
Settings_Window.setWindowTitle(QCoreApplication.translate("Settings_Window", u"Settings", None))
|
Settings_Window.setWindowTitle(QCoreApplication.translate("Settings_Window", u"Settings", None))
|
||||||
|
self.groupBox_4.setTitle(QCoreApplication.translate("Settings_Window", u"EXIF", None))
|
||||||
|
self.label_4.setText(QCoreApplication.translate("Settings_Window", u"Reset selectable EXIF data to default", None))
|
||||||
|
self.reset_exif_Button.setText(QCoreApplication.translate("Settings_Window", u"Reset", None))
|
||||||
|
self.groupBox_3.setTitle(QCoreApplication.translate("Settings_Window", u"Theme", None))
|
||||||
self.label_3.setText(QCoreApplication.translate("Settings_Window", u"Change theme from OS to PyQT Dark or Light", None))
|
self.label_3.setText(QCoreApplication.translate("Settings_Window", u"Change theme from OS to PyQT Dark or Light", None))
|
||||||
self.theme_selection_comboBox.setItemText(0, QCoreApplication.translate("Settings_Window", u"Dark", None))
|
|
||||||
self.theme_selection_comboBox.setItemText(1, QCoreApplication.translate("Settings_Window", u"Light", None))
|
|
||||||
|
|
||||||
#if QT_CONFIG(tooltip)
|
|
||||||
self.theme_selection_comboBox.setToolTip(QCoreApplication.translate("Settings_Window", u"App needs to restart before changes take effect.", None))
|
|
||||||
#endif // QT_CONFIG(tooltip)
|
|
||||||
#if QT_CONFIG(tooltip)
|
#if QT_CONFIG(tooltip)
|
||||||
self.enable_theme_checkBox.setToolTip(QCoreApplication.translate("Settings_Window", u"App needs to restart before changes take effect.", None))
|
self.enable_theme_checkBox.setToolTip(QCoreApplication.translate("Settings_Window", u"App needs to restart before changes take effect.", None))
|
||||||
#endif // QT_CONFIG(tooltip)
|
#endif // QT_CONFIG(tooltip)
|
||||||
self.enable_theme_checkBox.setText(QCoreApplication.translate("Settings_Window", u"Custom theme", None))
|
self.enable_theme_checkBox.setText(QCoreApplication.translate("Settings_Window", u"Custom theme", None))
|
||||||
|
self.theme_selection_comboBox.setItemText(0, QCoreApplication.translate("Settings_Window", u"Auto", None))
|
||||||
|
self.theme_selection_comboBox.setItemText(1, QCoreApplication.translate("Settings_Window", u"Dark", None))
|
||||||
|
self.theme_selection_comboBox.setItemText(2, QCoreApplication.translate("Settings_Window", u"Light", None))
|
||||||
|
|
||||||
|
#if QT_CONFIG(tooltip)
|
||||||
|
self.theme_selection_comboBox.setToolTip(QCoreApplication.translate("Settings_Window", u"App needs to restart before changes take effect.", None))
|
||||||
|
#endif // QT_CONFIG(tooltip)
|
||||||
|
self.save_and_close_Button.setText(QCoreApplication.translate("Settings_Window", u"Apply theme", None))
|
||||||
self.install_pkg_Button.setText(QCoreApplication.translate("Settings_Window", u"Install package for custom theme", None))
|
self.install_pkg_Button.setText(QCoreApplication.translate("Settings_Window", u"Install package for custom theme", None))
|
||||||
self.label_4.setText(QCoreApplication.translate("Settings_Window", u"Reset selectable EXIF data to default", None))
|
self.save_and_restart_Button.setText(QCoreApplication.translate("Settings_Window", u"Apply and restart", None))
|
||||||
self.reset_exif_Button.setText(QCoreApplication.translate("Settings_Window", u"Reset", None))
|
|
||||||
self.save_and_close_Button.setText(QCoreApplication.translate("Settings_Window", u"Save and close", None))
|
|
||||||
self.save_and_restart_Button.setText(QCoreApplication.translate("Settings_Window", u"Save and restart", None))
|
|
||||||
self.tabWidget.setTabText(self.tabWidget.indexOf(self.tabWidgetPage1), QCoreApplication.translate("Settings_Window", u"Preferences", None))
|
self.tabWidget.setTabText(self.tabWidget.indexOf(self.tabWidgetPage1), QCoreApplication.translate("Settings_Window", u"Preferences", None))
|
||||||
self.label_last_check.setText(QCoreApplication.translate("Settings_Window", u"Last update check:", None))
|
self.pkg_info_groupBox.setTitle(QCoreApplication.translate("Settings_Window", u"Package information", None))
|
||||||
self.label_last_check_2.setText(QCoreApplication.translate("Settings_Window", u"TextLabel", None))
|
|
||||||
self.label_optima35_latestversion.setText(QCoreApplication.translate("Settings_Window", u"unknown", None))
|
self.label_optima35_latestversion.setText(QCoreApplication.translate("Settings_Window", u"unknown", None))
|
||||||
self.label_latest_version.setText(QCoreApplication.translate("Settings_Window", u"Latest version", None))
|
self.label_latest_version.setText(QCoreApplication.translate("Settings_Window", u"Latest version", None))
|
||||||
self.label.setText(QCoreApplication.translate("Settings_Window", u"OptimaLab35", None))
|
self.label.setText(QCoreApplication.translate("Settings_Window", u"OptimaLab35", None))
|
||||||
|
@ -295,6 +280,7 @@ class Ui_Settings_Window(object):
|
||||||
#endif // QT_CONFIG(tooltip)
|
#endif // QT_CONFIG(tooltip)
|
||||||
self.update_local_Button.setText(QCoreApplication.translate("Settings_Window", u"Update local", None))
|
self.update_local_Button.setText(QCoreApplication.translate("Settings_Window", u"Update local", None))
|
||||||
self.label_5.setText(QCoreApplication.translate("Settings_Window", u"TextLabel", None))
|
self.label_5.setText(QCoreApplication.translate("Settings_Window", u"TextLabel", None))
|
||||||
|
self.label_last_check.setText(QCoreApplication.translate("Settings_Window", u"TextLabel", None))
|
||||||
self.check_for_update_Button.setText(QCoreApplication.translate("Settings_Window", u"Check for update", None))
|
self.check_for_update_Button.setText(QCoreApplication.translate("Settings_Window", u"Check for update", None))
|
||||||
self.update_and_restart_Button.setText(QCoreApplication.translate("Settings_Window", u"Update", None))
|
self.update_and_restart_Button.setText(QCoreApplication.translate("Settings_Window", u"Update", None))
|
||||||
#if QT_CONFIG(tooltip)
|
#if QT_CONFIG(tooltip)
|
||||||
|
|
|
@ -10,7 +10,7 @@
|
||||||
<x>0</x>
|
<x>0</x>
|
||||||
<y>0</y>
|
<y>0</y>
|
||||||
<width>400</width>
|
<width>400</width>
|
||||||
<height>300</height>
|
<height>325</height>
|
||||||
</rect>
|
</rect>
|
||||||
</property>
|
</property>
|
||||||
<property name="minimumSize">
|
<property name="minimumSize">
|
||||||
|
@ -35,91 +35,16 @@
|
||||||
<property name="currentIndex">
|
<property name="currentIndex">
|
||||||
<number>0</number>
|
<number>0</number>
|
||||||
</property>
|
</property>
|
||||||
<widget class="QWidget" name="tabWidgetPage1" native="true">
|
<widget class="QWidget" name="tabWidgetPage1">
|
||||||
<attribute name="title">
|
<attribute name="title">
|
||||||
<string>Preferences</string>
|
<string>Preferences</string>
|
||||||
</attribute>
|
</attribute>
|
||||||
<layout class="QVBoxLayout" name="verticalLayout_2">
|
<layout class="QVBoxLayout" name="verticalLayout_2">
|
||||||
<item>
|
<item>
|
||||||
<widget class="QWidget" name="widget_3" native="true">
|
<widget class="QGroupBox" name="groupBox_4">
|
||||||
<layout class="QGridLayout" name="gridLayout_3">
|
<property name="title">
|
||||||
<item row="0" column="0" colspan="3">
|
<string>EXIF</string>
|
||||||
<widget class="QLabel" name="label_3">
|
</property>
|
||||||
<property name="text">
|
|
||||||
<string>Change theme from OS to PyQT Dark or Light</string>
|
|
||||||
</property>
|
|
||||||
</widget>
|
|
||||||
</item>
|
|
||||||
<item row="1" column="2">
|
|
||||||
<widget class="QComboBox" name="theme_selection_comboBox">
|
|
||||||
<property name="enabled">
|
|
||||||
<bool>false</bool>
|
|
||||||
</property>
|
|
||||||
<property name="minimumSize">
|
|
||||||
<size>
|
|
||||||
<width>100</width>
|
|
||||||
<height>0</height>
|
|
||||||
</size>
|
|
||||||
</property>
|
|
||||||
<property name="maximumSize">
|
|
||||||
<size>
|
|
||||||
<width>100</width>
|
|
||||||
<height>16777215</height>
|
|
||||||
</size>
|
|
||||||
</property>
|
|
||||||
<property name="toolTip">
|
|
||||||
<string>App needs to restart before changes take effect.</string>
|
|
||||||
</property>
|
|
||||||
<item>
|
|
||||||
<property name="text">
|
|
||||||
<string>Dark</string>
|
|
||||||
</property>
|
|
||||||
</item>
|
|
||||||
<item>
|
|
||||||
<property name="text">
|
|
||||||
<string>Light</string>
|
|
||||||
</property>
|
|
||||||
</item>
|
|
||||||
</widget>
|
|
||||||
</item>
|
|
||||||
<item row="1" column="0">
|
|
||||||
<widget class="QCheckBox" name="enable_theme_checkBox">
|
|
||||||
<property name="toolTip">
|
|
||||||
<string>App needs to restart before changes take effect.</string>
|
|
||||||
</property>
|
|
||||||
<property name="text">
|
|
||||||
<string>Custom theme</string>
|
|
||||||
</property>
|
|
||||||
<property name="checked">
|
|
||||||
<bool>false</bool>
|
|
||||||
</property>
|
|
||||||
</widget>
|
|
||||||
</item>
|
|
||||||
<item row="1" column="1">
|
|
||||||
<spacer name="horizontalSpacer_2">
|
|
||||||
<property name="orientation">
|
|
||||||
<enum>Qt::Horizontal</enum>
|
|
||||||
</property>
|
|
||||||
<property name="sizeHint" stdset="0">
|
|
||||||
<size>
|
|
||||||
<width>98</width>
|
|
||||||
<height>20</height>
|
|
||||||
</size>
|
|
||||||
</property>
|
|
||||||
</spacer>
|
|
||||||
</item>
|
|
||||||
<item row="2" column="0" colspan="3">
|
|
||||||
<widget class="QPushButton" name="install_pkg_Button">
|
|
||||||
<property name="text">
|
|
||||||
<string>Install package for custom theme</string>
|
|
||||||
</property>
|
|
||||||
</widget>
|
|
||||||
</item>
|
|
||||||
</layout>
|
|
||||||
</widget>
|
|
||||||
</item>
|
|
||||||
<item>
|
|
||||||
<widget class="QWidget" name="widget_4" native="true">
|
|
||||||
<layout class="QHBoxLayout" name="horizontalLayout_3">
|
<layout class="QHBoxLayout" name="horizontalLayout_3">
|
||||||
<item>
|
<item>
|
||||||
<widget class="QLabel" name="label_4">
|
<widget class="QLabel" name="label_4">
|
||||||
|
@ -154,32 +79,99 @@
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
<item>
|
<item>
|
||||||
<spacer name="verticalSpacer">
|
<widget class="QGroupBox" name="groupBox_3">
|
||||||
<property name="orientation">
|
<property name="title">
|
||||||
<enum>Qt::Vertical</enum>
|
<string>Theme</string>
|
||||||
</property>
|
</property>
|
||||||
<property name="sizeHint" stdset="0">
|
<layout class="QGridLayout" name="gridLayout_3">
|
||||||
<size>
|
<item row="0" column="0" colspan="3">
|
||||||
<width>20</width>
|
<widget class="QLabel" name="label_3">
|
||||||
<height>237</height>
|
|
||||||
</size>
|
|
||||||
</property>
|
|
||||||
</spacer>
|
|
||||||
</item>
|
|
||||||
<item>
|
|
||||||
<widget class="QWidget" name="widget_5" native="true">
|
|
||||||
<layout class="QHBoxLayout" name="horizontalLayout_4">
|
|
||||||
<item>
|
|
||||||
<widget class="QPushButton" name="save_and_close_Button">
|
|
||||||
<property name="text">
|
<property name="text">
|
||||||
<string>Save and close</string>
|
<string>Change theme from OS to PyQT Dark or Light</string>
|
||||||
</property>
|
</property>
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
<item>
|
<item row="1" column="0">
|
||||||
|
<widget class="QCheckBox" name="enable_theme_checkBox">
|
||||||
|
<property name="toolTip">
|
||||||
|
<string>App needs to restart before changes take effect.</string>
|
||||||
|
</property>
|
||||||
|
<property name="text">
|
||||||
|
<string>Custom theme</string>
|
||||||
|
</property>
|
||||||
|
<property name="checked">
|
||||||
|
<bool>false</bool>
|
||||||
|
</property>
|
||||||
|
</widget>
|
||||||
|
</item>
|
||||||
|
<item row="1" column="2">
|
||||||
|
<widget class="QComboBox" name="theme_selection_comboBox">
|
||||||
|
<property name="enabled">
|
||||||
|
<bool>false</bool>
|
||||||
|
</property>
|
||||||
|
<property name="minimumSize">
|
||||||
|
<size>
|
||||||
|
<width>100</width>
|
||||||
|
<height>0</height>
|
||||||
|
</size>
|
||||||
|
</property>
|
||||||
|
<property name="maximumSize">
|
||||||
|
<size>
|
||||||
|
<width>100</width>
|
||||||
|
<height>16777215</height>
|
||||||
|
</size>
|
||||||
|
</property>
|
||||||
|
<property name="toolTip">
|
||||||
|
<string>App needs to restart before changes take effect.</string>
|
||||||
|
</property>
|
||||||
|
<item>
|
||||||
|
<property name="text">
|
||||||
|
<string>Auto</string>
|
||||||
|
</property>
|
||||||
|
</item>
|
||||||
|
<item>
|
||||||
|
<property name="text">
|
||||||
|
<string>Dark</string>
|
||||||
|
</property>
|
||||||
|
</item>
|
||||||
|
<item>
|
||||||
|
<property name="text">
|
||||||
|
<string>Light</string>
|
||||||
|
</property>
|
||||||
|
</item>
|
||||||
|
</widget>
|
||||||
|
</item>
|
||||||
|
<item row="3" column="0">
|
||||||
|
<widget class="QPushButton" name="save_and_close_Button">
|
||||||
|
<property name="text">
|
||||||
|
<string>Apply theme</string>
|
||||||
|
</property>
|
||||||
|
</widget>
|
||||||
|
</item>
|
||||||
|
<item row="1" column="1">
|
||||||
|
<spacer name="horizontalSpacer_2">
|
||||||
|
<property name="orientation">
|
||||||
|
<enum>Qt::Horizontal</enum>
|
||||||
|
</property>
|
||||||
|
<property name="sizeHint" stdset="0">
|
||||||
|
<size>
|
||||||
|
<width>98</width>
|
||||||
|
<height>20</height>
|
||||||
|
</size>
|
||||||
|
</property>
|
||||||
|
</spacer>
|
||||||
|
</item>
|
||||||
|
<item row="2" column="0" colspan="3">
|
||||||
|
<widget class="QPushButton" name="install_pkg_Button">
|
||||||
|
<property name="text">
|
||||||
|
<string>Install package for custom theme</string>
|
||||||
|
</property>
|
||||||
|
</widget>
|
||||||
|
</item>
|
||||||
|
<item row="3" column="1" colspan="2">
|
||||||
<widget class="QPushButton" name="save_and_restart_Button">
|
<widget class="QPushButton" name="save_and_restart_Button">
|
||||||
<property name="text">
|
<property name="text">
|
||||||
<string>Save and restart</string>
|
<string>Apply and restart</string>
|
||||||
</property>
|
</property>
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
|
@ -188,49 +180,16 @@
|
||||||
</item>
|
</item>
|
||||||
</layout>
|
</layout>
|
||||||
</widget>
|
</widget>
|
||||||
<widget class="QWidget" name="tabWidgetPage2" native="true">
|
<widget class="QWidget" name="tabWidgetPage2">
|
||||||
<attribute name="title">
|
<attribute name="title">
|
||||||
<string>Updater</string>
|
<string>Updater</string>
|
||||||
</attribute>
|
</attribute>
|
||||||
<layout class="QVBoxLayout" name="verticalLayout_3">
|
<layout class="QGridLayout" name="gridLayout_2">
|
||||||
<item>
|
<item row="0" column="0" colspan="2">
|
||||||
<widget class="QWidget" name="widget_6" native="true">
|
<widget class="QGroupBox" name="pkg_info_groupBox">
|
||||||
<widget class="QLabel" name="label_last_check">
|
<property name="title">
|
||||||
<property name="geometry">
|
<string>Package information</string>
|
||||||
<rect>
|
</property>
|
||||||
<x>0</x>
|
|
||||||
<y>10</y>
|
|
||||||
<width>131</width>
|
|
||||||
<height>22</height>
|
|
||||||
</rect>
|
|
||||||
</property>
|
|
||||||
<property name="text">
|
|
||||||
<string>Last update check:</string>
|
|
||||||
</property>
|
|
||||||
</widget>
|
|
||||||
<widget class="QLabel" name="label_last_check_2">
|
|
||||||
<property name="enabled">
|
|
||||||
<bool>true</bool>
|
|
||||||
</property>
|
|
||||||
<property name="geometry">
|
|
||||||
<rect>
|
|
||||||
<x>190</x>
|
|
||||||
<y>10</y>
|
|
||||||
<width>67</width>
|
|
||||||
<height>22</height>
|
|
||||||
</rect>
|
|
||||||
</property>
|
|
||||||
<property name="text">
|
|
||||||
<string>TextLabel</string>
|
|
||||||
</property>
|
|
||||||
<property name="alignment">
|
|
||||||
<set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set>
|
|
||||||
</property>
|
|
||||||
</widget>
|
|
||||||
</widget>
|
|
||||||
</item>
|
|
||||||
<item>
|
|
||||||
<widget class="QWidget" name="widget_2" native="true">
|
|
||||||
<layout class="QGridLayout" name="gridLayout">
|
<layout class="QGridLayout" name="gridLayout">
|
||||||
<item row="2" column="2">
|
<item row="2" column="2">
|
||||||
<widget class="QLabel" name="label_optima35_latestversion">
|
<widget class="QLabel" name="label_optima35_latestversion">
|
||||||
|
@ -316,7 +275,7 @@
|
||||||
</layout>
|
</layout>
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
<item>
|
<item row="1" column="0" colspan="2">
|
||||||
<widget class="QWidget" name="dev_widget" native="true">
|
<widget class="QWidget" name="dev_widget" native="true">
|
||||||
<layout class="QHBoxLayout" name="horizontalLayout_2">
|
<layout class="QHBoxLayout" name="horizontalLayout_2">
|
||||||
<item>
|
<item>
|
||||||
|
@ -342,27 +301,37 @@
|
||||||
</layout>
|
</layout>
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
<item>
|
<item row="2" column="0">
|
||||||
<spacer name="verticalSpacer_2">
|
<spacer name="verticalSpacer">
|
||||||
<property name="orientation">
|
<property name="orientation">
|
||||||
<enum>Qt::Vertical</enum>
|
<enum>Qt::Vertical</enum>
|
||||||
</property>
|
</property>
|
||||||
<property name="sizeHint" stdset="0">
|
<property name="sizeHint" stdset="0">
|
||||||
<size>
|
<size>
|
||||||
<width>20</width>
|
<width>20</width>
|
||||||
<height>9</height>
|
<height>40</height>
|
||||||
</size>
|
</size>
|
||||||
</property>
|
</property>
|
||||||
</spacer>
|
</spacer>
|
||||||
</item>
|
</item>
|
||||||
<item>
|
<item row="3" column="0">
|
||||||
<widget class="QLabel" name="label_5">
|
<widget class="QLabel" name="label_5">
|
||||||
<property name="text">
|
<property name="text">
|
||||||
<string>TextLabel</string>
|
<string>TextLabel</string>
|
||||||
</property>
|
</property>
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
<item>
|
<item row="3" column="1" rowspan="2">
|
||||||
|
<widget class="QLabel" name="label_last_check">
|
||||||
|
<property name="text">
|
||||||
|
<string>TextLabel</string>
|
||||||
|
</property>
|
||||||
|
<property name="alignment">
|
||||||
|
<set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set>
|
||||||
|
</property>
|
||||||
|
</widget>
|
||||||
|
</item>
|
||||||
|
<item row="5" column="0" colspan="2">
|
||||||
<widget class="QWidget" name="widget" native="true">
|
<widget class="QWidget" name="widget" native="true">
|
||||||
<layout class="QHBoxLayout" name="horizontalLayout">
|
<layout class="QHBoxLayout" name="horizontalLayout">
|
||||||
<item>
|
<item>
|
||||||
|
@ -411,12 +380,12 @@
|
||||||
<slot>setEnabled(bool)</slot>
|
<slot>setEnabled(bool)</slot>
|
||||||
<hints>
|
<hints>
|
||||||
<hint type="sourcelabel">
|
<hint type="sourcelabel">
|
||||||
<x>112</x>
|
<x>96</x>
|
||||||
<y>103</y>
|
<y>225</y>
|
||||||
</hint>
|
</hint>
|
||||||
<hint type="destinationlabel">
|
<hint type="destinationlabel">
|
||||||
<x>286</x>
|
<x>317</x>
|
||||||
<y>103</y>
|
<y>225</y>
|
||||||
</hint>
|
</hint>
|
||||||
</hints>
|
</hints>
|
||||||
</connection>
|
</connection>
|
||||||
|
|
|
@ -99,7 +99,7 @@ class Utilities:
|
||||||
"theme": {
|
"theme": {
|
||||||
"theme_pkg": False,
|
"theme_pkg": False,
|
||||||
"use_custom_theme": False,
|
"use_custom_theme": False,
|
||||||
"mode": "Dark"
|
"mode": "Auto"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
self.write_yaml(self.settings_path, settings)
|
self.write_yaml(self.settings_path, settings)
|
||||||
|
|
|
@ -11,7 +11,7 @@ readme = "../pip_README.md"
|
||||||
requires-python = ">=3.8"
|
requires-python = ">=3.8"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"optima35>=1.0.0, <2.0.0",
|
"optima35>=1.0.0, <2.0.0",
|
||||||
"PyPiUpdater>=0.7.0, <1.0.0",
|
"PyPiUpdater>=0.7.2, <1.0.0",
|
||||||
"pyside6",
|
"pyside6",
|
||||||
"PyYAML",
|
"PyYAML",
|
||||||
]
|
]
|
||||||
|
@ -26,6 +26,8 @@ classifiers = [
|
||||||
|
|
||||||
[project.urls]
|
[project.urls]
|
||||||
Source = "https://gitlab.com/CodeByMrFinchum/OptimaLab35"
|
Source = "https://gitlab.com/CodeByMrFinchum/OptimaLab35"
|
||||||
|
Documentation = "https://gitlab.com/CodeByMrFinchum/OptimaLab35/-/blob/main/README.md"
|
||||||
|
Changelog = "https://gitlab.com/CodeByMrFinchum/OptimaLab35/-/blob/main/CHANGELOG.md"
|
||||||
|
|
||||||
[project.scripts]
|
[project.scripts]
|
||||||
OptimaLab35 = "OptimaLab35.__main__:main"
|
OptimaLab35 = "OptimaLab35.__main__:main"
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue