Skip to content

Commit

Permalink
Lift synchronise button up
Browse files Browse the repository at this point in the history
  • Loading branch information
Staiger, Christine committed Jun 6, 2024
1 parent 101123f commit 750417e
Show file tree
Hide file tree
Showing 4 changed files with 62 additions and 25 deletions.
48 changes: 28 additions & 20 deletions ibridgesgui/ui_files/MainMenu.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Form implementation generated from reading ui file 'ibridgesgui/ui_files/MainMenu.ui'
#
# Created by: PyQt6 UI code generator 6.6.1
# Created by: PyQt6 UI code generator 6.4.2
#
# WARNING: Any manual changes made to this file will be lost when pyuic6 is
# run again. Do not edit this file unless you know what you are doing.
Expand All @@ -14,57 +14,65 @@ def setupUi(self, MainWindow):
MainWindow.setObjectName("MainWindow")
MainWindow.resize(1300, 850)
MainWindow.setMinimumSize(QtCore.QSize(1300, 850))
MainWindow.setStyleSheet(
"QWidget\n"
"{\n"
" color: rgb(86, 184, 139);\n"
" background-color: rgb(54, 54, 54);\n"
" selection-background-color: rgb(58, 152, 112);\n"
" font: 16pt;\n"
"}\n"
"\n"
"QTabBar::tab:top:selected {\n"
" background-color: rgb(58, 152, 112);\n"
" color: rgb(54, 54, 54);\n"
"}\n"
""
)
MainWindow.setStyleSheet("QWidget\n"
"{\n"
" color: rgb(86, 184, 139);\n"
" background-color: rgb(54, 54, 54);\n"
" selection-background-color: rgb(58, 152, 112);\n"
" font: 16pt;\n"
"}\n"
"\n"
"QTabBar::tab:top:selected {\n"
" background-color: rgb(58, 152, 112);\n"
" color: rgb(54, 54, 54);\n"
"}\n"
"\n"
"QLabel#error_label\n"
"{\n"
" color: rgb(217, 174, 23);\n"
" font: 18pt;\n"
"}\n"
"")
self.centralwidget = QtWidgets.QWidget(parent=MainWindow)
self.centralwidget.setStyleSheet("")
self.centralwidget.setObjectName("centralwidget")
self.verticalLayout = QtWidgets.QVBoxLayout(self.centralwidget)
self.verticalLayout.setObjectName("verticalLayout")
self.tab_widget = QtWidgets.QTabWidget(parent=self.centralwidget)
self.tab_widget.setMinimumSize(QtCore.QSize(600, 300))
self.tab_widget.setMinimumSize(QtCore.QSize(600, 500))
font = QtGui.QFont()
font.setPointSize(16)
font.setBold(False)
font.setItalic(False)
font.setWeight(50)
self.tab_widget.setFont(font)
self.tab_widget.setObjectName("tab_widget")
self.verticalLayout.addWidget(self.tab_widget)
self.error_label = QtWidgets.QLabel(parent=self.centralwidget)
self.error_label.setText("")
self.error_label.setObjectName("error_label")
self.verticalLayout.addWidget(self.error_label)
MainWindow.setCentralWidget(self.centralwidget)
self.menubar = QtWidgets.QMenuBar(parent=MainWindow)
self.menubar.setGeometry(QtCore.QRect(0, 0, 1300, 24))
font = QtGui.QFont()
font.setPointSize(16)
font.setBold(False)
font.setItalic(False)
font.setWeight(50)
self.menubar.setFont(font)
self.menubar.setObjectName("menubar")
self.main_menu = QtWidgets.QMenu(parent=self.menubar)
font = QtGui.QFont()
font.setPointSize(16)
font.setBold(False)
font.setItalic(False)
font.setWeight(50)
self.main_menu.setFont(font)
self.main_menu.setObjectName("main_menu")
self.config_menu = QtWidgets.QMenu(parent=self.menubar)
self.config_menu.setObjectName("config_menu")
MainWindow.setMenuBar(self.menubar)
self.statusbar = QtWidgets.QStatusBar(parent=MainWindow)
self.statusbar.setObjectName("statusbar")
MainWindow.setStatusBar(self.statusbar)
self.action_close_session = QtGui.QAction(parent=MainWindow)
font = QtGui.QFont()
self.action_close_session.setFont(font)
Expand Down
5 changes: 4 additions & 1 deletion ibridgesgui/ui_files/MainMenu.ui
Original file line number Diff line number Diff line change
Expand Up @@ -50,12 +50,13 @@ QLabel#error_label
<property name="minimumSize">
<size>
<width>600</width>
<height>300</height>
<height>500</height>
</size>
</property>
<property name="font">
<font>
<pointsize>16</pointsize>
<weight>50</weight>
<italic>false</italic>
<bold>false</bold>
</font>
Expand Down Expand Up @@ -86,6 +87,7 @@ QLabel#error_label
<property name="font">
<font>
<pointsize>16</pointsize>
<weight>50</weight>
<italic>false</italic>
<bold>false</bold>
</font>
Expand All @@ -94,6 +96,7 @@ QLabel#error_label
<property name="font">
<font>
<pointsize>16</pointsize>
<weight>50</weight>
<italic>false</italic>
<bold>false</bold>
</font>
Expand Down
12 changes: 10 additions & 2 deletions ibridgesgui/ui_files/tabSync.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Form implementation generated from reading ui file 'ibridgesgui/ui_files/tabSync.ui'
#
# Created by: PyQt6 UI code generator 6.6.1
# Created by: PyQt6 UI code generator 6.4.2
#
# WARNING: Any manual changes made to this file will be lost when pyuic6 is
# run again. Do not edit this file unless you know what you are doing.
Expand All @@ -12,7 +12,7 @@
class Ui_tabSync(object):
def setupUi(self, tabSync):
tabSync.setObjectName("tabSync")
tabSync.resize(1234, 721)
tabSync.resize(1234, 749)
tabSync.setStyleSheet("QWidget\n"
"{\n"
" color: rgb(86, 184, 139);\n"
Expand Down Expand Up @@ -58,6 +58,7 @@ def setupUi(self, tabSync):
font = QtGui.QFont()
font.setPointSize(13)
font.setBold(True)
font.setWeight(75)
self.label_19.setFont(font)
self.label_19.setAlignment(QtCore.Qt.AlignmentFlag.AlignCenter)
self.label_19.setObjectName("label_19")
Expand Down Expand Up @@ -143,6 +144,7 @@ def setupUi(self, tabSync):
font = QtGui.QFont()
font.setPointSize(13)
font.setBold(True)
font.setWeight(75)
self.label_20.setFont(font)
self.label_20.setTextFormat(QtCore.Qt.TextFormat.PlainText)
self.label_20.setAlignment(QtCore.Qt.AlignmentFlag.AlignCenter)
Expand Down Expand Up @@ -196,6 +198,11 @@ def setupUi(self, tabSync):
item = QtWidgets.QTableWidgetItem()
self.diff_table.setHorizontalHeaderItem(2, item)
self.verticalLayout_11.addWidget(self.diff_table)
self.sync_button = QtWidgets.QPushButton(parent=self.layoutWidget)
self.sync_button.setObjectName("sync_button")
self.verticalLayout_11.addWidget(self.sync_button)
spacerItem11 = QtWidgets.QSpacerItem(20, 100, QtWidgets.QSizePolicy.Policy.Minimum, QtWidgets.QSizePolicy.Policy.Fixed)
self.verticalLayout_11.addItem(spacerItem11)

self.retranslateUi(tabSync)
QtCore.QMetaObject.connectSlotsByName(tabSync)
Expand All @@ -213,3 +220,4 @@ def retranslateUi(self, tabSync):
item.setText(_translate("tabSync", "Destination"))
item = self.diff_table.horizontalHeaderItem(2)
item.setText(_translate("tabSync", "Size in Bytes"))
self.sync_button.setText(_translate("tabSync", "Synchronise"))
22 changes: 20 additions & 2 deletions ibridgesgui/ui_files/tabSync.ui
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<x>0</x>
<y>0</y>
<width>1234</width>
<height>721</height>
<height>749</height>
</rect>
</property>
<property name="windowTitle">
Expand Down Expand Up @@ -47,7 +47,7 @@ QLabel#error_label
<height>771</height>
</rect>
</property>
<layout class="QVBoxLayout" name="verticalLayout_11" stretch="0,0,0,0,0,0">
<layout class="QVBoxLayout" name="verticalLayout_11" stretch="0,0,0,0,0,0,0">
<property name="sizeConstraint">
<enum>QLayout::SetDefaultConstraint</enum>
</property>
Expand All @@ -72,6 +72,7 @@ QLabel#error_label
<property name="font">
<font>
<pointsize>13</pointsize>
<weight>75</weight>
<bold>true</bold>
</font>
</property>
Expand Down Expand Up @@ -311,6 +312,7 @@ QLabel#error_label
<property name="font">
<font>
<pointsize>13</pointsize>
<weight>75</weight>
<bold>true</bold>
</font>
</property>
Expand Down Expand Up @@ -455,6 +457,22 @@ QLabel#error_label
</property>
</widget>
</item>
<item>
<spacer name="verticalSpacer_2">
<property name="orientation">
<enum>Qt::Vertical</enum>
</property>
<property name="sizeType">
<enum>QSizePolicy::Fixed</enum>
</property>
<property name="sizeHint" stdset="0">
<size>
<width>20</width>
<height>100</height>
</size>
</property>
</spacer>
</item>
</layout>
</widget>
</widget>
Expand Down

0 comments on commit 750417e

Please sign in to comment.