dark mode toggle + enhancements
This commit is contained in:
@@ -14,7 +14,7 @@ import pandas as pd
|
||||
from pandas import DataFrame
|
||||
|
||||
from PySide6.QtWidgets import QApplication, QComboBox, QDialog, QGridLayout, QHBoxLayout, QLabel, QLineEdit, QListView, QMessageBox, QPushButton, QScrollArea, QSizePolicy, QVBoxLayout, QWidget, QFrame, QSpinBox, QFileDialog
|
||||
from PySide6.QtGui import QStandardItemModel, QStandardItem, QPixmap, QIntValidator, QDoubleValidator
|
||||
from PySide6.QtGui import QPalette, QStandardItemModel, QStandardItem, QPixmap, QIntValidator, QDoubleValidator
|
||||
from PySide6.QtCore import QEvent, QPoint, QSize, QTimer, Qt, Signal
|
||||
|
||||
from src.shared.shareddata import APP_NAME, PIPELINE_STAGES
|
||||
@@ -323,10 +323,10 @@ class ParamSection(QWidget):
|
||||
self._updating_checkstates = False
|
||||
|
||||
# Title label
|
||||
title_label = QLabel(section_data["title"])
|
||||
title_label.setStyleSheet("font-weight: bold; font-size: 14px; margin-top: 10px; margin-bottom: 5px;")
|
||||
layout.addWidget(title_label)
|
||||
self.header_widgets.append(title_label)
|
||||
self.title_label = QLabel(section_data["title"])
|
||||
self.title_label.setStyleSheet("font-weight: bold; font-size: 14px; margin-top: 10px; margin-bottom: 5px;")
|
||||
layout.addWidget(self.title_label)
|
||||
self.header_widgets.append(self.title_label)
|
||||
|
||||
# Horizontal line
|
||||
line = QFrame()
|
||||
@@ -444,6 +444,10 @@ class ParamSection(QWidget):
|
||||
|
||||
self.update_dependencies()
|
||||
|
||||
def update_theme_colors(self):
|
||||
self.title_label.style().unpolish(self.title_label)
|
||||
self.title_label.style().polish(self.title_label)
|
||||
|
||||
def is_different(self, val_a, val_b, param_type=None):
|
||||
"""Compares two parameter values to determine if they differ."""
|
||||
type_str = str(param_type).lower()
|
||||
@@ -890,6 +894,7 @@ class ProgressBubble(QWidget):
|
||||
border-radius: 10px;
|
||||
padding: 8px 12px;
|
||||
background-color: #e0f0ff;
|
||||
color: #000000;
|
||||
}
|
||||
""")
|
||||
|
||||
@@ -985,6 +990,13 @@ class ProgressBubble(QWidget):
|
||||
self.spinner_idx += 1
|
||||
self._update_label_text()
|
||||
|
||||
def reset(self):
|
||||
"""Resets the bubble's visual state, progress bars, timers, and labels back to initial state."""
|
||||
# Reset progress metrics and visual rectangles back to white
|
||||
self.current_step = 0
|
||||
for rect in self.rects:
|
||||
rect.setStyleSheet("background-color: white; border: 1px solid gray;")
|
||||
|
||||
|
||||
class FlaresBaseWidget(QWidget):
|
||||
def __init__(self, caller):
|
||||
|
||||
Reference in New Issue
Block a user