Skip to content

Commit 61499f1

Browse files
committed
midificaztion
1 parent f6a7b64 commit 61499f1

2 files changed

Lines changed: 88 additions & 102 deletions

File tree

ui/ui_design.ui

Lines changed: 47 additions & 57 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
<item>
3030
<widget class="QFrame" name="header">
3131
<property name="minimumHeight">
32-
<number>72</number>
32+
<number>56</number>
3333
</property>
3434
<property name="frameShape">
3535
<enum>QFrame::Shape::StyledPanel</enum>
@@ -122,6 +122,26 @@
122122
<property name="bottomMargin">
123123
<number>0</number>
124124
</property>
125+
<item>
126+
<widget class="QPushButton" name="select_lang">
127+
<property name="text">
128+
<string>🌐 Langue</string>
129+
</property>
130+
<property name="toolTip">
131+
<string>Choisir la langue de l'interface</string>
132+
</property>
133+
</widget>
134+
</item>
135+
<item>
136+
<widget class="QPushButton" name="select_theme">
137+
<property name="text">
138+
<string>🎨 Thème</string>
139+
</property>
140+
<property name="toolTip">
141+
<string>Choisir le thème de l'interface</string>
142+
</property>
143+
</widget>
144+
</item>
125145
<item>
126146
<widget class="QPushButton" name="compile_btn">
127147
<property name="text">
@@ -155,7 +175,7 @@
155175
</property>
156176
<widget class="QWidget" name="leftPanel">
157177
<property name="minimumWidth">
158-
<number>340</number>
178+
<number>280</number>
159179
</property>
160180
<property name="sizePolicy">
161181
<sizepolicy hsizetype="Preferred" vsizetype="Expanding">
@@ -267,9 +287,18 @@
267287
</property>
268288
<item row="0" column="0" colspan="2">
269289
<widget class="QLabel" name="label_files_section">
290+
<property name="font">
291+
<font>
292+
<pointsize>12</pointsize>
293+
<bold>false</bold>
294+
</font>
295+
</property>
270296
<property name="text">
271297
<string>2. Fichiers à compiler</string>
272298
</property>
299+
<property name="wordWrap">
300+
<bool>true</bool>
301+
</property>
273302
</widget>
274303
</item>
275304
<item row="1" column="0" colspan="2">
@@ -282,7 +311,13 @@
282311
<item row="2" column="0">
283312
<widget class="QListWidget" name="file_list">
284313
<property name="minimumHeight">
285-
<number>180</number>
314+
<number>140</number>
315+
</property>
316+
<property name="sizePolicy">
317+
<sizepolicy hsizetype="Expanding" vsizetype="Expanding">
318+
<horstretch>0</horstretch>
319+
<verstretch>1</verstretch>
320+
</sizepolicy>
286321
</property>
287322
</widget>
288323
</item>
@@ -409,57 +444,6 @@
409444
</layout>
410445
</widget>
411446
</item>
412-
<item>
413-
<widget class="QFrame" name="frame_settings">
414-
<property name="frameShape">
415-
<enum>QFrame::Shape::StyledPanel</enum>
416-
</property>
417-
<layout class="QVBoxLayout" name="layout_settings">
418-
<property name="spacing">
419-
<number>8</number>
420-
</property>
421-
<property name="leftMargin">
422-
<number>10</number>
423-
</property>
424-
<property name="topMargin">
425-
<number>10</number>
426-
</property>
427-
<property name="rightMargin">
428-
<number>10</number>
429-
</property>
430-
<property name="bottomMargin">
431-
<number>10</number>
432-
</property>
433-
<item>
434-
<widget class="QLabel" name="label_settings">
435-
<property name="text">
436-
<string>Paramètres</string>
437-
</property>
438-
</widget>
439-
</item>
440-
<item>
441-
<widget class="QPushButton" name="select_lang">
442-
<property name="text">
443-
<string>🌐 Langue</string>
444-
</property>
445-
<property name="toolTip">
446-
<string>Choisir la langue de l'interface</string>
447-
</property>
448-
</widget>
449-
</item>
450-
<item>
451-
<widget class="QPushButton" name="select_theme">
452-
<property name="text">
453-
<string>🎨 Thème</string>
454-
</property>
455-
<property name="toolTip">
456-
<string>Choisir le thème de l'interface</string>
457-
</property>
458-
</widget>
459-
</item>
460-
</layout>
461-
</widget>
462-
</item>
463447
<item>
464448
<spacer name="leftSpacer">
465449
<property name="orientation">
@@ -477,7 +461,7 @@
477461
</widget>
478462
<widget class="QWidget" name="rightPanel">
479463
<property name="minimumWidth">
480-
<number>600</number>
464+
<number>420</number>
481465
</property>
482466
<property name="sizePolicy">
483467
<sizepolicy hsizetype="Expanding" vsizetype="Expanding">
@@ -570,7 +554,13 @@
570554
<item>
571555
<widget class="QTextEdit" name="log">
572556
<property name="minimumHeight">
573-
<number>220</number>
557+
<number>160</number>
558+
</property>
559+
<property name="sizePolicy">
560+
<sizepolicy hsizetype="Expanding" vsizetype="Expanding">
561+
<horstretch>0</horstretch>
562+
<verstretch>1</verstretch>
563+
</sizepolicy>
574564
</property>
575565
</widget>
576566
</item>
@@ -614,7 +604,7 @@
614604
<bool>true</bool>
615605
</property>
616606
<property name="minimumHeight">
617-
<number>24</number>
607+
<number>18</number>
618608
</property>
619609
</widget>
620610
</item>

