From 5e39f79dd0411670f8d10302db44ec143e3ba057 Mon Sep 17 00:00:00 2001 From: mhz1g21 <mhz1g21@soton.ac.uk> Date: Fri, 29 Nov 2024 15:22:28 +0000 Subject: [PATCH] added SSC Model selection to SimpleTab; removed text shadow from header label --- scripts/GUI.py | 1 - scripts/simple_tab.py | 43 +++++++++++++++++++++++++++++++++++++++++-- 2 files changed, 41 insertions(+), 3 deletions(-) diff --git a/scripts/GUI.py b/scripts/GUI.py index 55e5d40..fbb15da 100644 --- a/scripts/GUI.py +++ b/scripts/GUI.py @@ -46,7 +46,6 @@ class VRSceneCreatorGUI(QMainWindow): font-weight: bold; margin: 10px; color: white; - text-shadow: 2px 2px 4px #000000; """) layout.addWidget(header_label) diff --git a/scripts/simple_tab.py b/scripts/simple_tab.py index 5edd244..2408fcb 100644 --- a/scripts/simple_tab.py +++ b/scripts/simple_tab.py @@ -1,6 +1,6 @@ from PyQt6.QtWidgets import (QWidget, QVBoxLayout, QHBoxLayout, QGroupBox, QCheckBox, QMessageBox, QPushButton, - QProgressBar) + QProgressBar,QComboBox,QLabel) from PyQt6.QtCore import Qt, QThread, pyqtSignal, QTimer import os import sys @@ -232,7 +232,46 @@ class SimpleTab(QWidget): self.shift_image_check = QCheckBox("Shift Input Image") self.shift_image_check.setStyleSheet("QCheckBox { margin: 5px; background-color: #3e3e3e;}") options_layout.addWidget(self.shift_image_check) - + + # SSC Model selection + ssc_model_layout = QHBoxLayout() + ssc_model_label = QLabel("SSC Model:") + #ssc_model_label.setAlignment(Qt.AlignmentFlag.AlignRight | Qt.AlignmentFlag.AlignVCenter) + ssc_model_label.setStyleSheet(""" + QLabel { + margin: 5px; + background-color: transparent; + color: white; + font-weight: bold; + } + """) + ssc_model_label.setFixedWidth(ssc_model_label.sizeHint().width()) + ssc_model_layout.addWidget(ssc_model_label) + + self.ssc_model_combo = QComboBox() + self.ssc_model_combo.addItems(["EdgeNet360", "MDBNet"]) + self.ssc_model_combo.setStyleSheet(""" + QComboBox { + margin: 5px; + padding: 5px; + background-color: #1e1e1e; + color: white; + border: none; + border-radius: 5px; + } + QComboBox QAbstractItemView { + background-color: #1e1e1e; + color: white; + selection-background-color: #5e5e5e; + border-radius: 5px; + } + """) + self.ssc_model_combo.setFixedWidth(150) + ssc_model_layout.addWidget(self.ssc_model_combo) + ssc_model_layout.setAlignment(Qt.AlignmentFlag.AlignLeft) + # Add the horizontal layout to the options layout + options_layout.addLayout(ssc_model_layout) + controls_layout.addLayout(options_layout) # Progress Bar -- GitLab