Skip to content

Commit

Permalink
Adjusted fontsize to fit better in small res
Browse files Browse the repository at this point in the history
  • Loading branch information
AndreWohnsland committed Aug 3, 2020
1 parent 0907e4c commit 8d993ba
Show file tree
Hide file tree
Showing 6 changed files with 13 additions and 13 deletions.
2 changes: 1 addition & 1 deletion src/ui_controler.py
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ def create_delete_button(self, trigger_function):
delete_button.setMinimumSize(QtCore.QSize(0, 50))
delete_button.setMaximumSize(QtCore.QSize(10000, 100))
font = QtGui.QFont()
font.setPointSize(20)
font.setPointSize(18)
delete_button.setFont(font)
delete_button.setObjectName("delete_button")
delete_button.setText("Delete")
Expand Down
4 changes: 2 additions & 2 deletions src/ui_mainwindow.py
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ def add_ui_elements(self):
def generate_datetime_edit(self):
self.past_datetime_edit = QtWidgets.QDateTimeEdit(self)
font = QtGui.QFont()
font.setPointSize(14)
font.setPointSize(12)
self.past_datetime_edit.setFont(font)
self.past_datetime_edit.setCurrentSection(QtWidgets.QDateTimeEdit.DaySection)
self.past_datetime_edit.setCalendarPopup(True)
Expand All @@ -71,7 +71,7 @@ def generate_back_button(self):
self.back_button.setMinimumSize(QtCore.QSize(0, 50))
self.back_button.setMaximumSize(QtCore.QSize(200, 100))
font = QtGui.QFont()
font.setPointSize(20)
font.setPointSize(18)
self.back_button.setFont(font)
self.back_button.setObjectName("back_button")
self.back_button.setText("Back")
Expand Down
2 changes: 1 addition & 1 deletion ui/datawidget.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ def setupUi(self, DataWidget):
self.horizontalLayout.addWidget(self.switch_button)
self.date_edit = QtWidgets.QDateEdit(DataWidget)
font = QtGui.QFont()
font.setPointSize(20)
font.setPointSize(18)
self.date_edit.setFont(font)
self.date_edit.setCurrentSection(QtWidgets.QDateTimeEdit.DaySection)
self.date_edit.setCalendarPopup(True)
Expand Down
2 changes: 1 addition & 1 deletion ui/datawidget.ui
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@
<widget class="QDateEdit" name="date_edit">
<property name="font">
<font>
<pointsize>20</pointsize>
<pointsize>18</pointsize>
</font>
</property>
<property name="currentSection">
Expand Down
8 changes: 4 additions & 4 deletions ui/mainwindow.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,15 +25,15 @@ def setupUi(self, MainWindow):
self.start_button.setMinimumSize(QtCore.QSize(0, 50))
self.start_button.setMaximumSize(QtCore.QSize(200, 100))
font = QtGui.QFont()
font.setPointSize(20)
font.setPointSize(18)
self.start_button.setFont(font)
self.start_button.setObjectName("start_button")
self.verticalLayout.addWidget(self.start_button)
self.stop_button = QtWidgets.QPushButton(self.centralwidget)
self.stop_button.setMinimumSize(QtCore.QSize(0, 50))
self.stop_button.setMaximumSize(QtCore.QSize(200, 100))
font = QtGui.QFont()
font.setPointSize(20)
font.setPointSize(18)
self.stop_button.setFont(font)
self.stop_button.setObjectName("stop_button")
self.verticalLayout.addWidget(self.stop_button)
Expand All @@ -44,7 +44,7 @@ def setupUi(self, MainWindow):
self.pause_box.setMinimumSize(QtCore.QSize(0, 50))
self.pause_box.setMaximumSize(QtCore.QSize(16777215, 100))
font = QtGui.QFont()
font.setPointSize(20)
font.setPointSize(18)
self.pause_box.setFont(font)
self.pause_box.setMinimum(-120)
self.pause_box.setMaximum(120)
Expand All @@ -55,7 +55,7 @@ def setupUi(self, MainWindow):
self.pause_button.setMinimumSize(QtCore.QSize(0, 50))
self.pause_button.setMaximumSize(QtCore.QSize(200, 100))
font = QtGui.QFont()
font.setPointSize(20)
font.setPointSize(18)
self.pause_button.setFont(font)
self.pause_button.setObjectName("pause_button")
self.verticalLayout_2.addWidget(self.pause_button)
Expand Down
8 changes: 4 additions & 4 deletions ui/mainwindow.ui
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
</property>
<property name="font">
<font>
<pointsize>20</pointsize>
<pointsize>18</pointsize>
</font>
</property>
<property name="text">
Expand All @@ -57,7 +57,7 @@
</property>
<property name="font">
<font>
<pointsize>20</pointsize>
<pointsize>18</pointsize>
</font>
</property>
<property name="text">
Expand Down Expand Up @@ -85,7 +85,7 @@
</property>
<property name="font">
<font>
<pointsize>20</pointsize>
<pointsize>18</pointsize>
</font>
</property>
<property name="minimum">
Expand Down Expand Up @@ -115,7 +115,7 @@
</property>
<property name="font">
<font>
<pointsize>20</pointsize>
<pointsize>18</pointsize>
</font>
</property>
<property name="text">
Expand Down

0 comments on commit 8d993ba

Please sign in to comment.