Ole1 commited on
Commit
750235e
·
verified ·
1 Parent(s): 8a4cc4e

Update Run_gui.py

Browse files
Files changed (1) hide show
  1. Run_gui.py +1 -3
Run_gui.py CHANGED
@@ -398,18 +398,16 @@ class CaptionApp(QMainWindow):
398
  self.selected_image_path = None
399
  self.image_files = []
400
 
401
- self.dark_mode = True # Start i dark mode
402
-
403
  self.central_widget = QWidget()
404
  self.setCentralWidget(self.central_widget)
405
  self.main_layout = QHBoxLayout(self.central_widget)
406
 
407
  self.initUI()
 
408
  self.update_button_states()
409
  self.apply_theme()
410
 
411
 
412
-
413
  def initUI(self):
414
  # --- Left Panel ---
415
  left_panel = QVBoxLayout()
 
398
  self.selected_image_path = None
399
  self.image_files = []
400
 
 
 
401
  self.central_widget = QWidget()
402
  self.setCentralWidget(self.central_widget)
403
  self.main_layout = QHBoxLayout(self.central_widget)
404
 
405
  self.initUI()
406
+ self.dark_mode = True # Sæt dark mode EFTER initUI
407
  self.update_button_states()
408
  self.apply_theme()
409
 
410
 
 
411
  def initUI(self):
412
  # --- Left Panel ---
413
  left_panel = QVBoxLayout()