Skip to content

Commit

Permalink
GUI font size changes
Browse files Browse the repository at this point in the history
  • Loading branch information
SanPen committed Sep 20, 2024
1 parent 10fc769 commit f9dce18
Show file tree
Hide file tree
Showing 3 changed files with 48 additions and 20 deletions.
20 changes: 11 additions & 9 deletions .idea/workspace.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

15 changes: 10 additions & 5 deletions src/GridCal/Gui/Main/MainWindow.py
Original file line number Diff line number Diff line change
Expand Up @@ -616,7 +616,9 @@ def setupUi(self, mainWindow):

self.tabWidget = QTabWidget(self.centralwidget)
self.tabWidget.setObjectName(u"tabWidget")
self.tabWidget.setFont(font)
font1 = QFont()
font1.setPointSize(9)
self.tabWidget.setFont(font1)
self.GridTab = QWidget()
self.GridTab.setObjectName(u"GridTab")
self.verticalLayout_9 = QVBoxLayout(self.GridTab)
Expand All @@ -625,6 +627,7 @@ def setupUi(self, mainWindow):
self.verticalLayout_9.setContentsMargins(0, 0, 0, 0)
self.tabWidget_3 = QTabWidget(self.GridTab)
self.tabWidget_3.setObjectName(u"tabWidget_3")
self.tabWidget_3.setFont(font1)
self.tabWidget_3.setTabPosition(QTabWidget.South)
self.tabWidget_3.setTabShape(QTabWidget.Rounded)
self.tabWidget_3.setElideMode(Qt.ElideNone)
Expand Down Expand Up @@ -672,6 +675,7 @@ def setupUi(self, mainWindow):
self.verticalLayout_2.setContentsMargins(0, 0, 0, 0)
self.tabWidget_6 = QTabWidget(self.diagram_selection_frame)
self.tabWidget_6.setObjectName(u"tabWidget_6")
self.tabWidget_6.setFont(font1)
self.tabWidget_6.setTabPosition(QTabWidget.North)
self.tab_3 = QWidget()
self.tab_3.setObjectName(u"tab_3")
Expand All @@ -680,8 +684,6 @@ def setupUi(self, mainWindow):
self.verticalLayout_37.setContentsMargins(0, 0, 0, 5)
self.diagramsListView = QListView(self.tab_3)
self.diagramsListView.setObjectName(u"diagramsListView")
font1 = QFont()
font1.setPointSize(9)
self.diagramsListView.setFont(font1)
self.diagramsListView.setFrameShape(QFrame.NoFrame)

Expand All @@ -698,6 +700,7 @@ def setupUi(self, mainWindow):
self.available_results_to_color_comboBox = QComboBox(self.grid_colouring_frame)
self.available_results_to_color_comboBox.setObjectName(u"available_results_to_color_comboBox")
self.available_results_to_color_comboBox.setMinimumSize(QSize(164, 0))
self.available_results_to_color_comboBox.setFont(font1)

self.horizontalLayout_30.addWidget(self.available_results_to_color_comboBox)

Expand Down Expand Up @@ -2140,7 +2143,7 @@ def setupUi(self, mainWindow):
self.settings_tabWidget = QTabWidget(self.SettingsTab)
self.settings_tabWidget.setObjectName(u"settings_tabWidget")
self.settings_tabWidget.setEnabled(True)
self.settings_tabWidget.setFont(font)
self.settings_tabWidget.setFont(font1)
self.settings_tabWidget.setAutoFillBackground(False)
self.settings_tabWidget.setTabPosition(QTabWidget.South)
self.settings_tabWidget.setIconSize(QSize(16, 16))
Expand Down Expand Up @@ -2244,6 +2247,7 @@ def setupUi(self, mainWindow):
self.find_automatic_precission_Button = QPushButton(self.frame_19)
self.find_automatic_precission_Button.setObjectName(u"find_automatic_precission_Button")
self.find_automatic_precission_Button.setMaximumSize(QSize(50, 16777215))
self.find_automatic_precission_Button.setFont(font1)

self.gridLayout_22.addWidget(self.find_automatic_precission_Button, 8, 2, 1, 1)

Expand Down Expand Up @@ -5006,7 +5010,8 @@ def retranslateUi(self, mainWindow):
#if QT_CONFIG(tooltip)
self.ask_before_appliying_layout_checkBox.setToolTip(QCoreApplication.translate("mainWindow", u"Ask before running the automatic grid layout. This is because you might have a layout already and ruin it accidentally.", None))
#endif // QT_CONFIG(tooltip)
self.ask_before_appliying_layout_checkBox.setText(QCoreApplication.translate("mainWindow", u"Layout algorithm (mark to ask)", None))
self.ask_before_appliying_layout_checkBox.setText(QCoreApplication.translate("mainWindow", u"Layout algorithm \n"
"(mark to ask)", None))
self.tabWidget_6.setTabText(self.tabWidget_6.indexOf(self.tab_4), QCoreApplication.translate("mainWindow", u"Settings", None))
self.tabWidget_3.setTabText(self.tabWidget_3.indexOf(self.GridSectionTab), QCoreApplication.translate("mainWindow", u"Diagrams", None))
#if QT_CONFIG(tooltip)
Expand Down
33 changes: 27 additions & 6 deletions src/GridCal/Gui/Main/MainWindow.ui
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@
<rect>
<x>0</x>
<y>0</y>
<width>1249</width>
<height>820</height>
<width>1196</width>
<height>741</height>
</rect>
</property>
<property name="baseSize">
Expand Down Expand Up @@ -144,7 +144,7 @@ QProgressBar::chunk{
<widget class="QTabWidget" name="tabWidget">
<property name="font">
<font>
<pointsize>10</pointsize>
<pointsize>9</pointsize>
</font>
</property>
<property name="currentIndex">
Expand Down Expand Up @@ -176,6 +176,11 @@ QProgressBar::chunk{
</property>
<item>
<widget class="QTabWidget" name="tabWidget_3">
<property name="font">
<font>
<pointsize>9</pointsize>
</font>
</property>
<property name="tabPosition">
<enum>QTabWidget::South</enum>
</property>
Expand Down Expand Up @@ -297,6 +302,11 @@ QProgressBar::chunk{
</property>
<item>
<widget class="QTabWidget" name="tabWidget_6">
<property name="font">
<font>
<pointsize>9</pointsize>
</font>
</property>
<property name="tabPosition">
<enum>QTabWidget::North</enum>
</property>
Expand Down Expand Up @@ -374,6 +384,11 @@ QProgressBar::chunk{
<height>0</height>
</size>
</property>
<property name="font">
<font>
<pointsize>9</pointsize>
</font>
</property>
<property name="toolTip">
<string>Available results</string>
</property>
Expand Down Expand Up @@ -1247,7 +1262,8 @@ QProgressBar::chunk{
<string>Ask before running the automatic grid layout. This is because you might have a layout already and ruin it accidentally.</string>
</property>
<property name="text">
<string>Layout algorithm (mark to ask)</string>
<string>Layout algorithm
(mark to ask)</string>
</property>
<property name="checked">
<bool>true</bool>
Expand Down Expand Up @@ -3749,7 +3765,7 @@ QProgressBar::chunk{
</property>
<property name="font">
<font>
<pointsize>10</pointsize>
<pointsize>9</pointsize>
</font>
</property>
<property name="toolTip">
Expand Down Expand Up @@ -4048,6 +4064,11 @@ QProgressBar::chunk{
<height>16777215</height>
</size>
</property>
<property name="font">
<font>
<pointsize>9</pointsize>
</font>
</property>
<property name="toolTip">
<string>Find the tolerance that best represents the load values for power flow</string>
</property>
Expand Down Expand Up @@ -9665,7 +9686,7 @@ QProgressBar::chunk{
<rect>
<x>0</x>
<y>0</y>
<width>1249</width>
<width>1196</width>
<height>21</height>
</rect>
</property>
Expand Down

0 comments on commit f9dce18

Please sign in to comment.