@@ -106,8 +106,8 @@ def __init__(
106106
107107 # Configuration de la fenêtre
108108 self .setWindowTitle ("Engines Standalone - PyCompiler ARK++" )
109- self .resize (1600 , 1000 )
110- self .setMinimumSize (1200 , 800 )
109+ self .resize (1400 , 850 )
110+ self .setMinimumSize (1100 , 700 )
111111 self .showMaximized ()
112112
113113 # Chargement des icônes
@@ -150,8 +150,8 @@ def _setup_ui(self):
150150
151151 # Layout principal avec marge réduite
152152 main_layout = QVBoxLayout (central_widget )
153- main_layout .setSpacing (8 )
154- main_layout .setContentsMargins (10 , 10 , 10 , 10 )
153+ main_layout .setSpacing (5 )
154+ main_layout .setContentsMargins (8 , 8 , 8 , 8 )
155155
156156 # === En-tête ===
157157 header_layout = QHBoxLayout ()
@@ -191,8 +191,8 @@ def _setup_ui(self):
191191 # === Section Configuration (gauche) ===
192192 config_container = QWidget ()
193193 config_layout = QGridLayout (config_container )
194- config_layout .setSpacing (15 )
195- config_layout .setContentsMargins (5 , 5 , 5 , 5 )
194+ config_layout .setSpacing (10 )
195+ config_layout .setContentsMargins (3 , 3 , 3 , 3 )
196196 config_layout .setColumnStretch (0 , 1 )
197197 config_layout .setColumnStretch (1 , 1 )
198198 config_layout .setRowStretch (0 , 1 )
@@ -202,7 +202,7 @@ def _setup_ui(self):
202202 engine_group = QGroupBox ("Engine Configuration" )
203203 engine_group .setSizePolicy (QSizePolicy .Expanding , QSizePolicy .Expanding )
204204 engine_layout = QVBoxLayout ()
205- engine_layout .setSpacing (5 )
205+ engine_layout .setSpacing (3 )
206206
207207 self .compiler_tabs = QTabWidget ()
208208 self .compiler_tabs .setDocumentMode (False )
@@ -212,7 +212,7 @@ def _setup_ui(self):
212212 engine_layout .addWidget (self .compiler_tabs )
213213
214214 compat_btn = QPushButton ("Check Compatibility" )
215- compat_btn .setMinimumHeight (32 )
215+ compat_btn .setMinimumHeight (28 )
216216 compat_btn .clicked .connect (self ._check_compatibility )
217217 engine_layout .addWidget (compat_btn )
218218
@@ -227,7 +227,7 @@ def _setup_ui(self):
227227 file_group = QGroupBox ("File / Project Configuration" )
228228 file_group .setSizePolicy (QSizePolicy .Expanding , QSizePolicy .Expanding )
229229 file_layout = QVBoxLayout ()
230- file_layout .setSpacing (10 )
230+ file_layout .setSpacing (5 )
231231
232232 file_label = QLabel ("File to compile:" )
233233 file_layout .addWidget (file_label )
@@ -236,12 +236,12 @@ def _setup_ui(self):
236236 self .file_path_edit = QLineEdit ()
237237 self .file_path_edit .setPlaceholderText ("Select a Python file to compile..." )
238238 self .file_path_edit .setSizePolicy (QSizePolicy .Expanding , QSizePolicy .Fixed )
239- self .file_path_edit .setMinimumHeight (35 )
239+ self .file_path_edit .setMinimumHeight (30 )
240240 file_input_layout .addWidget (self .file_path_edit )
241241
242242 browse_btn = QPushButton ("Browse" )
243- browse_btn .setMinimumHeight (35 )
244- browse_btn .setMinimumWidth (90 )
243+ browse_btn .setMinimumHeight (30 )
244+ browse_btn .setMinimumWidth (80 )
245245 browse_btn .clicked .connect (self ._browse_file )
246246 file_input_layout .addWidget (browse_btn )
247247
@@ -253,7 +253,7 @@ def _setup_ui(self):
253253 workspace_group = QGroupBox ("Workspace" )
254254 workspace_group .setSizePolicy (QSizePolicy .Expanding , QSizePolicy .Preferred )
255255 workspace_layout = QGridLayout ()
256- workspace_layout .setSpacing (8 )
256+ workspace_layout .setSpacing (5 )
257257 workspace_layout .setColumnStretch (1 , 1 )
258258
259259 workspace_label = QLabel ("Workspace:" )
@@ -263,12 +263,12 @@ def _setup_ui(self):
263263 if self .workspace_dir :
264264 self .workspace_edit .setText (self .workspace_dir )
265265 self .workspace_edit .setSizePolicy (QSizePolicy .Expanding , QSizePolicy .Fixed )
266- self .workspace_edit .setMinimumHeight (32 )
266+ self .workspace_edit .setMinimumHeight (28 )
267267 workspace_layout .addWidget (self .workspace_edit , 0 , 1 )
268268
269269 workspace_browse_btn = QPushButton ("Browse" )
270- workspace_browse_btn .setMinimumHeight (32 )
271- workspace_browse_btn .setMinimumWidth (80 )
270+ workspace_browse_btn .setMinimumHeight (28 )
271+ workspace_browse_btn .setMinimumWidth (70 )
272272 workspace_browse_btn .clicked .connect (self ._browse_workspace )
273273 workspace_layout .addWidget (workspace_browse_btn , 0 , 2 )
274274
@@ -279,10 +279,10 @@ def _setup_ui(self):
279279 actions_group = QGroupBox ("Actions" )
280280 actions_group .setSizePolicy (QSizePolicy .Expanding , QSizePolicy .Expanding )
281281 actions_layout = QVBoxLayout ()
282- actions_layout .setSpacing (12 )
282+ actions_layout .setSpacing (8 )
283283
284284 self .compile_btn = QPushButton ("Compile" )
285- self .compile_btn .setMinimumHeight (36 )
285+ self .compile_btn .setMinimumHeight (32 )
286286 self .compile_btn .setStyleSheet (
287287 """
288288 QPushButton {
@@ -331,13 +331,13 @@ def _setup_ui(self):
331331 # === Section Log (droite avec plus d'espace) ===
332332 log_container = QWidget ()
333333 log_layout = QVBoxLayout (log_container )
334- log_layout .setSpacing (8 )
335- log_layout .setContentsMargins (5 , 5 , 5 , 5 )
334+ log_layout .setSpacing (5 )
335+ log_layout .setContentsMargins (3 , 3 , 3 , 3 )
336336
337337 log_group = QGroupBox ("Compilation Log" )
338338 log_group .setSizePolicy (QSizePolicy .Expanding , QSizePolicy .Expanding )
339339 log_layout_inner = QVBoxLayout ()
340- log_layout_inner .setSpacing (5 )
340+ log_layout_inner .setSpacing (3 )
341341
342342 self .log_text = QTextEdit ()
343343 self .log_text .setFont (QFont ("Consolas" , 10 ))
@@ -359,7 +359,7 @@ def _setup_ui(self):
359359 # Progress bar
360360 self .progress_bar = QProgressBar ()
361361 self .progress_bar .setVisible (False )
362- self .progress_bar .setMinimumHeight (18 )
362+ self .progress_bar .setMinimumHeight (14 )
363363 log_layout_inner .addWidget (self .progress_bar )
364364
365365 log_group .setLayout (log_layout_inner )
@@ -375,12 +375,12 @@ def _setup_ui(self):
375375 # === Barre de statut ===
376376 self .statusBar = QStatusBar ()
377377 self .statusBar .setSizePolicy (QSizePolicy .Expanding , QSizePolicy .Fixed )
378- self .statusBar .setMinimumHeight (22 )
378+ self .statusBar .setMinimumHeight (20 )
379379 self .setStatusBar (self .statusBar )
380380 self .statusBar .showMessage ("Ready" )
381381
382382 # Définir les proportions du splitter vertical
383- main_splitter .setSizes ([700 , 120 ])
383+ main_splitter .setSizes ([750 , 80 ])
384384
385385 def _center_window (self ):
386386 """Centre la fenêtre sur l'écran."""
0 commit comments