ui/ui_design_ui.py

Lines changed: 41 additions & 45 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ def setupUi(self, PyCompilerARKGui):
3232
self.rootLayout.setContentsMargins(12, 12, 12, 12)
3333
self.header = QFrame(PyCompilerARKGui)
3434
self.header.setObjectName(u"header")
35-
self.header.setMinimumHeight(72)
35+
self.header.setMinimumHeight(56)
3636
self.header.setFrameShape(QFrame.Shape.StyledPanel)
3737
self.headerLayout = QHBoxLayout(self.header)
3838
self.headerLayout.setSpacing(10)
@@ -71,6 +71,16 @@ def setupUi(self, PyCompilerARKGui):
7171
self.headerRightLayout.setSpacing(8)
7272
self.headerRightLayout.setObjectName(u"headerRightLayout")
7373
self.headerRightLayout.setContentsMargins(0, 0, 0, 0)
74+
self.select_lang = QPushButton(self.header_right)
75+
self.select_lang.setObjectName(u"select_lang")
76+
77+
self.headerRightLayout.addWidget(self.select_lang)
78+
79+
self.select_theme = QPushButton(self.header_right)
80+
self.select_theme.setObjectName(u"select_theme")
81+
82+
self.headerRightLayout.addWidget(self.select_theme)
83+
7484
self.compile_btn = QPushButton(self.header_right)
7585
self.compile_btn.setObjectName(u"compile_btn")
7686

@@ -92,7 +102,7 @@ def setupUi(self, PyCompilerARKGui):
92102
self.mainSplitter.setOrientation(Qt.Orientation.Horizontal)
93103
self.leftPanel = QWidget(self.mainSplitter)
94104
self.leftPanel.setObjectName(u"leftPanel")
95-
self.leftPanel.setMinimumWidth(340)
105+
self.leftPanel.setMinimumWidth(280)
96106
sizePolicy = QSizePolicy(QSizePolicy.Policy.Preferred, QSizePolicy.Policy.Expanding)
97107
sizePolicy.setHorizontalStretch(0)
98108
sizePolicy.setVerticalStretch(0)
@@ -146,6 +156,11 @@ def setupUi(self, PyCompilerARKGui):
146156
self.layout_files_grid.setContentsMargins(10, 10, 10, 10)
147157
self.label_files_section = QLabel(self.frame_files)
148158
self.label_files_section.setObjectName(u"label_files_section")
159+
font1 = QFont()
160+
font1.setPointSize(12)
161+
font1.setBold(False)
162+
self.label_files_section.setFont(font1)
163+
self.label_files_section.setWordWrap(True)
149164

150165
self.layout_files_grid.addWidget(self.label_files_section, 0, 0, 1, 2)
151166

@@ -156,7 +171,12 @@ def setupUi(self, PyCompilerARKGui):
156171

157172
self.file_list = QListWidget(self.frame_files)
158173
self.file_list.setObjectName(u"file_list")
159-
self.file_list.setMinimumHeight(180)
174+
self.file_list.setMinimumHeight(140)
175+
sizePolicy1 = QSizePolicy(QSizePolicy.Policy.Expanding, QSizePolicy.Policy.Expanding)
176+
sizePolicy1.setHorizontalStretch(0)
177+
sizePolicy1.setVerticalStretch(1)
178+
sizePolicy1.setHeightForWidth(self.file_list.sizePolicy().hasHeightForWidth())
179+
self.file_list.setSizePolicy(sizePolicy1)
160180

161181
self.layout_files_grid.addWidget(self.file_list, 2, 0, 1, 1)
162182

@@ -219,44 +239,19 @@ def setupUi(self, PyCompilerARKGui):
219239

220240
self.leftLayout.addWidget(self.frame_tools)
221241

222-
self.frame_settings = QFrame(self.leftPanel)
223-
self.frame_settings.setObjectName(u"frame_settings")
224-
self.frame_settings.setFrameShape(QFrame.Shape.StyledPanel)
225-
self.layout_settings = QVBoxLayout(self.frame_settings)
226-
self.layout_settings.setSpacing(8)
227-
self.layout_settings.setObjectName(u"layout_settings")
228-
self.layout_settings.setContentsMargins(10, 10, 10, 10)
229-
self.label_settings = QLabel(self.frame_settings)
230-
self.label_settings.setObjectName(u"label_settings")
231-
232-
self.layout_settings.addWidget(self.label_settings)
233-
234-
self.select_lang = QPushButton(self.frame_settings)
235-
self.select_lang.setObjectName(u"select_lang")
236-
237-
self.layout_settings.addWidget(self.select_lang)
238-
239-
self.select_theme = QPushButton(self.frame_settings)
240-
self.select_theme.setObjectName(u"select_theme")
241-
242-
self.layout_settings.addWidget(self.select_theme)
243-
244-
245-
self.leftLayout.addWidget(self.frame_settings)
246-
247242
self.leftSpacer = QSpacerItem(20, 40, QSizePolicy.Policy.Minimum, QSizePolicy.Policy.Expanding)
248243

249244
self.leftLayout.addItem(self.leftSpacer)
250245

251246
self.mainSplitter.addWidget(self.leftPanel)
252247
self.rightPanel = QWidget(self.mainSplitter)
253248
self.rightPanel.setObjectName(u"rightPanel")
254-
self.rightPanel.setMinimumWidth(600)
255-
sizePolicy1 = QSizePolicy(QSizePolicy.Policy.Expanding, QSizePolicy.Policy.Expanding)
256-
sizePolicy1.setHorizontalStretch(1)
257-
sizePolicy1.setVerticalStretch(0)
258-
sizePolicy1.setHeightForWidth(self.rightPanel.sizePolicy().hasHeightForWidth())
259-
self.rightPanel.setSizePolicy(sizePolicy1)
249+
self.rightPanel.setMinimumWidth(420)
250+
sizePolicy2 = QSizePolicy(QSizePolicy.Policy.Expanding, QSizePolicy.Policy.Expanding)
251+
sizePolicy2.setHorizontalStretch(1)
252+
sizePolicy2.setVerticalStretch(0)
253+
sizePolicy2.setHeightForWidth(self.rightPanel.sizePolicy().hasHeightForWidth())
254+
self.rightPanel.setSizePolicy(sizePolicy2)
260255
self.rightLayout = QVBoxLayout(self.rightPanel)
261256
self.rightLayout.setSpacing(16)
262257
self.rightLayout.setObjectName(u"rightLayout")
@@ -295,7 +290,9 @@ def setupUi(self, PyCompilerARKGui):
295290

296291
self.log = QTextEdit(self.frame_logs)
297292
self.log.setObjectName(u"log")
298-
self.log.setMinimumHeight(220)
293+
self.log.setMinimumHeight(160)
294+
sizePolicy1.setHeightForWidth(self.log.sizePolicy().hasHeightForWidth())
295+
self.log.setSizePolicy(sizePolicy1)
299296

300297
self.layout_logs.addWidget(self.log)
301298

@@ -318,7 +315,7 @@ def setupUi(self, PyCompilerARKGui):
318315
self.progress.setObjectName(u"progress")
319316
self.progress.setValue(0)
320317
self.progress.setTextVisible(True)
321-
self.progress.setMinimumHeight(24)
318+
self.progress.setMinimumHeight(18)
322319

323320
self.layout_progress.addWidget(self.progress)
324321

@@ -341,6 +338,14 @@ def setupUi(self, PyCompilerARKGui):
341338
def retranslateUi(self, PyCompilerARKGui):
342339
self.label_app_title.setText(QCoreApplication.translate("PyCompilerARKGui", u"PyCompiler ARK++", None))
343340
self.label_workspace_status.setText(QCoreApplication.translate("PyCompilerARKGui", u"Workspace : Aucun", None))
341+
self.select_lang.setText(QCoreApplication.translate("PyCompilerARKGui", u"\U0001f310 Langue", None))
342+
#if QT_CONFIG(tooltip)
343+
self.select_lang.setToolTip(QCoreApplication.translate("PyCompilerARKGui", u"Choisir la langue de l'interface", None))
344+
#endif // QT_CONFIG(tooltip)
345+
self.select_theme.setText(QCoreApplication.translate("PyCompilerARKGui", u"\U0001f3a8 Th\U000000e8me", None))
346+
#if QT_CONFIG(tooltip)
347+
self.select_theme.setToolTip(QCoreApplication.translate("PyCompilerARKGui", u"Choisir le th\u00e8me de l'interface", None))
348+
#endif // QT_CONFIG(tooltip)
344349
self.compile_btn.setText(QCoreApplication.translate("PyCompilerARKGui", u"\U0001f680 Compiler", None))
345350
#if QT_CONFIG(tooltip)
346351
self.compile_btn.setToolTip(QCoreApplication.translate("PyCompilerARKGui", u"Lancer la compilation", None))
@@ -383,15 +388,6 @@ def retranslateUi(self, PyCompilerARKGui):
383388
self.btn_help.setText(QCoreApplication.translate("PyCompilerARKGui", u"\u2753 Aide", None))
384389
#if QT_CONFIG(tooltip)
385390
self.btn_help.setToolTip(QCoreApplication.translate("PyCompilerARKGui", u"Afficher l'aide", None))
386-
#endif // QT_CONFIG(tooltip)
387-
self.label_settings.setText(QCoreApplication.translate("PyCompilerARKGui", u"Param\u00e8tres", None))
388-
self.select_lang.setText(QCoreApplication.translate("PyCompilerARKGui", u"\U0001f310 Langue", None))
389-
#if QT_CONFIG(tooltip)
390-
self.select_lang.setToolTip(QCoreApplication.translate("PyCompilerARKGui", u"Choisir la langue de l'interface", None))
391-
#endif // QT_CONFIG(tooltip)
392-
self.select_theme.setText(QCoreApplication.translate("PyCompilerARKGui", u"\U0001f3a8 Th\U000000e8me", None))
393-
#if QT_CONFIG(tooltip)
394-
self.select_theme.setToolTip(QCoreApplication.translate("PyCompilerARKGui", u"Choisir le th\u00e8me de l'interface", None))
395391
#endif // QT_CONFIG(tooltip)
396392
self.label_options_section.setText(QCoreApplication.translate("PyCompilerARKGui", u"3. Options de compilation", None))
397393
self.label_logs_section.setText(QCoreApplication.translate("PyCompilerARKGui", u"4. Logs de compilation", None))

0 commit comments

Comments
 (0)