Skip to content
Snippets Groups Projects
Commit 5e39f79d authored by mhz1g21's avatar mhz1g21
Browse files

added SSC Model selection to SimpleTab; removed text shadow from header label

parent 7c2ef500
Branches
No related tags found
1 merge request!8enhanced UI: improved styling for main window, tabs, and controls; updated...
...@@ -46,7 +46,6 @@ class VRSceneCreatorGUI(QMainWindow): ...@@ -46,7 +46,6 @@ class VRSceneCreatorGUI(QMainWindow):
font-weight: bold; font-weight: bold;
margin: 10px; margin: 10px;
color: white; color: white;
text-shadow: 2px 2px 4px #000000;
""") """)
layout.addWidget(header_label) layout.addWidget(header_label)
......
from PyQt6.QtWidgets import (QWidget, QVBoxLayout, QHBoxLayout, from PyQt6.QtWidgets import (QWidget, QVBoxLayout, QHBoxLayout,
QGroupBox, QCheckBox, QMessageBox, QPushButton, QGroupBox, QCheckBox, QMessageBox, QPushButton,
QProgressBar) QProgressBar,QComboBox,QLabel)
from PyQt6.QtCore import Qt, QThread, pyqtSignal, QTimer from PyQt6.QtCore import Qt, QThread, pyqtSignal, QTimer
import os import os
import sys import sys
...@@ -233,6 +233,45 @@ class SimpleTab(QWidget): ...@@ -233,6 +233,45 @@ class SimpleTab(QWidget):
self.shift_image_check.setStyleSheet("QCheckBox { margin: 5px; background-color: #3e3e3e;}") self.shift_image_check.setStyleSheet("QCheckBox { margin: 5px; background-color: #3e3e3e;}")
options_layout.addWidget(self.shift_image_check) 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) controls_layout.addLayout(options_layout)
# Progress Bar # Progress Bar
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment