Skip to content

Commit 0039cae

Browse files
committed
correction de engineonly qui doit utiliser QMainWindow aulieu de QPyCompilerArkGui
1 parent 730e884 commit 0039cae

2 files changed

Lines changed: 5 additions & 5 deletions

File tree

OnlyMod/EngineOnlyMod/app.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -258,7 +258,7 @@ def get_stylesheet(self) -> str:
258258
"""Génère la feuille de style pour le thème actuel."""
259259
c = self.colors
260260
return f"""
261-
QPyCompilerArkGui {{
261+
QMainWindow {{
262262
background-color: {c['bg_primary']};
263263
color: {c['text_primary']};
264264
}}

OnlyMod/EngineOnlyMod/gui.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@
3838
from PySide6.QtCore import Qt, QSize, QTimer, QProcess, QThread, Signal
3939
from PySide6.QtWidgets import (
4040
QApplication,
41-
QPyCompilerArkGui,
41+
QMainWindow,
4242
QWidget,
4343
QVBoxLayout,
4444
QHBoxLayout,
@@ -164,7 +164,7 @@ def cancel(self):
164164
self.cancel_requested = True
165165

166166

167-
class EnginesStandaloneGui(QPyCompilerArkGui):
167+
class EnginesStandaloneGui(QMainWindow):
168168
"""
169169
Application autonome GUI pour gérer et exécuter les moteurs de compilation.
170170
@@ -512,7 +512,7 @@ def _apply_theme(self, theme_name: str):
512512
if theme_name == "dark":
513513
self.setStyleSheet(
514514
"""
515-
QPyCompilerArkGui, QWidget {
515+
QMainWindow, QWidget {
516516
background-color: #1e1e1e;
517517
color: #ffffff;
518518
}
@@ -581,7 +581,7 @@ def _apply_theme(self, theme_name: str):
581581
else: # light theme
582582
self.setStyleSheet(
583583
"""
584-
QPyCompilerArkGui, QWidget {
584+
QMainWindow, QWidget {
585585
background-color: #f5f5f5;
586586
color: #000000;
587587
}

0 commit comments

Comments
 (0)