fix: Fixed ui clipping
This commit is contained in:
parent
f3ba0909f2
commit
7eb8f162bb
4 changed files with 187 additions and 213 deletions
|
@ -1,8 +1,11 @@
|
|||
# Changelog
|
||||
|
||||
## 0.12.x
|
||||
### 0.12.2: Minor UI Improvements for Theme Compatibility
|
||||
- Fixed text clipping issues when using the new theme options.
|
||||
|
||||
### 0.12.1: Removed Unnecessary Debug Prints
|
||||
- Removed leftover debug print statements.
|
||||
- Removed leftover debug statements.
|
||||
|
||||
### 0.12.0: New Settings Menu & Patches
|
||||
- **New Settings Window:**
|
||||
|
|
6
TODO.md
Normal file
6
TODO.md
Normal file
|
@ -0,0 +1,6 @@
|
|||
# TODO
|
||||
|
||||
## Improvments
|
||||
### Preview window
|
||||
Improve performence by changing when the images is updated.
|
||||
Right now, when moving the slider, the image gets updated for every single step increase resulting in lagging
|
|
@ -17,14 +17,14 @@ from PySide6.QtGui import (QBrush, QColor, QConicalGradient, QCursor,
|
|||
QPalette, QPixmap, QRadialGradient, QTransform)
|
||||
from PySide6.QtWidgets import (QApplication, QCheckBox, QFrame, QHBoxLayout,
|
||||
QLabel, QLineEdit, QMainWindow, QMenuBar,
|
||||
QPushButton, QSizePolicy, QSlider, QSpinBox,
|
||||
QVBoxLayout, QWidget)
|
||||
QPushButton, QSizePolicy, QSlider, QSpacerItem,
|
||||
QSpinBox, QVBoxLayout, QWidget)
|
||||
|
||||
class Ui_Preview_Window(object):
|
||||
def setupUi(self, Preview_Window):
|
||||
if not Preview_Window.objectName():
|
||||
Preview_Window.setObjectName(u"Preview_Window")
|
||||
Preview_Window.resize(803, 775)
|
||||
Preview_Window.resize(875, 775)
|
||||
Preview_Window.setMinimumSize(QSize(800, 700))
|
||||
self.centralwidget = QWidget(Preview_Window)
|
||||
self.centralwidget.setObjectName(u"centralwidget")
|
||||
|
@ -40,39 +40,33 @@ class Ui_Preview_Window(object):
|
|||
|
||||
self.widget = QWidget(self.centralwidget)
|
||||
self.widget.setObjectName(u"widget")
|
||||
self.widget.setMinimumSize(QSize(150, 628))
|
||||
self.widget.setMinimumSize(QSize(160, 628))
|
||||
self.widget.setMaximumSize(QSize(150, 16777215))
|
||||
self.verticalLayout_4 = QVBoxLayout(self.widget)
|
||||
self.verticalLayout_4.setObjectName(u"verticalLayout_4")
|
||||
self.verticalLayout = QVBoxLayout(self.widget)
|
||||
self.verticalLayout.setObjectName(u"verticalLayout")
|
||||
self.image_path_lineEdit = QLineEdit(self.widget)
|
||||
self.image_path_lineEdit.setObjectName(u"image_path_lineEdit")
|
||||
|
||||
self.verticalLayout_4.addWidget(self.image_path_lineEdit)
|
||||
self.verticalLayout.addWidget(self.image_path_lineEdit)
|
||||
|
||||
self.load_Button = QPushButton(self.widget)
|
||||
self.load_Button.setObjectName(u"load_Button")
|
||||
|
||||
self.verticalLayout_4.addWidget(self.load_Button)
|
||||
self.verticalLayout.addWidget(self.load_Button)
|
||||
|
||||
self.widget_2 = QWidget(self.widget)
|
||||
self.widget_2.setObjectName(u"widget_2")
|
||||
self.widget_2.setMinimumSize(QSize(0, 250))
|
||||
self.widget_2.setMaximumSize(QSize(16777215, 250))
|
||||
self.verticalLayout = QVBoxLayout(self.widget_2)
|
||||
self.verticalLayout.setObjectName(u"verticalLayout")
|
||||
self.label = QLabel(self.widget_2)
|
||||
self.label = QLabel(self.widget)
|
||||
self.label.setObjectName(u"label")
|
||||
|
||||
self.verticalLayout.addWidget(self.label)
|
||||
|
||||
self.brightness_spinBox = QSpinBox(self.widget_2)
|
||||
self.brightness_spinBox = QSpinBox(self.widget)
|
||||
self.brightness_spinBox.setObjectName(u"brightness_spinBox")
|
||||
self.brightness_spinBox.setMinimum(-100)
|
||||
self.brightness_spinBox.setMaximum(100)
|
||||
|
||||
self.verticalLayout.addWidget(self.brightness_spinBox)
|
||||
|
||||
self.brightness_Slider = QSlider(self.widget_2)
|
||||
self.brightness_Slider = QSlider(self.widget)
|
||||
self.brightness_Slider.setObjectName(u"brightness_Slider")
|
||||
self.brightness_Slider.setMinimum(-100)
|
||||
self.brightness_Slider.setMaximum(100)
|
||||
|
@ -80,24 +74,24 @@ class Ui_Preview_Window(object):
|
|||
|
||||
self.verticalLayout.addWidget(self.brightness_Slider)
|
||||
|
||||
self.reset_brightness_Button = QPushButton(self.widget_2)
|
||||
self.reset_brightness_Button = QPushButton(self.widget)
|
||||
self.reset_brightness_Button.setObjectName(u"reset_brightness_Button")
|
||||
|
||||
self.verticalLayout.addWidget(self.reset_brightness_Button)
|
||||
|
||||
self.label_2 = QLabel(self.widget_2)
|
||||
self.label_2 = QLabel(self.widget)
|
||||
self.label_2.setObjectName(u"label_2")
|
||||
|
||||
self.verticalLayout.addWidget(self.label_2)
|
||||
|
||||
self.contrast_spinBox = QSpinBox(self.widget_2)
|
||||
self.contrast_spinBox = QSpinBox(self.widget)
|
||||
self.contrast_spinBox.setObjectName(u"contrast_spinBox")
|
||||
self.contrast_spinBox.setMinimum(-100)
|
||||
self.contrast_spinBox.setMaximum(100)
|
||||
|
||||
self.verticalLayout.addWidget(self.contrast_spinBox)
|
||||
|
||||
self.contrast_Slider = QSlider(self.widget_2)
|
||||
self.contrast_Slider = QSlider(self.widget)
|
||||
self.contrast_Slider.setObjectName(u"contrast_Slider")
|
||||
self.contrast_Slider.setMinimum(-100)
|
||||
self.contrast_Slider.setMaximum(100)
|
||||
|
@ -105,56 +99,43 @@ class Ui_Preview_Window(object):
|
|||
|
||||
self.verticalLayout.addWidget(self.contrast_Slider)
|
||||
|
||||
self.reset_contrast_Button = QPushButton(self.widget_2)
|
||||
self.reset_contrast_Button = QPushButton(self.widget)
|
||||
self.reset_contrast_Button.setObjectName(u"reset_contrast_Button")
|
||||
|
||||
self.verticalLayout.addWidget(self.reset_contrast_Button)
|
||||
|
||||
self.grayscale_checkBox = QCheckBox(self.widget_2)
|
||||
self.grayscale_checkBox = QCheckBox(self.widget)
|
||||
self.grayscale_checkBox.setObjectName(u"grayscale_checkBox")
|
||||
|
||||
self.verticalLayout.addWidget(self.grayscale_checkBox)
|
||||
|
||||
self.verticalSpacer = QSpacerItem(20, 219, QSizePolicy.Policy.Minimum, QSizePolicy.Policy.Expanding)
|
||||
|
||||
self.verticalLayout_4.addWidget(self.widget_2)
|
||||
self.verticalLayout.addItem(self.verticalSpacer)
|
||||
|
||||
self.widget_5 = QWidget(self.widget)
|
||||
self.widget_5.setObjectName(u"widget_5")
|
||||
self.verticalLayout_2 = QVBoxLayout(self.widget_5)
|
||||
self.verticalLayout_2.setObjectName(u"verticalLayout_2")
|
||||
|
||||
self.verticalLayout_4.addWidget(self.widget_5)
|
||||
|
||||
self.widget_4 = QWidget(self.widget)
|
||||
self.widget_4.setObjectName(u"widget_4")
|
||||
self.verticalLayout_3 = QVBoxLayout(self.widget_4)
|
||||
self.verticalLayout_3.setObjectName(u"verticalLayout_3")
|
||||
self.live_update = QCheckBox(self.widget_4)
|
||||
self.live_update = QCheckBox(self.widget)
|
||||
self.live_update.setObjectName(u"live_update")
|
||||
self.live_update.setChecked(True)
|
||||
|
||||
self.verticalLayout_3.addWidget(self.live_update)
|
||||
self.verticalLayout.addWidget(self.live_update)
|
||||
|
||||
self.update_Button = QPushButton(self.widget_4)
|
||||
self.update_Button = QPushButton(self.widget)
|
||||
self.update_Button.setObjectName(u"update_Button")
|
||||
self.update_Button.setAutoFillBackground(False)
|
||||
|
||||
self.verticalLayout_3.addWidget(self.update_Button)
|
||||
self.verticalLayout.addWidget(self.update_Button)
|
||||
|
||||
self.checkBox = QCheckBox(self.widget_4)
|
||||
self.checkBox = QCheckBox(self.widget)
|
||||
self.checkBox.setObjectName(u"checkBox")
|
||||
self.checkBox.setLayoutDirection(Qt.LeftToRight)
|
||||
self.checkBox.setChecked(True)
|
||||
|
||||
self.verticalLayout_3.addWidget(self.checkBox)
|
||||
self.verticalLayout.addWidget(self.checkBox)
|
||||
|
||||
self.close_Button = QPushButton(self.widget_4)
|
||||
self.close_Button = QPushButton(self.widget)
|
||||
self.close_Button.setObjectName(u"close_Button")
|
||||
|
||||
self.verticalLayout_3.addWidget(self.close_Button)
|
||||
|
||||
|
||||
self.verticalLayout_4.addWidget(self.widget_4)
|
||||
self.verticalLayout.addWidget(self.close_Button)
|
||||
|
||||
|
||||
self.horizontalLayout.addWidget(self.widget)
|
||||
|
@ -162,7 +143,7 @@ class Ui_Preview_Window(object):
|
|||
Preview_Window.setCentralWidget(self.centralwidget)
|
||||
self.menubar = QMenuBar(Preview_Window)
|
||||
self.menubar.setObjectName(u"menubar")
|
||||
self.menubar.setGeometry(QRect(0, 0, 803, 27))
|
||||
self.menubar.setGeometry(QRect(0, 0, 875, 27))
|
||||
Preview_Window.setMenuBar(self.menubar)
|
||||
|
||||
self.retranslateUi(Preview_Window)
|
||||
|
|
|
@ -6,7 +6,7 @@
|
|||
<rect>
|
||||
<x>0</x>
|
||||
<y>0</y>
|
||||
<width>803</width>
|
||||
<width>875</width>
|
||||
<height>775</height>
|
||||
</rect>
|
||||
</property>
|
||||
|
@ -44,7 +44,7 @@
|
|||
<widget class="QWidget" name="widget" native="true">
|
||||
<property name="minimumSize">
|
||||
<size>
|
||||
<width>150</width>
|
||||
<width>160</width>
|
||||
<height>628</height>
|
||||
</size>
|
||||
</property>
|
||||
|
@ -54,7 +54,7 @@
|
|||
<height>16777215</height>
|
||||
</size>
|
||||
</property>
|
||||
<layout class="QVBoxLayout" name="verticalLayout_4">
|
||||
<layout class="QVBoxLayout" name="verticalLayout">
|
||||
<item>
|
||||
<widget class="QLineEdit" name="image_path_lineEdit">
|
||||
<property name="toolTip">
|
||||
|
@ -73,174 +73,158 @@
|
|||
</widget>
|
||||
</item>
|
||||
<item>
|
||||
<widget class="QWidget" name="widget_2" native="true">
|
||||
<property name="minimumSize">
|
||||
<size>
|
||||
<width>0</width>
|
||||
<height>250</height>
|
||||
</size>
|
||||
<widget class="QLabel" name="label">
|
||||
<property name="text">
|
||||
<string>Brightness</string>
|
||||
</property>
|
||||
<property name="maximumSize">
|
||||
<size>
|
||||
<width>16777215</width>
|
||||
<height>250</height>
|
||||
</size>
|
||||
</property>
|
||||
<layout class="QVBoxLayout" name="verticalLayout">
|
||||
<item>
|
||||
<widget class="QLabel" name="label">
|
||||
<property name="text">
|
||||
<string>Brightness</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<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>
|
||||
<item>
|
||||
<widget class="QLabel" name="label_2">
|
||||
<property name="text">
|
||||
<string>Contrast</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<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>
|
||||
<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>
|
||||
</widget>
|
||||
</item>
|
||||
</layout>
|
||||
</widget>
|
||||
</item>
|
||||
<item>
|
||||
<widget class="QWidget" name="widget_5" native="true">
|
||||
<layout class="QVBoxLayout" name="verticalLayout_2"/>
|
||||
<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="QWidget" name="widget_4" native="true">
|
||||
<layout class="QVBoxLayout" name="verticalLayout_3">
|
||||
<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 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>
|
||||
</widget>
|
||||
</item>
|
||||
</layout>
|
||||
<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>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<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>
|
||||
<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>
|
||||
</widget>
|
||||
</item>
|
||||
<item>
|
||||
<spacer name="verticalSpacer">
|
||||
<property name="orientation">
|
||||
<enum>Qt::Vertical</enum>
|
||||
</property>
|
||||
<property name="sizeHint" stdset="0">
|
||||
<size>
|
||||
<width>20</width>
|
||||
<height>219</height>
|
||||
</size>
|
||||
</property>
|
||||
</spacer>
|
||||
</item>
|
||||
<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 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>
|
||||
</widget>
|
||||
</item>
|
||||
</layout>
|
||||
|
@ -253,7 +237,7 @@
|
|||
<rect>
|
||||
<x>0</x>
|
||||
<y>0</y>
|
||||
<width>803</width>
|
||||
<width>875</width>
|
||||
<height>27</height>
|
||||
</rect>
|
||||
</property>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue